:root {
    --primary-color: #00d166; /* Cor verde da Vakinha */
    --text-dark: #333333;
    --text-muted: #888888;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --border-color: #eaeaea;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-logo-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 24px auto;
    padding: 0;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Campaign Card */
.campaign-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.campaign-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
}

.campaign-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    color: #cccccc;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: color 0.2s;
}

.favorite-btn:hover {
    color: #ff4d4d;
}

.campaign-content {
    padding: 24px;
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.location i {
    font-size: 14px;
}

.campaign-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #222222;
}

.campaign-id {
    font-size: 15px;
    font-weight: 700;
    color: #444444;
    margin-bottom: 16px;
}

.campaign-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.see-more {
    color: #00a4db;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 480px) {
    .container {
        margin: 16px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .campaign-content {
        padding: 20px 16px;
    }
    
    .content-card {
        padding: 20px 16px;
    }
    
    .campaign-title {
        font-size: 22px;
    }
    
    .tabs-container {
        gap: 16px;
        padding: 0 16px;
    }
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 24px;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    background-color: transparent;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.tabs-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 0;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    font-family: inherit;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--text-dark);
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Content Card */
.content-card {
    background-color: transparent;
    border-radius: 0;
    padding: 24px;
    margin-top: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.donate-action-container {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.btn-donate-large {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(0, 209, 102, 0.3);
}

.btn-donate-large:hover {
    background-color: #00b859;
    transform: translateY(-1px);
}

.btn-donate-large:active {
    transform: translateY(1px);
}

.created-date {
    font-size: 14px;
    color: #555555;
    margin-bottom: 16px;
}

.created-date strong {
    color: #333333;
}

.about-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

.about-text p {
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Donation Values */
.donation-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.value-btn {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.value-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.value-btn.selected {
    background-color: #e6faf0;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Quem Ajudou - Stats Box */
.stats-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.bg-green { background-color: #00d166; }
.bg-blue { background-color: #0056e2; }
.bg-red { background-color: #cc0000; }

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

.stat-text strong {
    font-size: 15px;
    color: #333;
}

.stat-text span {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Supports List */
.supports-title {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 24px;
    font-weight: 700;
}

.supports-list {
    display: flex;
    flex-direction: column;
}

.support-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.support-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.bg-red-avatar { background-color: #ff0000; }
.bg-orange-avatar { background-color: #ff6633; }
.bg-purple-avatar { background-color: #990066; }
.bg-pink-avatar { background-color: #ff0099; }

.support-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-info strong {
    font-size: 15px;
    color: #222;
}

.support-info span {
    font-size: 13px;
    color: #666;
}

.support-time {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        background-color: #f0fdf4;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: transparent;
    }
}

.new-support {
    animation: slideDownFade 0.8s ease-out forwards;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-question i {
    font-size: 20px;
    color: #333333;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

.faq-answer p {
    padding: 0 16px 20px 16px;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Campaign Progress Section */
.campaign-progress {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.disclaimer {
    font-size: 11px;
    color: #888888;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: left;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #eaeaea;
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

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

.progress-amounts {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.progress-amounts .raised {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-amounts .goal {
    font-size: 16px;
    color: #666666;
    font-weight: 500;
}

.stats-mini-box {
    background-color: #f2fcf5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #444444;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stats-row span i {
    color: var(--primary-color);
    margin-left: 4px;
    vertical-align: middle;
}

.stats-row strong {
    font-weight: 700;
    color: #222222;
}

.protected-badge-container {
    margin-top: 24px;
}

.protected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #009e52;
    color: #009e52;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.protected-badge i {
    font-size: 16px;
}

/* Donation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 600px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-content {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 24px 24px 0 0;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
    .modal-content {
        border-radius: 20px;
        animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-modal:hover {
    background-color: #e0e0e0;
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 800;
}

.modal-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.preset-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.amount-btn {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-dark);
}

.amount-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 209, 102, 0.05);
}

.amount-btn.recommended {
    border-color: var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
}

.amount-btn.active {
    border-color: var(--primary-color) !important;
    background-color: rgba(0, 209, 102, 0.1) !important;
    color: var(--primary-color) !important;
}

.amount-btn.active .value,
.amount-btn.active .currency {
    color: var(--primary-color) !important;
}

.amount-btn.recommended .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,209,102,0.3);
}

.amount-btn .currency {
    font-size: 13px;
    font-weight: 600;
    margin-right: 2px;
}

.amount-btn .value {
    font-size: 24px;
    font-weight: 800;
}

.amount-btn .decimals {
    font-size: 13px;
    font-weight: 600;
}

.custom-amount {
    margin-bottom: 8px;
}

.custom-amount input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    text-align: center;
    font-weight: 600;
    color: #333;
}

/* User Details in Modal */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.user-details input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.user-details input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 209, 102, 0.1);
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.amount-limit-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
}

/* Creator Section */
.creator-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.creator-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 209, 102, 0.2);
}

.creator-info h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 700;
}

.creator-info .creator-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.creator-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    background-color: #f2fcf5;
    padding: 16px 20px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

/* PIX Payment View */
.pix-qr-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#pix-qrcode {
    max-width: 100%;
    height: auto;
}

.pix-code-box {
    margin-top: 24px;
    text-align: left;
}

.pix-code-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pix-code-wrapper {
    display: flex;
    gap: 8px;
}

.pix-code-wrapper input {
    flex: 1;
    padding: 12px 16px;
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    font-family: monospace;
}

.btn-copy {
    padding: 0 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background-color: #00b357;
    transform: translateY(-1px);
}

.pix-footer {
    margin-top: 24px;
    padding: 16px;
    background-color: #fff9db;
    border-radius: 12px;
    border: 1px solid #fff3bf;
    text-align: left;
}

.pix-footer p {
    font-size: 12px;
    color: #856404;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    margin: 0;
}

.pix-footer i {
    font-size: 16px;
}

/* Spinner Animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Success View */
.success-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-box {
    background-color: #f2fcf5;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 209, 102, 0.1);
    margin-top: 20px;
}

.success-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #2e7d32;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
