/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores KinderHope */
    --gfm-green: #4A9D44;
    --gfm-green-dark: #3a7d35;
    --gfm-bg: #FFFFFF;
    --gfm-text: #2D2D2D;
    --gfm-border: #E5E5E5;
    --gfm-icon: #5C5C5C;
    /* Espaçamentos */
    --header-height: 56px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gfm-bg);
    color: var(--gfm-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* ========================================
   HEADER MOBILE
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--gfm-bg);
    border-bottom: 1px solid var(--gfm-border);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-out;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-md);
    max-width: 100%;
}

/* ========================================
   BOTÕES DO HEADER
   ======================================== */

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    color: var(--gfm-icon);
    padding: 0;
}

.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.header-icon-btn:active {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(0.95);
}

.header-icon-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ========================================
   LOGO
   ======================================== */

.logo {
    width: 130px;
    /* Tamanho do logo conforme solicitado */
    height: auto;
    /* Mantém a proporção */
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: opacity var(--transition-fast);
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo:active {
    opacity: 0.6;
}

.hrt-gfm-logo {
    display: block;
    width: 105px;
    height: 36px;
}

/* ========================================
   ÍCONES SVG
   ======================================== */

.hrt-icon {
    display: block;
    fill: currentColor;
}

.hrt-icon--default {
    color: var(--gfm-icon);
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */

.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: 0;
}

/* ========================================
   HERO CAROUSEL
   ======================================== */

.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 480px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

/* ========================================
   SLIDES
   ======================================== */

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Background da Slide */

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* ========================================
   CONTEÚDO DA SLIDE
   ======================================== */

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    padding-bottom: 60px;
}

/* ========================================
   AUTOR
   ======================================== */

.slide-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: auto;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.author-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.verified-icon {
    width: 16px;
    /* ajuste fino */
    height: 16px;
    margin-bottom: 2px;
    margin-right: 2px;
    object-fit: contain;
    display: inline-block;
    transform: translateY(1px);
    /* alinhamento vertical */
}

.verified2-icon {
    width: 20px;
    /* ajuste fino */
    height: 20px;
    margin-right: 2px;
    margin-bottom: 2px;
    object-fit: contain;
    display: inline-block;
    transform: translateY(1px);
    /* alinhamento vertical */
}

.organizer2-name {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TÍTULO
   ======================================== */

.slide-title {
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

/* ========================================
   SLIDE 3 - HISTÓRIA
   ======================================== */

.carousel-slide-story .slide-background-story {
    background-color: #274a34;
}

.carousel-slide-story .slide-background-story .slide-bg-image,
.carousel-slide-story .slide-background-story .slide-overlay {
    display: none;
}

.slide-content-story {
    justify-content: center;
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
}

.slide-story-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.slide-story-text {
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.slide-read-more-btn {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    transition: all var(--transition-fast);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    align-self: flex-start;
}

.slide-read-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* ========================================
   SLIDE 4 - COMPARTILHAR
   ======================================== */

.carousel-slide-share .slide-background-share {
    background-color: #ccf88e;
}

.carousel-slide-share .slide-background-share .slide-bg-image,
.carousel-slide-share .slide-background-share .slide-overlay {
    display: none;
}

.slide-content-share {
    justify-content: center;
    padding-top: 0;
    align-items: center;
    text-align: center;
}

.share-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    width: fit-content;
    max-width: 200px;
}

.share-card-image {
    width: 200px;
    height: 129px;
    object-fit: cover;
    display: block;
}

.share-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin: 12px 16px 8px 16px;
    line-height: 1.4;
    text-align: left;
}

.share-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 12px 16px;
    text-align: left;
}

.share-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.share-author-name {
    font-size: 12px;
    color: #666666;
    font-weight: 400;
}

.share-btn {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.share-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.share-icon {
    width: 16px;
    height: 16px;
}

/* ========================================
   INDICADORES (DOTS)
   ======================================== */

.carousel-indicators {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background-color: #FFFFFF;
    width: 24px;
    border-radius: 4px;
}

.indicator:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.animated-curved-overlay {
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    border-radius: 100% 100% 0% 0%;
    z-index: 1;
}

/* ========================================
   SEÇÃO DE DOAÇÃO
   ======================================== */

.donation-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: var(--spacing-lg);
    padding-bottom: 0;
}

.donation-container {
    max-width: 100%;
}

/* ========================================
   PROGRESSO E VALORES
   ======================================== */

.donation-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 5px;
}

/* Círculo de Progresso */

.progress-circle {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(0deg);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--gfm-text);
}

/* Informações de Arrecadação */

.donation-info {
    flex: 1;
}

.donor-info-content strong {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.donation-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--gfm-text);
    margin: 0;
    line-height: 1.2;
}

.donation-goal {
    font-size: 20px;
    font-weight: 500;
    color: #666666;
    margin: 4px 0 0 0;
}

/* ========================================
   CARROSSEL DE DOADORES RECENTES
   ======================================== */

.recent-donors {
    margin-top: 4px;
    overflow: hidden;
}

.donors-carousel {
    position: relative;
    height: 24px;
}

.donor-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.donor-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.donor-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--gfm-text);
    flex: 1;
}

.donor-arrow {
    width: 16px;
    height: 16px;
    color: var(--gfm-text);
    flex-shrink: 0;
}

/* ========================================
   BOTÃO DE DOAR
   ======================================== */

.donorbox-overlay {
    background: rgba(0, 0, 0, 0.65);
    /* menos pesado */
    backdrop-filter: blur(2px);
    /* opcional, fica bonito */
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* escondido por padrão */
    align-items: center;
    /* centraliza verticalmente */
    justify-content: center;
    /* centraliza horizontalmente */
    z-index: 9999;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    width: 100%;
    max-width: 520px;
    height: 90vh;
    /* 🔥 ESSENCIAL */
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
    /* 🔥 ESSENCIAL */
}

#gf-iframe {
    width: 100%;
    height: 780px;
    /* 🔥 altura ideal desktop */
    max-height: 80vh;
    /* 🔥 mobile-friendly */
    border: none;
    display: block;
}

#gf-iframe {
    margin: 0 auto;
    background: transparent;
    border-radius: 20px;
    /* 🔥 bordas arredondadas */
    background: #ffffff;
    /* garante fundo branco */
}

.donorbox-overlay.active {
    display: flex;
    /* mostra o popup */
}

.donorbox-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    /* 🔥 MAIS ESTREITO */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    overflow: visible;
    /* 🔥 importante */
    background: transparent;
    /* 🔥 remove o fundo cinza */
    padding: 0;
    /* 🔥 evita “moldura” feia */
    box-shadow: none;
    /* opcional */
}

.donorbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.btn-donate {
    width: 100%;
    height: 48px;
    background-color: #ccf88e;
    color: #274a34;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(39, 74, 52, 0.2);
}

.btn-donate:hover {
    background-color: #17595a;
    box-shadow: 0 4px 12px rgba(39, 74, 52, 0.3);
    transform: translateY(-1px);
}

.btn-donate:active {
    background-color: #17595a;
    box-shadow: 0 1px 4px rgba(39, 74, 52, 0.2);
    transform: translateY(0);
}

/* ========================================
   POPUP FIXO DE DOAÇÃO
   ======================================== */

.donation-popup-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-top: 1px solid var(--gfm-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 16px;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-width: 93%;
    border-radius: 32px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

.donation-popup-fixed.show {
    display: block;
    transform: translateY(0);
}

.donation-popup-fixed .donation-container {
    max-width: 100%;
}

.donation-popup-fixed .donation-progress {
    margin-bottom: 20px;
}

/* ========================================
   SEÇÃO DE HISTÓRIA
   ======================================== */

.story-section {
    padding: var(--spacing-lg);
    background-color: #FFFFFF;
}

.story-container {
    max-width: 100%;
}

.story-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gfm-text);
}

.story-hidden-content {
    display: none;
}

.story-hidden-content.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.story-image-container {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--gfm-text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    transition: color var(--transition-fast);
}

.read-more-btn:hover {
    color: #000000;
}

/* ========================================
   SEÇÃO DE ATUALIZAÇÕES
   ======================================== */

.updates-section {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    background-color: #FFFFFF;
    border-top: .5rem solid #f5f5f5;
    margin-top: var(--spacing-md);
}

.updates-header {
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
}

.updates-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gfm-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.updates-count {
    background-color: #E5E5E5;
    color: var(--gfm-text);
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Post de Atualização */

.update-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.update-author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.update-meta-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-date-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gfm-text);
}

.update-author-role {
    font-size: 14px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.update-role {
    color: #666666;
}

.update-subtitle {
    font-size: 16px;
    color: var(--gfm-text);
    margin-bottom: 16px;
}

.update-thank-you {
    font-size: 16px;
    color: var(--gfm-text);
    margin-bottom: 16px;
}

.update-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gfm-text);
    margin-bottom: 0;
}

.update-hidden-content {
    display: none;
}

.update-hidden-content.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.update-image-container-small {
    margin: 16px 0 24px;
}

.update-image-small {
    width: 105px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.update-actions-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-update-donate,
.btn-update-share {
    flex: 1;
    height: 48px;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 24px;
    color: var(--gfm-text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-update-donate:hover,
.btn-update-share:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #000000;
}

.btn-update-donate:active,
.btn-update-share:active {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

/* Botões de Ação */

.update-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    flex: 1;
    height: 48px;
    background-color: transparent;
    border: 1px solid #666666;
    border-radius: 24px;
    color: var(--gfm-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #000000;
}

.btn-outline:active {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

/* ========================================
   SEÇÃO DE LISTA DE DOAÇÕES
   ======================================== */

.donations-list-section {
    background-color: #FFFFFF;
    border-top: .5rem solid #f5f5f5;
    margin-top: var(--spacing-md);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.donations-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    margin-bottom: 16px;
}

.donations-list-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gfm-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.donations-count-badge {
    background-color: #E5E5E5;
    color: var(--gfm-text);
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-top-donations {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid #666666;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gfm-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-top-donations:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #000000;
}

.icon-star {
    width: 16px;
    height: 16px;
}

/* Lista de Doadores */

.donations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.donation-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.donor-icon-wrapper {
    margin-top: 2px;
    width: 40px;
    height: 40px;
    background-color: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-donor {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.donor-info-content {
    display: flex;
    flex-direction: column;
}

.donor-name-list {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.donations-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
}

.donations-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donations-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* 🔥 APENAS quando ativo */

.donations-modal.active {
    pointer-events: all;
}

.donations-modal.active .donations-overlay {
    opacity: 1;
}

.donations-modal.active .donations-panel {
    transform: translateX(0);
}

/* PORTAL GLOBAL */

#donationsPortal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
}

/* Overlay escuro */

.portal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Painel estilo GoFundMe */

.portal-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 88vh;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header fixo */

.portal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-title h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.donations-badge {
    background: #E9E9E9;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.donation-badge-monthly {
    background-color: #CCF88E;
    /* verde claro */
    color: #274a34;
    /* verde escuro */
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-left: 6px;
    line-height: 1;
}

/* TABS */

.portal-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 8px;
}

.portal-tabs .tab {
    border: none;
    background: none;
    font-size: 18px;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
}

.portal-tabs .tab.active {
    background: #111;
    color: #fff;
}

/* LISTA */

.portal-list {
    padding: 8px 16px 16px;
}

/* ITEM */

.donation-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    /* 👈 chave */
    padding: 14px 0;
}

.anonimo-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    /* 👈 chave */
    padding: 14px 0;
}

/* AVATAR */

.avatar {
    margin-left: 14px;
    font-size: 15px !important;
    font-weight: 700;
    color: #111 !important;
}

.avatar+.donor-info-content {
    margin-left: 15px;
}

.hrt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hrt-avatar--large {
    width: 44px;
    height: 44px;
}

.hrt-avatar--neutral {
    background: #f2f2f2;
}

.hrt-icon {
    fill: #666;
    stroke: none;
}

/* TEXTO */

.donation-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    font-style: bold !important;
}

/* CLOSE */

.portal-close {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Lista com scroll */

.portal-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Ativo */

#donationsPortal.active {
    pointer-events: auto;
}

#donationsPortal.active .portal-overlay {
    opacity: 1;
}

#donationsPortal.active .portal-panel {
    transform: translateY(0);
}

.donor-details-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.donor-amount-list {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.separator-dot {
    font-size: 13px;
    color: #666 !important;
}

.donor-time-list,
.separator-dot {
    font-size: 13px;
    color: #666;
}

.btn-see-all-donations {
    width: 100%;
    height: 42px;
    background-color: transparent;
    border: 1px solid #666666;
    border-radius: 24px;
    color: var(--gfm-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-see-all-donations:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #000000;
}

.btn-see-all-donations:active {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

/* ========================================
   SEÇÃO DE ORGANIZADOR
   ======================================== */

.organizer-section {
    background-color: #FFFFFF;
    border-top: .5rem solid #f5f5f5;
    margin-top: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-lg);
}

.organizer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gfm-text);
    margin: 0 0 24px 0;
}

.organizer-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.organizer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.organizer-info {
    display: flex;
    flex-direction: column;
}

.organizer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gfm-text);
    line-height: 1.4;
}

.organizer-role {
    font-size: 16px;
    color: var(--gfm-text);
    line-height: 1.4;
}

.organizer-location {
    font-size: 16px;
    color: var(--gfm-text);
    line-height: 1.4;
}

.btn-contact {
    display: block;
    width: auto;
    min-width: 120px;
    padding: 10px 24px;
    background-color: transparent;
    border: 1px solid #666666;
    border-radius: 24px;
    color: var(--gfm-text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 20px;
}

.btn-contact:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #000000;
}

.btn-contact:active {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

/* ========================================
   ANIMAÇÕES E INTERAÇÕES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (min-width: 768px) {
    .header-container {
        padding: 0 var(--spacing-lg);
    }
}

/* ========================================
   ESTADOS DE FOCO (Acessibilidade)
   ======================================== */

.header-icon-btn:focus-visible,
.header-logo:focus-visible,
.read-more-btn:focus-visible,
.btn-outline:focus-visible,
.btn-top-donations:focus-visible,
.btn-see-all-donations:focus-visible,
.btn-contact:focus-visible {
    outline: 2px solid var(--gfm-green);
    outline-offset: 2px;
}

/* ========================================
   UTILIDADES
   ======================================== */

.hrt-disp-block {
    display: block;
}

/* Prevenir seleção de texto nos botões */

.header-icon-btn,
.header-logo {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Smooth scroll para toda a página */

html {
    scroll-behavior: smooth;
}

/* ========================================
   SEÇÃO DE INFORMAÇÕES DA CAMPANHA
   ======================================== */

.campaign-info-section {
    padding: var(--spacing-lg);
    background-color: #FFFFFF;
    border-top: .5rem solid #f5f5f5;
    margin-top: var(--spacing-md);
}

.campaign-info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.campaign-date-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 16px;
    color: var(--gfm-text);
}

.campaign-date {
    color: var(--gfm-text);
}

.campaign-category {
    color: var(--gfm-text);
    text-decoration: underline;
    font-weight: 400;
}

.campaign-category:hover {
    color: #000000;
}

.donation-guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #a7e3e3;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #024b45;
    /* Cor escura para contraste no fundo claro */
    width: fit-content;
}

.icon-guarantee {
    width: 20px;
    height: 20px;
    color: #024b45;
}

/* ========================================
   SEÇÃO DE RECURSOS (FEATURES)
   ======================================== */

.features-section {
    padding: 40px var(--spacing-lg);
    background-color: #f8f8f8;
    border-top: .5rem solid #f5f5f5;
    margin-top: 0;
}

.features-container {
    max-width: 100%;
}

.features-main-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gfm-text);
    margin-bottom: 48px;
    line-height: 1.4;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon {
    width: 41px;
    height: 41px;
    object-fit: contain;
    display: block;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gfm-text);
    margin-bottom: 4px;
}

.feature-description {
    font-size: 16px;
    color: var(--gfm-text);
    line-height: 1.5;
    margin: 0;
}

.guarantee-link {
    color: var(--gfm-text);
    text-decoration: underline;
    font-weight: 400;
}

.guarantee-link:hover {
    color: #000000;
}

/* ========================================
   SEÇÃO DE DESCOBERTA (DISCOVERY)
   ======================================== */

.discovery-section {
    padding: 40px var(--spacing-lg);
    background-color: #ccf88e;
    /* Verde escuro */
    color: #FFFFFF;
}

.discovery-container {
    max-width: 100%;
}

.discovery-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 48px;
    line-height: 1.2;
}

.discovery-filter {
    margin-bottom: 32px;
}

.btn-discovery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 24px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-discovery-filter:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.discovery-card {
    background-color: transparent;
    /* Card transparente sobre o fundo verde */
    border-radius: 12px;
    overflow: hidden;
    max-width: 343px;
    /* Largura da imagem solicitada */
}

.discovery-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    /* Arredondamento na imagem */
    overflow: hidden;
    margin-bottom: 16px;
}

.discovery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discovery-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #00000080;
    /* Preto com 50% opacidade */
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    /* Efeito opcional de blur */
}

.discovery-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discovery-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.4;
}

.discovery-organizer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.discovery-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.discovery-organizer-text {
    font-size: 14px;
    color: #FFFFFF;
}

.discovery-progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
}

.discovery-progress-fill {
    height: 100%;
}

.discovery-amount {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: #FFFFFF;
    padding: 40px var(--spacing-lg);
    border-top: 1px solid var(--gfm-border);
    color: var(--gfm-text);
    margin-bottom: 160px;
}

.footer-container {
    max-width: 100%;
}

.footer-group {
    margin-bottom: 24px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--gfm-text);
    margin-bottom: 16px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-link {
    font-size: 16px;
    color: var(--gfm-text);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-accordion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--gfm-text);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.footer-social-app {
    margin-top: 40px;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.social-link {
    color: var(--gfm-text);
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: #000000;
}

.icon-social {
    width: 24px;
    height: 24px;
}

.app-store-badge {
    display: inline-block;
}

.footer-legal {
    margin-top: 24px;
}

.copyright {
    font-size: 16px;
    color: #666666;
    margin-bottom: 24px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list li {
    margin-bottom: 12px;
}

.legal-link {
    font-size: 16px;
    color: var(--gfm-text);
    text-decoration: none;
    font-weight: 500;
}

.legal-link:hover {
    text-decoration: underline;
}

.privacy-choices {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gfm-text);
    font-weight: 500;
}

.icon-privacy-toggle {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .donorbox-modal {
        max-width: 92%;
        padding: 16px;
        border-radius: 16px;
    }
    #gf-iframe {
        height: 85vh;
        /* ocupa bem, mas não “telão” */
    }
}