@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #080b11;
    --bg-card: rgba(13, 20, 35, 0.6);
    --bg-card-hover: rgba(20, 30, 50, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(59, 130, 246, 0.3);
    
    --primary: #10b981;        /* Emerald Green (Growth) */
    --primary-glow: rgba(16, 185, 129, 0.15);
    --secondary: #3b82f6;      /* Electric Blue (Trust/Security) */
    --secondary-glow: rgba(59, 130, 246, 0.15);
    --accent: #f59e0b;         /* Amber/Gold */
    --danger: #ef4444;         /* Red for liabilities/losses */
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Effects */
    --glass-blur: blur(12px);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header & Navigation */
header {
    background: rgba(8, 11, 17, 0.97);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.logo span.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--bg-dark);
    font-size: 1.1rem;
    -webkit-text-fill-color: var(--bg-dark);
}

.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.hamburger-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(59,130,246,0.4);
    color: var(--secondary);
}

.main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s ease;
    padding: 0 1.5rem;
}
.main-nav.open {
    max-height: 600px;
    padding: 0.25rem 1.5rem 1rem;
    border-top: 1px solid var(--border-color);
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.15rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.nav-link.active {
    color: var(--text-primary);
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.2);
}

/* Main Layout */
main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.page-section {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

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

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Grid & Cards (Glassmorphism) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.card.primary-accent:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.card.secondary-accent:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.card-title i {
    font-size: 1.35rem;
}

/* Financial Stats Display */
.metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

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

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.metric-change.positive {
    color: var(--primary);
}

.metric-change.negative {
    color: var(--danger);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

input[type="number"],
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

input[type="number"].prefixed {
    padding-left: 2rem;
}

input[type="number"].suffixed {
    padding-right: 2.2rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

/* Range sliders */
input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
    accent-color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0c9b6b);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* Calculator Grid */
.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.tool-container-3col {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 968px) {
    main {
        padding: 1.5rem 1rem;
    }
    .tool-container {
        grid-template-columns: 1fr;
    }
    .tool-container-3col {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    .home-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Result Panel */
.result-panel {
    background: rgba(16, 24, 40, 0.5);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 2rem;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.result-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-main-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.result-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

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

.breakdown-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Chart Canvas Placeholder & SVG Chart */
.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem;
    margin-top: 1rem;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-tooltip {
    position: absolute;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Sheet Table Styles (Assets / Liabilities / Transactions) */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.sheet-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.sheet-table th {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sheet-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.sheet-table tr:last-child td {
    border-bottom: none;
}

.sheet-table tr.total-row {
    background: rgba(59, 130, 246, 0.05);
    font-weight: 700;
    border-top: 2px solid var(--border-color);
}

.sheet-table tr.total-row td {
    color: var(--text-primary);
}

/* Input Fields inside Tables */
.table-input {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-primary);
    padding: 0.35rem 0.5rem;
    width: 100%;
    font-size: 0.95rem;
    transition: var(--transition);
}

.table-input:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.table-input:focus {
    background: var(--bg-dark);
    border-color: var(--secondary);
    outline: none;
}

.asset-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-asset {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.badge-liability {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.blog-cover {
    height: 180px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.blog-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary);
}

/* Article Reader (Modal or Full Page Overlay) */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 11, 17, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: 4rem 2rem 2rem;
}

.article-modal.active {
    display: block;
}

.article-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -2.5rem;
    right: 0;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

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

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.article-body {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.75;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Call to Action Banner (Asesoría MIFID II) */
.cta-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

/* Home Tools Grid */
.home-tools-header {
    margin: 2rem 0 1rem;
}
.home-tools-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.home-tools-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.home-tool-card {
    cursor: pointer;
    transition: var(--transition);
}
.home-tool-card:hover {
    transform: translateY(-2px);
}
.home-tool-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.home-tool-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.home-tool-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* ==========================================
   TEST DE IDONEIDAD
   ========================================== */

.test-progress-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.test-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-block-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0.3rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.test-feature-box {
    padding: 1.1rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}

.test-options-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.test-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    font-family: var(--font-main);
}

.test-option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.06);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.test-option.selected {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-primary);
    font-weight: 500;
}

.test-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

.test-option.selected .test-option-letter {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.test-option-text {
    flex: 1;
}

.test-option-check {
    color: var(--primary);
    font-size: 0.9rem;
    min-width: 16px;
    margin-top: 0.1rem;
}

@media (max-width: 640px) {
    .test-feature-box {
        font-size: 0.75rem;
    }
    .test-option {
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

/* Contact Lead Form (Modal or Card) */
.contact-form {
    max-width: 550px;
    margin: 0 auto;
}

/* Footer & Legal */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(4, 6, 10, 0.9);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legal-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: justify;
}

.legal-disclaimer strong {
    color: var(--text-secondary);
}

/* Transaction Styles */
.income-type {
    color: var(--primary);
    font-weight: 600;
}

.expense-type {
    color: var(--danger);
    font-weight: 600;
}

/* Quick KPI blocks */
.quick-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.kpi-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.kpi-value.income {
    color: var(--primary);
}

.kpi-value.expense {
    color: var(--danger);
}
