/* ===================================
   VIP LEILÕES - Página de Pagamento
   Mobile-First Responsive Design
   =================================== */

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

:root {
    /* Cores Principais */
    --primary-blue: #0066CC;
    --dark-blue: #004999;
    --light-blue: #E6F2FF;
    --accent-blue: #0080FF;
    
    /* Cores Complementares */
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E0E5EB;
    --dark-gray: #4A5568;
    --text-primary: #1A202C;
    --text-secondary: #718096;
    
    /* Cores de Status */
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Espaçamentos */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

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

/* ===================================
   Header
   =================================== */

.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: var(--spacing-lg) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
}

.logo-section i {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.security-badges {
    display: flex;
    gap: var(--spacing-xs);
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* ===================================
   Main Content
   =================================== */

.main-content {
    padding: var(--spacing-lg) 0;
    min-height: calc(100vh - 200px);
}

.payment-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    animation: slideUp 0.6s ease-out;
}

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

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.icon-badge {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.icon-badge i {
    font-size: 32px;
    color: var(--white);
}

.title-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Amount Section */
.amount-section {
    text-align: center;
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, #F0F9FF 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--primary-blue);
}

.amount-section .currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    vertical-align: super;
}

.amount-section .value {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: -2px;
}

.amount-section .cents {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Security Info */
.security-info {
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.security-item i {
    font-size: 24px;
    color: var(--success-green);
}

.security-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--medium-gray) 50%, transparent 100%);
    margin: var(--spacing-lg) 0;
}

.divider-small {
    position: relative;
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.divider-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--medium-gray);
    z-index: 0;
}

.divider-small span {
    position: relative;
    background: var(--white);
    padding: 0 var(--spacing-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 1;
}

/* Payment Method */
.payment-method {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pix-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.pix-header i {
    font-size: 28px;
    color: var(--primary-blue);
}

.pix-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.pix-description {
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

.qrcode-image {
    width: 250px;
    height: 250px;
    display: block;
    border-radius: var(--radius-sm);
}

.qrcode-hint {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.qrcode-hint i {
    color: var(--primary-blue);
    font-size: 18px;
}

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

.code-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.code-label i {
    color: var(--primary-blue);
}

.code-input-wrapper {
    margin-bottom: var(--spacing-md);
}

.code-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    background: var(--light-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

.copy-button {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

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

.copy-button i {
    font-size: 18px;
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.copy-feedback i {
    font-size: 20px;
}

/* WhatsApp Button */
.whatsapp-button {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-md);
    opacity: 0;
    transform: scale(0.95);
}

.whatsapp-button.show {
    display: flex;
}

.whatsapp-button:hover {
    transform: translateY(-2px) scale(1);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-button:active {
    transform: translateY(0) scale(0.98);
}

.whatsapp-button i {
    font-size: 22px;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Instructions */
.instructions {
    background: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--primary-blue);
}

.instructions h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.instructions h4 i {
    color: var(--primary-blue);
}

.instructions ol {
    padding-left: var(--spacing-lg);
}

.instructions li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.instructions strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Trust Section */
.trust-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--light-blue);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateX(5px);
}

.trust-item i {
    font-size: 28px;
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.trust-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-logo i {
    font-size: 24px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-icons i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-icons i:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablets e telas maiores */
@media (min-width: 768px) {
    .container {
        max-width: 560px;
    }
    
    .payment-card {
        padding: 40px;
    }
    
    .title-section h2 {
        font-size: 32px;
    }
    
    .amount-section .value {
        font-size: 72px;
    }
    
    .qrcode-image {
        width: 280px;
        height: 280px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 640px;
    }
    
    .copy-button:hover {
        background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
    }
}

/* Animações de entrada */
@media (prefers-reduced-motion: no-preference) {
    .security-item,
    .trust-item {
        animation: fadeIn 0.6s ease-out backwards;
    }
    
    .security-item:nth-child(1) { animation-delay: 0.1s; }
    .security-item:nth-child(2) { animation-delay: 0.2s; }
    .security-item:nth-child(3) { animation-delay: 0.3s; }
    
    .trust-item:nth-child(1) { animation-delay: 0.2s; }
    .trust-item:nth-child(2) { animation-delay: 0.3s; }
    .trust-item:nth-child(3) { animation-delay: 0.4s; }
}

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