/* ========================================
   Reset and Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --secondary-color: #00cc88;
    --accent-color: #32BCAD;
    --success-color: #10b981;
    --whatsapp-color: #25D366;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    padding: var(--spacing-xl) 0;
    animation: fadeIn 0.8s ease-out;
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-xl);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 35px -5px rgba(0, 102, 204, 0.3);
    }
}

.hero-icon i {
    font-size: 3rem;
    color: white;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ========================================
   Payment Section
   ======================================== */
.payment-section {
    margin-bottom: var(--spacing-xl);
}

.payment-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-xl);
    animation: scaleIn 0.6s ease-out;
}

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

/* ========================================
   Amount Display
   ======================================== */
.amount-display {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.amount-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.amount-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.amount-description {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ========================================
   QR Code Section
   ======================================== */
.qr-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.section-title i {
    color: var(--accent-color);
    font-size: 2rem;
}

.qr-code-container {
    display: inline-block;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
    border: 3px solid var(--accent-color);
}

.qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-instruction {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   PIX Code Section
   ======================================== */
.pix-code-section {
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.pix-code-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.pix-code-input {
    flex: 1;
    min-width: 250px;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--background);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.pix-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.copy-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    animation: slideInUp 0.3s ease-out;
}

.copy-success.show {
    display: flex;
}

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

/* ========================================
   Instructions Section
   ======================================== */
.instructions-section {
    background: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.instructions-section .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.instructions-section .section-subtitle i {
    color: var(--primary-color);
}

.instructions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.instructions-list li {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.step-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   Security Info
   ======================================== */
.security-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(50, 188, 173, 0.1) 100%);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.security-item i {
    font-size: 1.25rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-section .section-title {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--surface);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-card:hover::before {
    opacity: 1;
}

.whatsapp-card .contact-icon {
    background: var(--whatsapp-color);
}

.email-card .contact-icon {
    background: var(--primary-color);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
}

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-arrow {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform var(--transition-base);
}

.contact-card:hover .contact-arrow {
    transform: translateX(5px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    text-align: center;
    color: white;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-logo i {
    font-size: 2rem;
}

.footer-text p {
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.footer-security {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .amount-value {
        font-size: 2.5rem;
    }
    
    .payment-card {
        padding: var(--spacing-md);
    }
    
    .pix-code-container {
        flex-direction: column;
    }
    
    .copy-button {
        width: 100%;
        justify-content: center;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-value {
        font-size: 0.95rem;
        word-break: break-word;
    }
    
    .security-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .header-content {
        justify-content: center;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .amount-value {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .pix-code-input {
        font-size: 0.75rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
    }
    
    .header,
    .footer,
    .contact-section,
    .copy-button {
        display: none;
    }
    
    .payment-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
