/* ============================================
   MSB GROUP - CONSULTORIA - ESTILOS COMPLETOS
   ============================================ */

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #e5e7eb;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   BOTÕES DE PAGAMENTO
   ============================================ */
.payment-btn-pix {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #4f46e5;
    background-color: #eef2ff;
    color: #4f46e5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-btn-pix:hover {
    background-color: #e0e7ff;
    border-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.payment-btn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #d1d5db;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-btn-card:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CAMPOS DE CARTÃO (IFRAMES MERCADO PAGO)
   ============================================ */
#cardNumber,
#expirationDate,
#securityCode,
#issuer,
#installments {
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

#cardNumber:focus-within,
#expirationDate:focus-within,
#securityCode:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#cardNumber iframe,
#expirationDate iframe,
#securityCode iframe {
    width: 100% !important;
    height: 48px !important;
    border: none !important;
}

/* Garantir que iframes sejam visíveis */
iframe[name^="__privateStripeMetricsController"],
iframe[name^="__privateStripeFrame"] {
    display: block !important;
    visibility: visible !important;
}

/* ============================================
   CARDS DE PLANOS
   ============================================ */
.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Badge Popular/Sob Demanda */
.badge-popular {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 0.25rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 10;
}


.price-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 100;
    letter-spacing: -1px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-paid {
    background-color: #dbeafe;
    color: #1e40af;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

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

/* ============================================
   DROPDOWN MENU
   ============================================ */
#userDropdown {
    animation: slideDown 0.2s ease-out;
}

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

/* ============================================
   TRANSIÇÕES SUAVES
   ============================================ */
.transition-all {
    transition: all 0.3s ease;
}

/* ============================================
   INPUTS E FORMS
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #4f46e5;
}

/* ============================================
   SCROLLBAR CUSTOMIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #f1f1f1;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */
button {
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Links */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   ANIMAÇÕES DE ENTRADA
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* ============================================
   GRID RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .payment-btn-pix,
    .payment-btn-card {
        padding: 0.75rem;
    }
    
    #userDropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }
    
    .plan-card {
        margin-bottom: 1rem;
    }
    
    .badge-popular {
        font-size: 0.75rem;
        padding: 0.2rem 1rem;
    }
}

@media (max-width: 640px) {
    header nav {
        display: none;
    }
    
    #loginBtn span,
    #userMenuBtn span {
        display: none;
    }
    
    #loginBtn svg,
    #userMenuBtn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header,
    footer,
    button,
    .payment-btn-pix,
    .payment-btn-card,
    #userDropdown,
    #userMenuBtn,
    #loginBtn {
        display: none !important;
    }
    
    .plan-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        background: white !important;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-balance {
    text-wrap: balance;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ESTADOS DE LOADING
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para navegação por teclado */
*:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* ============================================
   DARK MODE (OPCIONAL - SE QUISER IMPLEMENTAR)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Comentado por padrão, descomente se quiser dark mode */
    /*
    body {
        background: #1a1a1a;
        color: #e5e7eb;
    }
    
    .bg-white {
        background-color: #2d2d2d !important;
    }
    
    .text-gray-800 {
        color: #e5e7eb !important;
    }
    
    .text-gray-600 {
        color: #9ca3af !important;
    }
    */
}

/* ============================================
   ANIMAÇÕES ESPECIAIS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ============================================
   FIM DO ARQUIVO
   ============================================ */