* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #593a0d;
    --primary-hover: #F6D400;
    --success-color: #F6D400;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #593a0d 0%, #f0f0f0 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    text-align: center;
}

.product-image {
    margin-bottom: 24px;
}

.product-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.price-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: inline-block;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 300px;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.875rem;
    color: var(--text-light);
}

.checkout-content {
    position: relative;
}

.back-button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--text-dark);
}

.checkout-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.product-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 24px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fee2e2;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
}

.payment-content {
    text-align: center;
}

.payment-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.qrcode-container {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: inline-block;
}

.qrcode-image {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.payment-instructions {
    text-align: left;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.payment-instructions h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.payment-instructions ol {
    margin-left: 20px;
}

.payment-instructions li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.pix-copy-paste {
    margin-bottom: 24px;
}

.pix-copy-paste p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.copy-container {
    display: flex;
    gap: 8px;
}

.copy-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: monospace;
}

.copy-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: var(--primary-hover);
}

.payment-status {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 24px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#statusMessage {
    font-weight: 600;
    color: var(--text-light);
}

.payment-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.payment-info p {
    margin-bottom: 8px;
}

.success-content {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--success-color);
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.download-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.download-box h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.download-box p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.download-button {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #059669;
    transform: translateY(-2px);
}

.success-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.success-info p {
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    section {
        padding: 24px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 8px;
    }
}
