/* ==========================================================================
   RAIO DE SOL — Design System Oficial ("Sua causa ganha luz e força.")
   Estética Editorial Luminosa + Verde Floresta Profundo + Esmeralda Vivo
   ========================================================================== */

:root {
  --bg-page: #F8F7F3;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1EFE8;
  --bg-forest: #0B2B22;
  --bg-forest-soft: #113C30;

  --text-primary: #111815;
  --text-secondary: #4A5751;
  --text-muted: #76847D;
  --text-inverse: #FFFFFF;

  --brand-emerald: #0D9F6E;
  --brand-emerald-hover: #09845B;
  --brand-emerald-light: #E6F7F0;
  --brand-mint: #34D399;
  --brand-amber: #D97706;
  --brand-amber-light: #FEF3C7;
  --brand-danger: #DC2626;
  --brand-danger-light: #FEE2E2;

  --border-subtle: #E5E2D9;
  --border-strong: #CFCBC0;

  --shadow-xs: 0 1px 2px rgba(11, 43, 34, 0.04);
  --shadow-sm: 0 4px 14px rgba(11, 43, 34, 0.05);
  --shadow-md: 0 12px 32px rgba(11, 43, 34, 0.08);
  --shadow-lg: 0 24px 54px rgba(11, 43, 34, 0.13);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

/* ==========================================================================
   Navigation Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 247, 243, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19.5px;
  letter-spacing: -0.03em;
  color: var(--bg-forest);
  line-height: 1.05;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-emerald);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--bg-forest);
  background: rgba(13, 159, 110, 0.09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-console-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--bg-forest);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--bg-forest);
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.admin-console-pill svg {
  color: #6EE7B7;
}

.admin-console-pill:hover,
.admin-console-pill.active {
  background: #134235;
  border-color: #134235;
}

.header-logout-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.header-logout-btn:hover {
  color: var(--brand-danger);
  border-color: rgba(220, 38, 38, 0.35);
  background: var(--brand-danger-light);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.user-chip:hover {
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-sm);
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-forest);
  color: var(--brand-mint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-links a {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-drawer-links a:hover {
  background: var(--bg-subtle);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-emerald);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(13, 159, 110, 0.26);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-emerald-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(13, 159, 110, 0.34);
}

.btn-forest {
  background: var(--bg-forest);
  color: #FFFFFF;
}

.btn-forest:hover:not(:disabled) {
  background: var(--bg-forest-soft);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--bg-forest);
  background: var(--bg-subtle);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-danger {
  background: var(--brand-danger-light);
  color: var(--brand-danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-emerald {
  background: var(--brand-emerald-light);
  color: #066948;
}

.badge-amber {
  background: var(--brand-amber-light);
  color: #92400E;
}

.badge-danger {
  background: var(--brand-danger-light);
  color: #991B1B;
}

.badge-neutral {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-verified {
  background: #E6F7F0;
  color: #066948;
  border: 1px solid rgba(13, 159, 110, 0.25);
}

/* ==========================================================================
   Flash Notifications
   ========================================================================== */
.flash-stack {
  max-width: var(--container-max);
  margin: 16px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.flash-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.flash-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.flash-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

/* ==========================================================================
   Hero Editorial Autêntico (Sem caixa escura artificial, foco humano e real)
   ========================================================================== */
.hero-editorial {
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: start;
}

.hero-dateline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dateline-line {
  width: 24px;
  height: 2px;
  background: var(--brand-emerald);
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-actions .btn {
  border-radius: 12px;
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 5px 5px 5px 14px;
  max-width: 520px;
  margin-bottom: 34px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-search-form:focus-within {
  border-color: var(--bg-forest);
  box-shadow: 0 4px 16px rgba(11, 43, 34, 0.07);
}

.hero-search-form svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  font-size: 14.5px;
  color: var(--text-primary);
  min-width: 0;
}

.hero-search-input:focus {
  outline: none;
}

.hero-search-btn {
  background: var(--bg-forest);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.hero-search-btn:hover {
  background: var(--bg-forest-soft);
}

.hero-metrics-bar {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 20px;
  gap: 18px;
  box-shadow: var(--shadow-xs);
}

.hero-metric-item {
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid var(--border-subtle);
}

.hero-metric-item:last-child {
  padding-right: 0;
  border-right: none;
}

.hero-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
}

.hero-metric-num {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--bg-forest);
  white-space: nowrap;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-metric-caption {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-metrics-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-metric-item {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-metric-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* Coluna Direita: Vitrine Fotográfica Real */
.hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-main-story {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(17, 24, 21, 0.07);
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: block;
}

.hero-main-story:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.hero-main-photo {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--bg-subtle);
}

.hero-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
}

.hero-main-content {
  padding: 20px 22px 22px;
}

.hero-main-title {
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.hero-mini-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.hero-mini-card:hover {
  border-color: var(--brand-emerald);
  background: #FFFFFF;
}

.hero-mini-thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-mini-info {
  min-width: 0;
  flex: 1;
}

.hero-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.hero-mini-progress {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* Barra Horizontal Limpa de Categorias */
.category-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.category-strip-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.category-chip-link:hover {
  background: var(--bg-page);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.category-chip-link svg {
  color: var(--brand-emerald);
}

/* Seção Editorial de Transparência */
.editorial-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.editorial-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  margin-top: 28px;
}

.editorial-step-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.editorial-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--brand-emerald);
  padding-top: 2px;
}

/* ==========================================================================
   Sections & Campaign Cards
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-emerald);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 6px;
  max-width: 600px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* Campaign Card */
.campaign-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.campaign-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 159, 110, 0.35);
}

.campaign-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
}

.campaign-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.campaign-card:hover .campaign-card-media img {
  transform: scale(1.04);
}

.campaign-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.pill-frosted {
  background: rgba(17, 24, 21, 0.76);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.pill-urgent {
  background: #DC2626;
  color: #FFFFFF;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.campaign-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.campaign-organizer-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.campaign-card-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.32;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card-progress {
  margin-top: auto;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-emerald) 0%, #22C55E 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.campaign-card-numbers {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.raised-strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--bg-forest);
}

.goal-muted {
  font-size: 12.5px;
  color: var(--text-muted);
}

.campaign-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Category Tiles & Feature Pillars
   ========================================================================== */
.category-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}

.category-tile:hover {
  border-color: var(--brand-emerald);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-forest);
  color: var(--brand-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* ==========================================================================
   Forms, Inputs, Cards & Panels
   ========================================================================== */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 14.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 4px rgba(13, 159, 110, 0.12);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* ==========================================================================
   Campaign Detail & Sticky Checkout
   ========================================================================== */
.campaign-detail-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.campaign-cover-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  aspect-ratio: 16 / 9;
  margin-bottom: 26px;
}

.campaign-cover-frame img, .campaign-cover-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.sticky-sidebar {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.preset-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover, .preset-btn.active {
  background: var(--brand-emerald-light);
  border-color: var(--brand-emerald);
  color: #065F46;
}

.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.method-tab {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.method-tab.active {
  background: var(--bg-forest);
  color: #FFFFFF;
  border-color: var(--bg-forest);
}

/* Faixa Oficial de Chave Pix Direta (@dominio) */
.pix-key-strip {
  background: #EFECE4;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pix-diamond-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-forest);
  color: var(--brand-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pix-copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(11, 43, 34, 0.08);
  border: 1px solid rgba(11, 43, 34, 0.16);
  color: var(--bg-forest);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pix-copy-inline:hover {
  background: var(--bg-forest);
  color: #FFFFFF;
}

.story-prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
}

.supporter-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* ==========================================================================
   Tabs, Tables & Dashboards
   ========================================================================== */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 28px;
  overflow-x: auto;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.tab-pill:hover {
  border-color: var(--brand-emerald);
  color: var(--bg-forest);
}

.tab-pill.active {
  background: var(--bg-forest);
  color: #FFFFFF;
  border-color: var(--bg-forest);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.kpi-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

/* ==========================================================================
   Auth Split Layout
   ========================================================================== */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: stretch;
  padding: 44px 0 72px;
}

.auth-editorial {
  background: linear-gradient(155deg, #09241C 0%, #104234 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Modal Overlay
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 43, 34, 0.62);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Custom Upload Dropzone, Multi-Photo Previews & Campaign Gallery Lightbox
   ========================================================================== */
.sr-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  padding: 22px 20px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--brand-emerald);
  background: #F4FBF8;
  box-shadow: 0 0 0 3px rgba(13, 159, 110, 0.1);
}

.upload-dropzone-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-dropzone-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--brand-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.upload-preview-card {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.upload-preview-card.is-visible {
  display: flex;
}

.upload-preview-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.upload-preview-thumb {
  width: 68px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.upload-preview-meta {
  min-width: 0;
}

.upload-preview-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.upload-preview-size {
  font-size: 12px;
  color: var(--brand-emerald);
  font-weight: 600;
  margin-top: 2px;
}

.upload-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumbs-grid:empty {
  display: none;
}

.gallery-thumb-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 21, 0.82);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gallery-thumb-remove:hover {
  background: #DC2626;
}

.campaign-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.campaign-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: zoom-in;
  padding: 0;
}

.campaign-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.campaign-gallery-item:hover img {
  transform: scale(1.04);
}

.update-attached-photo {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  max-width: 420px;
  cursor: zoom-in;
  background: var(--bg-surface);
}

.update-attached-photo img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.modal-box-lightbox {
  max-width: 880px;
  padding: 16px;
  background: #111815;
  color: #FFFFFF;
}

.lightbox-full-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0A0F0D;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-forest);
  color: rgba(255, 255, 255, 0.8);
  padding: 68px 0 36px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

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

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Print Receipt Support */
@media print {
  .topbar-trust, .site-header, .site-footer, .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF;
  }
  .surface-card {
    box-shadow: none;
    border: 1px solid #CCC;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-editorial-grid, .editorial-split, .campaign-detail-grid, .auth-split {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4, .kpi-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sticky-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-desktop, .topbar-hide-mobile {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .grid-3, .grid-2, .grid-4, .kpi-grid, .form-row-2, .footer-grid, .hero-mini-stories {
    grid-template-columns: 1fr;
  }
  .surface-card {
    padding: 22px;
  }
}

