/* ===== CSS MODERNO PARA PÁGINA DE PLANOS ===== */

/* Loading dos planos */
.loading-plans {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-plans i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.loading-plans p {
    font-size: 1.1rem;
    margin: 0;
}

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

:root {
    /* Cores principais */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #8b5cf6;
    
    /* Cores de texto */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* Cores de fundo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Cores de status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Bordas */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 0; /* Removido padding-top para evitar conflito com navbar */
}

/* ===== HERO SECTION REMOVIDA ===== */
/* A seção hero foi removida para evitar conflitos com a navbar */

/* ===== PLANS SECTION ===== */
.plans-section {
    padding: 2rem 0 6rem 0;
    background: var(--bg-primary);
    position: relative;
    margin-top: 0;
}

.plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Plan Cards */
.plan-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

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

.plan-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.plan-card.featured::before {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    opacity: 1;
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.featured-badge i {
    animation: flame 2s infinite;
}

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

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.premium-plan .plan-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.pro-plan .plan-icon {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
}

.plan-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 1rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0.25rem;
}

.premium-plan .plan-price .amount {
    color: var(--secondary);
}

.pro-plan .plan-price .amount {
    color: var(--accent);
}

.plan-price .period {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.savings-badge,
.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Plan Features */
.plan-features {
    margin-bottom: 2.5rem;
}

.plan-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i.fa-check {
    color: var(--success);
    font-size: 1rem;
}

.plan-features i.fa-times {
    color: var(--error);
    font-size: 1rem;
}

.plan-features .limitations li {
    color: var(--text-light);
}

/* Plan Actions */
.plan-actions {
    text-align: center;
}

.btn-plan {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.btn-current {
    background: var(--text-light);
    color: white;
    cursor: not-allowed;
}

/* Todos os planos pagos usam PIX */
.btn-basic,
.btn-premium,
.btn-enterprise {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-basic:hover,
.btn-premium:hover,
.btn-enterprise:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.payment-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-tertiary);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--text-primary), #374151);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

/* ===== LOADING E ERROR STATES ===== */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.loading-spinner {
    text-align: center;
    color: #6b7280;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.error-message {
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
}

.error-message i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-message h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.error-message p {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

.btn-retry {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-retry:hover {
    background: #2563eb;
}

.btn-retry i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ===== AVISO PUSHINPAY ===== */
.pushinpay-notice {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f39c12;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-content i {
    color: #f39c12;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notice-content p {
    margin: 0;
    color: #8b4513;
    font-size: 14px;
    line-height: 1.5;
}

.notice-content strong {
    color: #d35400;
    font-weight: 600;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .plan-card.featured {
        grid-column: span 2;
        order: -1;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .plans-section {
        padding: 1rem 0 4rem 0;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card.featured {
        grid-column: span 1;
        order: 0;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .plans-section {
        padding: 1rem 0 3rem 0;
    }
    
    .plans-container,
    .faq-container,
    .cta-container {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .plan-card {
        padding: 1.25rem;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    .btn-plan {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* ===== ANIMAÇÕES ESPECÍFICAS ===== */
/* Animações removidas para simplificar o layout */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #404040;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --border-color: #404040;
    }
}

/* ===== ESTILOS PARA CARDS QUE REQUEREM LOGIN ===== */

.plan-card.requires-login {
    position: relative;
    transition: all 0.3s ease;
}

.plan-card.requires-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-card.requires-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.plan-card.requires-login:hover::before {
    opacity: 1;
}

.login-required-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

.login-required-info i {
    color: #f59e0b;
}

.btn-login {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

/* ===== ESTILOS PARA PAGAMENTO PIX PUSHINPAY ===== */

/* Popup PIX */
.pix-payment {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.pix-header {
    margin-bottom: 2rem;
}

.pix-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pix-header h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pix-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pix-qr-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.qr-code-image {
    max-width: 200px;
    max-height: 200px;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    object-fit: contain;
    background: white;
    padding: 8px;
}

.qr-instructions {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.pix-amount {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    color: white;
}

.amount-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.amount-value {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-top: 0.25rem;
}

.pix-copy-paste {
    margin: 1.5rem 0;
    text-align: left;
}

.pix-copy-paste label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.copy-input-group {
    display: flex;
    gap: 0.5rem;
}

.pix-code-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

.btn-copiar-pix {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.btn-copiar-pix:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.pix-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Aguardando Pagamento */
.aguardando-pagamento {
    text-align: center;
    padding: 2rem;
}

.loading-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.aguardando-pagamento h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.aguardando-pagamento p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.payment-status {
    margin: 2rem 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-verificar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-verificar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-verificar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Pagamento Aprovado */
.pagamento-aprovado {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.pagamento-aprovado h4 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pagamento-aprovado p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.payment-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Pagamento Falhou */
.pagamento-falhou {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: var(--error);
    margin-bottom: 1.5rem;
}

.pagamento-falhou h4 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pagamento-falhou p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-retry {
    background: var(--warning);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-retry:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ===== RESPONSIVIDADE PARA PAGAMENTO ===== */
@media (max-width: 768px) {
    .pix-payment {
        padding: 1rem;
    }
    
    .pix-qr-container {
        padding: 1rem;
    }
    
    .qr-code-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .pix-amount {
        padding: 0.75rem;
    }
    
    .amount-value {
        font-size: 1.5rem;
    }
    
    .copy-input-group {
        flex-direction: column;
    }
    
    .btn-copiar-pix {
        width: 100%;
        justify-content: center;
    }
    
    .pix-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-verificar,
    .btn-retry,
    .btn-success {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .payment-details {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-error i {
    color: var(--error);
}

.toast-info i {
    color: var(--primary);
}

.toast p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== QR CODE PLACEHOLDER ===== */
.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-secondary);
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.qr-code-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.qr-code-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== ACTIVE PLAN CONTAINER ===== */
.active-plan-container {
    margin-bottom: 3rem;
}

/* ===== PLANO GRATUITO ===== */
.free-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    background: linear-gradient(135deg, var(--success), #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-free {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.plan-card.free-plan {
    border: 2px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
}

.plan-card.free-plan::before {
    background: linear-gradient(90deg, var(--success), #059669);
    opacity: 1;
}

.plan-card.free-plan .plan-icon {
    background: linear-gradient(135deg, var(--success), #059669);
}

.plan-card.free-plan .plan-features li {
    color: var(--text-secondary);
}

.plan-card.free-plan .plan-features li:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.plan-card.free-plan .plan-features li:nth-child(2),
.plan-card.free-plan .plan-features li:nth-child(3) {
    color: var(--error);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}

/* ===== REDIRECIONAMENTO AUTOMÁTICO ===== */
.auto-redirect-info {
    margin-top: 20px;
    padding: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    text-align: center;
}

.auto-redirect-info p {
    margin: 0;
    color: #0369a1;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auto-redirect-info i {
    color: #0284c7;
}

#countdown-timer {
    font-weight: 600;
    color: #dc2626;
}

/* ===== MENSAGEM DE PLANO ATIVO ===== */
.active-plan-message {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.active-plan-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid var(--success);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.active-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), #059669);
}

.active-plan-header {
    margin-bottom: 2rem;
}

.active-plan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

.active-plan-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.active-plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-status {
    margin: 0;
}

.status-badge.status-active {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.expiry-info {
    text-align: right;
}

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

.expiry-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.expiry-date.expiring-soon {
    color: var(--warning);
    animation: pulse 1.5s infinite;
}

.renewal-notice {
    grid-column: 1 / -1;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.renewal-notice i {
    color: var(--warning);
    font-size: 1.25rem;
}

.renewal-notice p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.active-plan-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-renew {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-view-profile {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-view-profile:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== BOTÕES DE PLANO ATUALIZADOS ===== */
.btn-upgrade {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.current-plan-info,
.upgrade-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ===== RESPONSIVIDADE PARA PLANO ATIVO ===== */
@media (max-width: 768px) {
    .active-plan-card {
        padding: 1.5rem;
    }
    
    .active-plan-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .expiry-info {
        text-align: center;
    }
    
    .active-plan-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-renew,
    .btn-view-profile {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .renewal-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .active-plan-card {
        padding: 1.25rem;
    }
    
    .active-plan-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .active-plan-header h3 {
        font-size: 1.5rem;
    }
    
    .plan-info h4 {
        font-size: 1.25rem;
    }
}

/* Contador regressivo para verificação automática */
.pix-auto-verification {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.auto-check-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auto-check-info i {
    color: var(--primary);
    animation: spin 2s linear infinite;
}

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

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.countdown-value {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 3rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

.countdown-unit {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Aviso de fechamento */
.verification-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #f59e0b;
    background: #fef3c7;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    border-left: 3px solid #f59e0b;
    font-weight: 500;
    line-height: 1.4;
}

.verification-warning i {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
}

.verification-warning span {
    font-weight: 500;
}

/* Responsividade para contador */
@media (max-width: 768px) {
    .pix-auto-verification {
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .countdown-timer {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .countdown-value {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        min-width: 2.5rem;
    }
}
