/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #fce7f3;
    --primary-lighter: #fdf2f8;
    --secondary: #f472b6;
    --accent: #fbbf24;
    --text: #374151;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 1.75rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Main Content */
.main {
    padding: 40px 0 60px;
}

.campaign-header {
    text-align: center;
    margin-bottom: 30px;
}

.campaign-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.campaign-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.campaign-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

/* Left Column */
.campaign-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.campaign-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.campaign-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--success);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.campaign-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.organizer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.organizer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.organizer-info {
    display: flex;
    flex-direction: column;
}

.organizer-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.organizer-name {
    font-weight: 700;
    color: var(--text);
}

/* Progress Section */
.progress-section {
    margin-bottom: 24px;
}

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

.raised {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.goal {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-stats i {
    color: var(--primary);
}

/* Campaign Description */
.campaign-description {
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
}

.campaign-description h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaign-description h2 i {
    color: var(--primary);
}

.campaign-description p {
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Recent Donations */
.recent-donations {
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.recent-donations h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-donations h3 i {
    color: var(--primary);
}

.donation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.donation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
}

.donation-info {
    flex: 1;
}

.donation-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.donation-message {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    font-style: italic;
}

.donation-amount {
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

.donation-time {
    font-size: 0.8rem;
    color: var(--text-lighter);
    text-align: right;
    display: block;
    margin-top: 4px;
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

/* Right Column - Donation Box */
.campaign-right {
    position: sticky;
    top: 90px;
}

.donation-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-light);
}

.donation-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.donation-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Donation Cards */
.donation-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.donation-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.donation-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.donation-card.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.donation-card.featured {
    border-color: var(--accent);
    background: var(--white);
}

.donation-card.featured.selected {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
}

.card-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.donation-card.custom .card-icon {
    font-size: 1.5rem;
}

/* Custom Input */
.custom-input-container {
    display: none;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.custom-input-container.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.custom-input-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.custom-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.currency {
    padding: 12px 16px;
    background: var(--gray-100);
    font-weight: 700;
    color: var(--text);
    border-right: 1px solid var(--gray-200);
}

#custom-value {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
}

/* Donor Info */
.donor-info {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.input-group.required label {
    font-weight: 700;
}

.required-mark {
    color: var(--error);
    font-weight: 800;
}

.error-message {
    display: none;
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 6px;
    font-weight: 600;
}

.error-message.show {
    display: block;
}

.input-group.has-error input,
.input-group.has-error textarea {
    border-color: var(--error) !important;
    background-color: #fef2f2;
}

.anonymous-check .hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    margin-left: 30px;
    font-weight: 400;
}

.input-group {
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.anonymous-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
}

.anonymous-check input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.anonymous-check input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.anonymous-check input:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
}

/* PIX Config */
.pix-config {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
    border-radius: var(--radius);
    border: 1px dashed var(--primary);
}

.pix-config .input-group label {
    color: var(--primary-dark);
}

/* Donate Button */
.btn-donate {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-donate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.btn-donate:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-donate i {
    font-size: 1.25rem;
}

.selected-amount {
    font-size: 0.9rem;
    opacity: 0.9;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.security-info i {
    color: var(--success);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

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

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

.modal-close:hover {
    background: var(--gray-200);
}

/* PIX Payment */
.pix-payment {
    padding: 32px;
}

.pix-header {
    text-align: center;
    margin-bottom: 24px;
}

.pix-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pix-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.pix-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.pix-header p {
    color: var(--text-light);
}

.pix-amount {
    text-align: center;
    padding: 16px;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.pix-amount .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.pix-amount .value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.pix-qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    min-height: 200px;
}

.pix-qr {
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pix-qr img {
    display: block;
}

.pix-qr-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.pix-qr-loading.show {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pix-code-section {
    margin-bottom: 24px;
}

.pix-code-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.pix-code-box {
    position: relative;
}

#pix-code {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    padding-bottom: 44px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
}

#pix-code:focus {
    border-color: var(--primary);
}

.btn-copy {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.btn-copy.copied {
    background: var(--success);
}

.pix-instructions {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.pix-instructions h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.pix-instructions ol {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text);
}

.pix-instructions li {
    margin-bottom: 6px;
}

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #92400e;
}

.pix-timer i {
    color: #f59e0b;
}

/* Scroll Hint - Arrow to indicate more content */
.pix-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    margin-bottom: 20px;
    cursor: pointer;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
    border: 2px dashed var(--primary-light);
    transition: all 0.3s ease;
    animation: pulse-hint 2s infinite;
}

.pix-scroll-hint:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
    border-style: solid;
    transform: translateY(2px);
}

.pix-scroll-hint span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    animation: bounce-down 1.5s infinite;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.btn-done {
    width: 100%;
    padding: 16px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-done:hover {
    background: #059669;
}

/* Success Modal */
.modal-content.success {
    text-align: center;
    padding: 48px 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.modal-content.success h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.modal-content.success p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.success-message {
    font-size: 1.1rem;
    color: var(--primary) !important;
    font-weight: 600;
    margin: 16px 0 24px !important;
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 48px 0 24px;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand .logo {
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }

    .campaign-right {
        position: static;
    }

    .donation-box {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .main {
        padding: 24px 0 40px;
    }

    .campaign-header {
        margin-bottom: 20px;
    }

    .campaign-info {
        padding: 16px;
    }

    .donation-box {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .donor-info {
        padding: 16px;
        margin-bottom: 16px;
    }

    .pix-payment {
        padding: 24px 16px;
    }

    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .pix-amount .value {
        font-size: 1.5rem;
    }

    .pix-instructions {
        padding: 12px;
    }

    .pix-instructions ol {
        padding-left: 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    .header .container {
        height: 60px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .main {
        padding: 16px 0 32px;
    }

    .campaign-header {
        margin-bottom: 16px;
    }

    .campaign-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .campaign-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .campaign-left {
        gap: 16px;
    }

    .campaign-image img {
        height: 250px;
    }

    .campaign-info {
        padding: 14px;
    }

    .organizer {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .organizer-avatar {
        width: 42px;
        height: 42px;
    }

    .raised {
        font-size: 1.5rem;
    }

    .goal {
        font-size: 0.85rem;
    }

    .progress-stats {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .campaign-description {
        padding: 16px 0;
    }

    .campaign-description h2 {
        font-size: 1.1rem;
    }

    .campaign-description p {
        font-size: 0.95rem;
    }

    .recent-donations {
        padding-top: 16px;
    }

    .recent-donations h3 {
        font-size: 1rem;
    }

    .donation-item {
        padding: 10px;
        gap: 10px;
    }

    .donation-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .donation-name {
        font-size: 0.9rem;
    }

    .donation-amount {
        font-size: 0.9rem;
    }

    .donation-message {
        font-size: 0.8rem;
    }

    /* Donation Box Mobile */
    .donation-box {
        padding: 16px 12px;
        border-radius: var(--radius);
    }

    .donation-title {
        font-size: 1.1rem;
    }

    .donation-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .donation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .donation-card {
        padding: 10px 6px;
    }

    .card-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .card-value {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .card-label {
        font-size: 0.7rem;
    }

    .card-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: -6px;
    }

    .custom-input-container {
        padding: 12px;
        margin-bottom: 16px;
    }

    .currency {
        padding: 10px 12px;
    }

    #custom-value {
        padding: 10px 12px;
        font-size: 1rem;
    }

    .donor-info {
        padding: 14px 12px;
        margin-bottom: 16px;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .input-group input,
    .input-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .anonymous-check {
        font-size: 0.85rem;
    }

    .anonymous-check .hint {
        font-size: 0.75rem;
        margin-left: 26px;
    }

    .btn-donate {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .selected-amount {
        font-size: 0.85rem;
    }

    .security-info {
        font-size: 0.8rem;
        margin-top: 12px;
    }

    /* Modal Mobile */
    .modal {
        padding: 10px;
    }

    .modal-content {
        border-radius: var(--radius-lg);
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
        top: 12px;
        right: 12px;
    }

    .pix-payment {
        padding: 20px 14px;
    }

    .pix-header {
        margin-bottom: 16px;
    }

    .pix-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .pix-icon i {
        font-size: 1.5rem;
    }

    .pix-header h2 {
        font-size: 1.25rem;
    }

    .pix-header p {
        font-size: 0.9rem;
    }

    .pix-amount {
        padding: 12px;
        margin-bottom: 16px;
    }

    .pix-amount .label {
        font-size: 0.85rem;
    }

    .pix-amount .value {
        font-size: 1.35rem;
    }

    .pix-qr-container {
        margin-bottom: 16px;
        min-height: 180px;
    }

    .pix-qr {
        padding: 12px;
    }

    .pix-code-section {
        margin-bottom: 16px;
    }

    .pix-code-section label {
        font-size: 0.85rem;
    }

    #pix-code {
        min-height: 70px;
        padding: 10px;
        padding-bottom: 40px;
        font-size: 0.75rem;
    }

    .btn-copy {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .pix-instructions {
        padding: 12px;
        margin-bottom: 16px;
    }

    .pix-instructions h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .pix-instructions ol {
        padding-left: 16px;
        font-size: 0.85rem;
    }

    .pix-instructions li {
        margin-bottom: 4px;
    }

    .pix-timer {
        padding: 10px;
        margin-bottom: 16px;
        font-size: 0.85rem;
    }

    .btn-done {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* Success Modal Mobile */
    .modal-content.success {
        padding: 32px 20px;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .success-icon i {
        font-size: 2rem;
    }

    .modal-content.success h2 {
        font-size: 1.25rem;
    }

    .modal-content.success p {
        font-size: 0.9rem;
    }

    .success-message {
        font-size: 1rem !important;
        margin: 12px 0 20px !important;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 32px 0 16px;
    }

    .nav {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .container {
        padding: 0 10px;
    }

    .campaign-title {
        font-size: 1.2rem;
    }

    .donation-cards {
        gap: 6px;
    }

    .donation-card {
        padding: 8px 4px;
    }

    .card-icon {
        font-size: 1.2rem;
    }

    .card-value {
        font-size: 0.9rem;
    }

    .card-label {
        font-size: 0.65rem;
    }

    .donation-box {
        padding: 14px 10px;
    }

    .donor-info {
        padding: 12px 10px;
    }

    .pix-payment {
        padding: 16px 10px;
    }
}
