/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Cores do Tema */
    --bg-app: #0f172a;          /* Slate-900 */
    --bg-card: rgba(30, 41, 59, 0.75); /* Slate-800 com 75% opacidade */
    --border-color: #334155;     /* Slate-700 */
    --border-color-hover: #475569;
    
    /* Cores de Acentuação */
    --primary: #8b5cf6;         /* Violet-500 */
    --primary-hover: #7c3aed;   /* Violet-600 */
    --primary-glow: rgba(139, 92, 246, 0.15);
    
    --success: #10b981;         /* Emerald-500 */
    --success-glow: rgba(16, 185, 129, 0.15);
    
    --danger: #f43f5e;          /* Rose-500 */
    --danger-glow: rgba(244, 63, 94, 0.15);
    
    /* Cores de Texto */
    --text-primary: #f8fafc;    /* Slate-50 */
    --text-secondary: #94a3b8;  /* Slate-400 */
    --text-muted: #64748b;      /* Slate-500 */

    /* Efeitos e Tipografia */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 
                      0 10px 10px -5px rgba(0, 0, 0, 0.4),
                      0 0 40px rgba(139, 92, 246, 0.03);
}

/* ==========================================================================
   RESET & CONFIGURAÇÃO GERAL
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Classe utilitária oculta */
.hidden {
    display: none !important;
}

/* ==========================================================================
   EFEITOS DE BACKGROUND (GLOW RADIAL)
   ========================================================================== */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.bg-glow-violet {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.bg-glow-emerald {
    background: radial-gradient(circle, var(--success) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
}

/* ==========================================================================
   CONTAINER DA APLICAÇÃO
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 680px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

/* ==========================================================================
   CABEÇALHO (HEADER)
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.security-badge:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.badge-icon {
    color: var(--success);
}

/* ==========================================================================
   PAINEL DE CONFIGURAÇÕES IA (API KEY)
   ========================================================================== */
.settings-card {
    background-color: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-icon {
    color: var(--primary);
}

.settings-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
}

.key-inactive {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.key-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group {
    display: flex;
    gap: 12px;
}

.settings-input {
    flex-grow: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-save-settings {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary);
    color: #c084fc;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-save-settings:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.settings-help {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   CARD GLASSMORPHISM PRINCIPAL
   ========================================================================== */
.glass-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   DROPZONE (ÁREA DE UPLOAD)
   ========================================================================== */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    transition: border-color var(--transition-fast), 
                box-shadow var(--transition-fast), 
                background-color var(--transition-fast);
}

.hidden-input {
    display: none;
}

.dropzone:hover {
    border-color: var(--border-color-hover);
    background-color: rgba(15, 23, 42, 0.5);
}

.dropzone.drag-over {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.03);
    box-shadow: 0 0 20px var(--success-glow), 
                inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.upload-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    transition: var(--transition-fast);
}

.upload-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: var(--transition-fast);
}

.dropzone:hover .upload-icon-container {
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.dropzone.drag-over .upload-icon-container {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    transform: scale(1.05);
}

.dropzone.drag-over .upload-icon {
    color: var(--success);
}

.dropzone-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dropzone-or {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-browse {
    pointer-events: auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition-fast);
}

.btn-browse:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.25);
}

.dropzone-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 18px;
}

/* ==========================================================================
   PAINEL DE RESULTADOS E TABELA
   ========================================================================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.results-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.results-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}
.results-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-export-csv {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px var(--success-glow);
    transition: var(--transition-fast);
}

.btn-export-csv:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.btn-export-csv:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.icon-export {
    transition: transform var(--transition-fast);
}

.btn-export-csv:hover:not(:disabled) .icon-export {
    transform: translateY(1px);
}

/* Efeito de Pulse CSS para botão pronto */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-pulse {
    animation: pulse 1.5s infinite;
}

.btn-reset {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-reset:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.5);
}

.icon-reset {
    transition: transform 0.4s ease;
}

.btn-reset:hover .icon-reset {
    transform: rotate(-180deg);
}

/* Wrapper de Rolagem da Tabela */
.table-wrapper {
    max-height: 380px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.25);
}

/* Custom Scrollbar */
.table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-hover);
}

/* Tabela Estilizada */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.transaction-table thead {
    background-color: rgba(15, 23, 42, 0.6);
    position: sticky;
    top: 0;
    z-index: 10;
}

.transaction-table th {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-table tbody tr {
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    transition: background-color var(--transition-fast);
}

.transaction-table tbody tr:hover {
    background-color: rgba(51, 65, 85, 0.15);
}

.transaction-table tbody tr:last-child {
    border-bottom: none;
}

.transaction-table td {
    padding: 12px 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Cores dos Valores de Lançamento */
.value-positive {
    color: var(--success) !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.value-negative {
    color: var(--danger) !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.05);
}

/* Badge de Categorias */
.category-badge {
    background: rgba(139, 92, 246, 0.08);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

/* Badges de Status (Fase 7.4) */
.status-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition-fast);
}

.status-badge.status-success {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399; /* Emerald */
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-default {
    background: rgba(100, 116, 139, 0.08);
    color: #94a3b8; /* Slate */
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ==========================================================================
   RODAPÉ DO CARD (FOOTER)
   ========================================================================== */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.status-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.support-info {
    color: var(--text-muted);
}

/* ==========================================================================
   RODAPÉ DA APLICAÇÃO (FOOTER)
   ========================================================================== */
.app-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */
@media (max-width: 580px) {
    .glass-card {
        padding: 24px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .dropzone {
        padding: 32px 16px;
    }
    
    .transaction-table th, 
    .transaction-table td {
        padding: 10px 12px;
    }
    
    .main-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-save-settings {
        width: 100%;
    }
}

/* ==========================================================================
   MODAL DE PAYWALL (Fase 8 - PREMIUM GLASSMORPHISM)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-normal);
}

.glass-modal {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.35); /* Roxo Neon */
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25),
                0 0 50px rgba(139, 92, 246, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-close-modal:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 8px auto;
}

.icon-lock {
    color: #c084fc;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.btn-upgrade {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4),
                0 0 20px rgba(139, 92, 246, 0.2);
    transition: var(--transition-fast);
}

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

.btn-upgrade:active {
    transform: translateY(0);
}

/* Seção comercial com pilha de planos do Paywall (Fase 12) */
.paywall-plans-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    text-align: left;
}

.paywall-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.paywall-plan-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-2px);
}

.paywall-plan-card.popular {
    border-color: var(--primary);
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 70%), rgba(30, 41, 59, 0.5);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.paywall-plan-card.popular:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.2);
}

.paywall-plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paywall-plan-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.paywall-plan-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.paywall-plan-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.paywall-plan-price small {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-paywall-kiwify {
    text-decoration: none !important;
}

/* ==========================================================================
   LANDING PAGE STYLES (FASE 9)
   ========================================================================== */
.app-container.landing-active {
    max-width: 100%;
    padding: 0;
    gap: 0;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--success));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.logo-icon i {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 24px;
    background: radial-gradient(circle at 75% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-glow-purple 1.5s infinite;
}

@keyframes pulse-glow-purple {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-text-content h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-text-content h1 span {
    background: linear-gradient(135deg, var(--primary), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 3.5rem;
}

.cta-note {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 4px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Visual Card */
.preview-card-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-4deg) rotateX(4deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transition: var(--transition-normal);
}

.preview-card-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: rgba(139, 92, 246, 0.35);
}

.preview-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-title {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-title i {
    width: 14px;
    height: 14px;
    color: var(--success);
}

.preview-body {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
}

.preview-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.p-metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.p-metric span {
    font-size: 11px;
    color: var(--text-muted);
}

.p-metric strong {
    font-size: 16px;
    font-family: var(--font-heading);
    margin-top: 4px;
}

.p-metric.exp strong { color: var(--danger); }
.p-metric.inc strong { color: var(--success); }

.preview-table-mock {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-row {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr 2.3fr 2fr;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    font-size: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.t-row.t-head {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
}

.p-cat {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    width: fit-content;
}

.cat-transp { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.cat-inc { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.cat-soft { background: rgba(139, 92, 246, 0.15); color: #d8b4fe; }

.val-neg { color: var(--danger); text-align: right; }
.val-pos { color: var(--success); text-align: right; }

/* Features Section */
.features-section {
    padding: 5rem 24px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: left;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    transform: translateY(-5px);
}

.f-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.f-icon.purple { background: rgba(139, 92, 246, 0.1); color: #c084fc; }
.f-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.f-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.f-icon i {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 24px 8rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.price-card {
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: left;
    position: relative;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 70%), rgba(30, 41, 59, 0.5);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.price {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-equivalence {
    font-size: 13px;
    color: #a78bfa;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.price-features li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.price-features li i {
    width: 16px;
    height: 16px;
}

.price-features li i[data-lucide="check"] { color: var(--success); }
.price-features li i[data-lucide="x"] { color: var(--danger); }

/* Global Button classes used in landing */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: rgba(51, 65, 85, 0.4);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.w-full {
    width: 100%;
}

#auth-modal,
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    z-index: 99999 !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
}

.auth-modal {
    background-color: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: var(--radius-lg) !important;
    padding: 32px !important;
    max-width: 440px !important;
    width: 90% !important;
    position: relative !important;
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25),
                0 0 50px rgba(139, 92, 246, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    backdrop-filter: blur(10px);
}

.auth-tabs {
    list-style: none;
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.auth-tab.active {
    color: #c084fc;
    border-bottom: 2px solid var(--primary);
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.auth-oauth {
    margin-top: 1.5rem;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 1.25rem;
}

.divider:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: #1e293b;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   STRIPE SIMULATOR MODAL STYLES
   ========================================================================== */
.stripe-modal {
    border-color: #635bff !important;
    box-shadow: 0 20px 40px rgba(99, 91, 255, 0.15) !important;
}

.stripe-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #635bff;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 18px;
}

.stripe-logo i {
    width: 20px;
    height: 20px;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 1.5rem;
}

.p-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.p-item.total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}

.card-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding-left: 12px;
    overflow: hidden;
}

.card-input-wrapper:focus-within {
    border-color: #635bff;
    box-shadow: 0 0 10px rgba(99, 91, 255, 0.15);
}

.card-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.card-input-wrapper .form-control {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 10px 8px;
}

.card-input-wrapper .form-control:focus {
    box-shadow: none;
}

.card-input-wrapper .card-num {
    width: 55%;
}

.card-input-wrapper .card-exp {
    width: 25%;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

.card-input-wrapper .card-cvc {
    width: 20%;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

#btn-stripe-submit {
    background: #635bff;
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
    margin-top: 1.5rem;
    border: none;
    color: white;
}

#btn-stripe-submit:hover {
    background: #7a73ff;
    box-shadow: 0 4px 20px rgba(99, 91, 255, 0.55);
}

.stripe-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.stripe-footer i {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   APP HEADER PROFILES (SaaS WIDGETS)
   ========================================================================== */
.header-right-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    padding: 4px 6px 4px 12px;
    border-radius: 100px;
}

.user-email-header {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout-header {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 100px;
    transition: var(--transition-fast);
}

.btn-logout-header:hover {
    color: var(--danger);
    background: rgba(244, 63, 94, 0.1);
}

.btn-logout-header i {
    width: 12px;
    height: 12px;
}

.acc-plan {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c084fc;
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: inline-block;
}

.acc-plan.pro-active {
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   DASHBOARD ANALÍTICO PRO (LOCKED OVERLAY & STYLES)
   ========================================================================== */
.dashboard-pro-section {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.25);
    padding: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.pro-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
    transition: opacity var(--transition-normal);
}

.pro-lock-overlay h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pro-lock-overlay p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.6;
}

.lock-icon-container {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
}

.lock-icon-container i {
    width: 22px;
    height: 22px;
}

.btn-upgrade-pro-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: var(--transition-fast);
}

.btn-upgrade-pro-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-upgrade-pro-cta i {
    width: 14px;
    height: 14px;
}

/* Dashboard Content Mock */
.pro-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.pro-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.title-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-with-badge h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-with-badge h3 i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.badge-pro-inline {
    background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Filter Toolbar inside Dashboard Pro */
.filter-toolbar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-select, .filter-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    transition: var(--transition-fast);
}

.filter-select {
    cursor: pointer;
    min-width: 150px;
}

.filter-select:disabled, .filter-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-filter-clear {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-filter-clear:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-filter-clear:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-filter-clear i {
    width: 14px;
    height: 14px;
}

/* Cards Grid */
.dashboard-grid-charts {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
}

.pro-card-mock {
    flex: 1;
    min-width: 0;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-card {
    min-height: 420px !important;
    width: 100% !important;
    padding: 24px !important;
    overflow: visible !important;
    max-height: none !important;
}

.pro-card-mock h4 {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Chart Canvas Mock Graphic */
.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    min-height: 260px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-chart-graphic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.15;
    border: 12px solid var(--primary);
    transition: var(--transition-normal);
}

.mock-chart-graphic.pie {
    border-color: var(--primary) var(--success) var(--danger) var(--text-muted);
}

.mock-chart-graphic.bar {
    border-radius: 4px;
    border: none;
    width: 100%;
    height: 90px;
    background: linear-gradient(90deg, 
        transparent 4%, 
        var(--primary) 4%, var(--primary) 14%, 
        transparent 14%, transparent 18%,
        var(--success) 18%, var(--success) 28%,
        transparent 28%, transparent 32%,
        var(--danger) 32%, var(--danger) 42%,
        transparent 42%, transparent 46%,
        #eab308 46%, #eab308 56%,
        transparent 56%, transparent 60%,
        #3b82f6 60%, #3b82f6 70%,
        transparent 70%);
}

/* Skeletons for AI Insights */
.insight-card {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c084fc;
}

.insight-header i {
    width: 16px;
    height: 16px;
    animation: sparkle-pulse 2s infinite ease-in-out;
}

.insight-body-mock {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 100%;
}

.skeleton-line.title {
    width: 70%;
    height: 12px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.07);
}

.skeleton-line.short {
    width: 45%;
}

/* AI Insights Section styles */
.insight-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-gerar-insights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
}

.btn-gerar-insights:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-gerar-insights:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.ia-insights-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.ia-insights-text p {
    margin-bottom: 12px;
}

.ia-insights-text ul, .ia-insights-text ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.ia-insights-text li {
    margin-bottom: 6px;
}

.insight-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Media Queries Responsividade do SaaS */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text-content {
        align-items: center;
    }
    
    .hero-actions {
        align-items: center;
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .preview-card-wrapper {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    
    .app-container {
        max-width: 95%;
        padding: 16px;
    }
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.password-wrapper .form-control,
.password-wrapper .settings-input {
    width: 100%;
    padding-right: 40px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* API Onboarding Card & Button (Phase 20) */
.api-onboarding-card {
    background: rgba(20, 184, 166, 0.05); /* light teal background */
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: var(--radius-md, 8px);
    padding: 18px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.api-onboarding-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2dd4bf; /* bright teal highlight */
    display: flex;
    align-items: center;
    gap: 8px;
}

.onboarding-steps {
    margin: 0 0 16px 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-steps li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.btn-onboarding-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid #14b8a6;
    color: #2dd4bf;
    padding: 8px 16px;
    border-radius: var(--radius-sm, 6px);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--transition-fast, 0.2s) ease;
    cursor: pointer;
}

.btn-onboarding-ai:hover {
    background: #14b8a6;
    color: #0d1527; /* dark text on hover */
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}

/* API Onboarding Tabs & Details (Phase 20.2) */
.onboarding-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.onboarding-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm, 4px);
    transition: all var(--transition-fast, 0.2s);
}

.onboarding-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.onboarding-tab-btn.active {
    color: #2dd4bf;
    background: rgba(20, 184, 166, 0.1);
    font-weight: 600;
}

.onboarding-flow-content {
    animation: flowFadeIn 0.3s ease;
}

.onboarding-flow-content.hidden {
    display: none !important;
}

.flow-intro {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 12px 0;
    font-style: italic;
}

.onboarding-link,
.onboarding-link-cloud {
    color: #2dd4bf;
    text-decoration: underline !important;
    font-weight: 600;
    transition: color 0.2s;
}

.onboarding-link:hover,
.onboarding-link-cloud:hover {
    color: #38bdf8;
}

.onboarding-steps li em {
    color: #f43f5e;
    font-style: normal;
    background: rgba(244, 63, 94, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.onboarding-steps li strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

