@import url("https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&display=swap");

:root {
    --primary: #2596be;
    --secondary: #fff313;
    --accent: #a7f9e3;
    --text-main: #2c3e50;
    --text-muted: #7f8b9e;
    --bg-light: #f0faf9;
    /* Inspired by #a7f9e3 */
    --white: #ffffff;
    --gray-200: #ededf3;
    --green-success: #27ae60;
    --font-family: "Mukta", sans-serif;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    word-break: break-word;
}

html {
    overflow-x: hidden;
    width: 100%;
}

input,
button,
select,
textarea {
    font-family: var(--font-family);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo img {
    height: 64px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--primary);
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-trigger,
.menu-trigger {
    display: none;
    /* Hidden on desktop */
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {

    .search-trigger,
    .menu-trigger {
        display: flex;
    }

    header {
        padding: 0.5rem 0;
        width: 100%;
    }

    .header-container {
        padding: 0 0.75rem;
        width: 100%;
    }

    .logo img {
        height: 44px;
    }

    html,
    body {
        font-size: 15px;
        /* Scaled down base */
    }
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

@media (min-width: 1025px) {
    main {
        display: grid;
        grid-template-columns: 1fr 380px;
    }
}

@media (max-width: 1024px) {
    main {
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
        width: 100%;
    }
}

/* Content Area */
.content-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.hero-media {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-media img {
    width: 100%;
    display: block;
}

.badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    color: var(--green-success);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab-count {
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Story */
.story-content {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

.story-content p {
    margin-bottom: 1.25rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.progress-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.amount-raised {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.label-raised {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.value-raised {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.goal-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.progress-bar-bg {
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.donation-selector {
    margin-top: 1.5rem;
}

.selector-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.amount-grid,
.amount-grid-large {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-btn,
.amount-btn-large {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.amount-tag {
    position: absolute;
    right: 8px;
    max-width: 74px;
    font-size: 0.625rem;
    font-weight: 700;
    background: #4ade80;
    color: #14532d;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.amount-btn:hover,
.amount-btn-large:hover {
    background: var(--primary);
    color: var(--white);
}

.amount-btn:hover .amount-tag,
.amount-btn-large:hover .amount-tag {
    background: #4ade80;
    color: #14532d;
}

.custom-amount-wrapper,
.custom-amount-wrapper-large {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 0.5rem;
    grid-column: 1 / -1;
    white-space: nowrap;
}

.custom-amount-wrapper:focus-within,
.custom-amount-wrapper-large:focus-within {
    border-color: var(--primary);
}

.currency-prefix {
    font-weight: 600;
    color: var(--text-muted);
}

.custom-amount-input {
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    background: transparent;
    padding-left: 0.25rem;
}

.btn-donate-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-donate {
    width: 100%;
    background: var(--secondary);
    color: #000;
    /* Yellow needs dark text */
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
    box-shadow: 0 4px 0px #d4cc10;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #d4cc10;
}

.btn-donate:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-follow {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 40px;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.cnpj-info {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Campaign Meta & Pix */
.campaign-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.meta-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #27ae60;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-separator {
    color: var(--gray-200);
}

.pix-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    font-size: 0.9375rem;
}

.pix-info p:first-child {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Tabs Display */
.tabs-display {
    margin-top: 3rem;
}

.tab-content {
    margin-bottom: 3rem;
}

.tab-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-title .count {
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.btn-message {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

/* Donors List */
.donors-shared-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.donor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.donor-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.donor-details .donor-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.125rem;
}

.donor-details .donor-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-view-more {
    margin-top: 2rem;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* Trust Section */
.trust-section {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.trust-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .trust-container {
        grid-template-columns: 1fr;
    }
}

.trust-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.trust-item h4 {
    color: var(--text-main);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.trust-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Related Campaigns */
.related-campaigns {
    margin-top: 5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.campaign-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    cursor: pointer;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
}

.card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-progress-bar div {
    height: 100%;
    background: var(--secondary);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Auth Modals */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    /* Permite scroll no overlay se o container for muito grande */
}

.auth-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.auth-container {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    margin: auto;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    /* Voltando a 'hidden' mas agora o overlay tem o scroll natural */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth-overlay.active .auth-container {
    transform: translateY(0);
}

.auth-image {
    background: url("Homem mais alto do Brasil precisa de ajuda para voltar a andar_files/76842dad-c511-41cd-9ab5-deda1633a3ff.png") center/cover;
    display: block;
}

.auth-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header img {
    height: 48px;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth-header .toggle-auth {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-header .toggle-auth:hover {
    color: var(--primary);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fafaff;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(114, 47, 130, 0.1);
}

.input-icon-end {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.btn-auth {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.1s;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: #1a7494;
}

.btn-auth:active {
    transform: scale(0.98);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* Registration specific */
.registration-container {
    max-width: 650px;
    grid-template-columns: 1fr;
}

.registration-container .auth-content {
    padding: 2.5rem;
}

.section-title-auth {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title-auth::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.close-auth {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    z-index: 10;
}

.close-auth:hover {
    background: #e0e0ea;
    transform: rotate(90deg);
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
}

/* --- Premium Bottom Sheet Drawer --- */
@media (max-width: 768px) {
    .auth-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .auth-container {
        border-radius: 32px 32px 0 0 !important;
        transform: translateY(100%);
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.15);
        grid-template-columns: 1fr;
        border: none;
        z-index: 2100;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: none;
        flex-direction: column;
    }

    .auth-container.active {
        transform: translateY(0) !important;
        display: flex !important;
    }

    /* Handle Bar */
    .auth-container::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: #e2e8f0;
        border-radius: 10px;
        z-index: 2200;
    }

    .auth-content {
        padding: 2.5rem 1.5rem 3.5rem !important;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .close-auth {
        top: 1rem;
        right: 1.25rem;
        background: #f1f5f9;
        width: 36px;
        height: 36px;
    }

    .amount-btn,
    .amount-btn-large {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .mobile-sticky-footer {
        display: flex;
    }

    body {
        padding-bottom: 140px;
    }
}

@media (max-width: 360px) {

    html,
    body {
        font-size: 14px;
    }

    .header-container {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 40px;
    }

    main {
        padding: 0 0.5rem;
    }

    .auth-content {
        padding: 1.5rem 1rem 2.5rem !important;
    }

    .value-raised {
        font-size: 1.5rem;
    }

    .content-header h1 {
        font-size: 1.4rem;
    }
}

/* Mobile Sticky Footer Styles Refined */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1500;
    padding: 1rem 1rem env(safe-area-inset-bottom);
    padding-bottom: 2rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.footer-stats-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.25rem;
}

.stats-header .label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #8e96a4;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.stats-header .goal {
    font-size: 0.875rem;
    font-weight: 600;
    color: #8e96a4;
}

.stats-value-row {
    margin-bottom: 0.25rem;
}

.stats-value-row .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.mini-progress-bar {
    height: 4px;
    background: #eaecef;
    border-radius: 100px;
    overflow: hidden;
    margin: 0.25rem 0;
}

.mini-progress-bar .fill {
    height: 100%;
    background: var(--primary);
}

.stats-footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 500;
    color: #949bab;
}

.footer-actions-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-share-mobile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8f1f9;
    /* Subtle tint from image */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-doar-mobile {
    flex: 1;
    height: 48px;
    background: var(--primary);
    /* Image shows pink, but palette is blue */
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.2);
}

.btn-message-mobile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #5d5a88;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-sticky-footer {
        display: flex;
    }

    body {
        padding-bottom: 160px;
        /* Space for footer */
    }

    .sidebar {
        display: none;
    }
}

.content-sections {
    margin-top: 3rem;
}

.section-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-input-area {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

@media (max-width: 480px) {
    .comment-input-area {
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: 12px;
        flex-wrap: wrap;
        /* Allows stacking */
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .comment-input {
        flex: 1;
        /* Input takes remaining space next to avatar */
        min-width: 200px;
        /* Forces wrap if space is tight */
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .btn-comment-send {
        width: 100%;
        /* Button goes to next "row" and takes full width */
        padding: 0.75rem;
        font-size: 1rem;
        margin-top: 0.25rem;
    }
}

/* Avatars removed */
.comment-avatar,
.comment-user-img {
    display: none !important;
}

.comment-input {
    flex: 1;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    background: white;
    cursor: pointer;
}

.btn-comment-send {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    animation: slideUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.comment-user-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--accent);
}

.comment-content {
    flex: 1;
    background: #f1f5f9;
    padding: 1rem 1.25rem;
    border-radius: 16px;
}

.comment-user-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.comment-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.btn-view-more-comments {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-more-comments:hover {
    background: var(--primary);
    color: white;
}

/* Cleanup duplications and extra safety */
@media (max-width: 480px) {
    .comment-content {
        padding: 0.75rem !important;
    }

    .comment-item {
        gap: 0.5rem !important;
    }

    .comment-text {
        font-size: 0.875rem;
    }
}

/* Anonymous Donation Styles - Compact & Premium */
.anonymous-donation-section {
    margin: 0.5rem 0 1.25rem;
    /* Reduced top margin */
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.anonymous-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 1.25rem;
}

.anonymous-checkbox-container input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anonymous-checkbox-container input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.anonymous-checkbox-container input:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.optional-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-optional label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-optional input,
.form-group-optional textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: var(--white);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.form-group-optional input:focus,
.form-group-optional textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 150, 190, 0.1);
}

.form-group-optional textarea {
    resize: none;
    height: 70px;
}

/* Fix drawer hitting top on mobile */
@media (max-width: 768px) {
    .auth-container {
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
}




@media (max-width: 768px) {
    .mobile-sticky-footer {
        display: flex;
    }



    .sidebar {
        display: none;
    }
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logos img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        justify-content: space-between;
        text-align: center;
    }

    .footer-logos {
        justify-content: center;
        gap: 1rem;
    }

    .footer-logos img {
        height: 18px;
    }

    footer {
        padding-bottom: 10px;
    }
}