 * {
     font-family: 'Poppins', sans-serif;
 }

 .plan-btn {
     position: relative;
     overflow: hidden;
 }

 .plan-btn:after {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
     transition: 0.5s;
 }

 .plan-btn:hover:after {
     left: 100%;
 }

 .gradient-bg {
     background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
 }

 .gradient-text {
     background: linear-gradient(to right, #6a11cb, #2575fc);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 .shadow-soft {
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
 }

 .phone-input:focus {
     outline: none;
     border-color: #6a11cb;
     box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
 }

 .step-icon {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-weight: bold;
     margin: 0 auto;
 }

 .fade-in {
     animation: fadeIn 0.8s ease-in-out;
 }

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

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Estilos para o modal */
 .modal-container {
     animation: modalFadeIn 0.3s ease-out;
     max-height: 90vh;
     overflow-y: auto;
 }

 @keyframes modalFadeIn {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .modal-form input,
 .modal-form select {
     transition: all 0.3s ease;
 }

 .modal-form input:focus,
 .modal-form select:focus {
     border-color: #6a11cb;
     box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
     outline: none;
 }

 /* Custom select arrow */
 .modal-form select {
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 0.75rem center;
     background-size: 1.5em 1.5em;
     padding-right: 2.5rem;
 }

 /* Estilo para opções do select */
 .modal-form select option {
     padding: 12px;
     background-color: white;
 }

 .modal-form select option:checked {
     background-color: #f0f7ff;
     color: #1e40af;
 }

 /* Estilos para o loading modal */
 .loading-modal {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(255, 255, 255, 0.95);
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 1rem;
     z-index: 10;
 }

 .loading-modal-container {
     text-align: center;
 }

 /* Spinner animation */
 .spinner {
     width: 60px;
     height: 60px;
     border: 5px solid #f3f3f3;
     border-top: 5px solid #6a11cb;
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 /* Progress bar animation */
 .progress-bar {
     animation: progress 2s ease-in-out infinite;
 }

 @keyframes progress {
     0% {
         width: 0%;
     }

     50% {
         width: 70%;
     }

     100% {
         width: 100%;
     }
 }

 /* Estilos para o modal PIX */
 .pix-modal {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: white;
     border-radius: 1rem;
     z-index: 10;
     overflow-y: auto;
 }

 .qr-placeholder {
     animation: pulse 2s infinite;
 }

 @keyframes pulse {
     0% {
         opacity: 0.8;
     }

     50% {
         opacity: 1;
     }

     100% {
         opacity: 0.8;
     }
 }

 .modal-header.inactive{
    display: none;
 }

 /* Quando o loading está ativo, desativar o formulário */
 .modal-body.inactive {
     opacity: 0.5;
     pointer-events: none;
     user-select: none;
 }

 /* Animação de transição entre telas */
 .modal-form-container,
 .loading-modal,
 .pix-modal {
     transition: opacity 0.3s ease;
 }

 /* Estilos responsivos para o modal PIX */
.pix-modal-container {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    max-height: 85vh;
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .pix-modal-container {
        padding: 1rem 0.75rem;
    }
    
    .qr-placeholder {
        width: 36vw !important;
        height: 36vw !important;
        min-width: 140px;
        min-height: 140px;
    }
}

/* Ajustes para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .pix-modal-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Ajustes para desktop */
@media (min-width: 1024px) {
    .pix-modal-container {
        max-width: 520px;
        margin: 0 auto;
    }
}

/* Melhorar a legibilidade do código PIX em telas pequenas */
#pix-code {
    font-size: 0.7rem;
    padding: 0.5rem;
}

@media (min-width: 640px) {
    #pix-code {
        font-size: 0.75rem;
        padding: 0.625rem;
    }
}

@media (min-width: 768px) {
    #pix-code {
        font-size: 0.875rem;
    }
}

/* Ajustar altura do QR Code proporcionalmente */
.qr-placeholder {
    aspect-ratio: 1/1;
}

/* Botões responsivos */
.action-btns button {
    min-height: 48px; /* Tamanho mínimo para toque em dispositivos móveis */
}

/* Ajuste do texto em telas muito pequenas */
@media (max-width: 400px) {
    .pix-modal-container h3 {
        font-size: 1.25rem;
    }
    
    .pix-modal-container p {
        font-size: 0.875rem;
    }
}

/* Scroll suave para conteúdo longo */
.pix-modal {
    overflow-y: auto;
}

/* Melhorar espaçamento em landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .pix-modal-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .qr-placeholder {
        width: 30vh !important;
        height: 30vh !important;
    }
}