/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    position: relative;
}

/* Header de sucesso com fundo verde */
.success-header {
    background: linear-gradient(135deg, #00a650 0%, #00b557 100%);
    color: white;
    text-align: center;
    padding: 40px 20px 60px;
    position: relative;
    border-radius: 0 0 24px 24px;
}

.success-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.shopping-bag-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background-color: #00a650;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.operation-id {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Card de informações do pagamento */
.payment-card {
    background: white;
    margin: -30px 20px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    z-index: 2;
}

.payment-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pix-icon {
    width: 48px;
    height: 48px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pix-icon svg {
    width: 28px;
    height: 28px;
}

.payment-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.payment-note {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* Seção de informações */
.info-section {
    padding: 0 20px 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

/* Botões de ação */
.action-buttons {
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background-color: white;
    color: #3483fa;
    border: 2px solid #3483fa;
}

.btn-primary:hover {
    background-color: #e6f0ff;
    color: #3483fa;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #3483fa;
    border: 2px solid #3483fa;
}

.btn-secondary:hover {
    background-color: #3483fa;
    color: white;
    transform: translateY(-1px);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.button-text {
    flex: 1;
    text-align: center;
}

.full-seal-img {
    height: 35px; /* Aumenta a altura do selo FULL */
    width: 40px;
    flex-shrink: 0;
}

.pix-icon img {
    width: 40px; /* Ajusta o tamanho do SVG do Pix */
    height: 40px;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.footer-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px;
}

.footer-logo {
    margin-bottom: 24px;
    text-align: center;
}

.footer-logo svg {
    height: 30px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-link {
    color: #3483fa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #2968c8;
    text-decoration: underline;
}

.footer-info {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.footer-info p {
    margin-bottom: 8px;
}

/* Animações */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-header {
    animation: fadeIn 0.6s ease-out;
}

.payment-card {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.info-item:nth-child(1) {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.info-item:nth-child(2) {
    animation: slideInUp 0.6s ease-out 0.5s both;
}

.action-buttons {
    animation: slideInUp 0.6s ease-out 0.6s both;
}

/* Responsividade para telas maiores */
@media (min-width: 481px) {
    .container {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        margin: 20px auto;
        border-radius: 12px;
        overflow: hidden;
        min-height: calc(100vh - 40px);
    }
    
    .success-header {
        border-radius: 0;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .success-title {
        font-size: 22px;
    }
    
    .payment-card {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .info-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .action-buttons {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Estados de loading e interação */
.btn-primary:active, .btn-secondary:active {
    transform: translateY(0);
}

.payment-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.info-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
.btn-primary:focus, .btn-secondary:focus {
    outline: 2px solid #3483fa;
    outline-offset: 2px;
}

.footer-link:focus {
    outline: 2px solid #3483fa;
    outline-offset: 2px;
    border-radius: 4px;
}
