        :root {
            --bg: #f1f5f9;
            --panel: #ffffff;
            --text: #0f172a;
            --muted: #475569;
            --border: #e2e8f0;
            --primary: #0f766e;
            --primary-dark: #0b5f59;
            --accent: #1d4ed8;
            --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            color: var(--text);
            background:
                radial-gradient(circle at 8% 0%, #dbeafe 0%, transparent 35%),
                radial-gradient(circle at 92% 10%, #ccfbf1 0%, transparent 30%),
                var(--bg);
            font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
        }

        .app-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .app-nav {
            border-bottom: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(6px);
            position: sticky;
            top: 0;
            z-index: 20;
        }

        .app-nav-inner {
            height: 74px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .app-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-weight: 800;
            letter-spacing: -0.02em;
            text-decoration: none;
            color: var(--text);
        }

        .app-logo-mark {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(145deg, #0f766e, #1d4ed8);
            color: #fff;
            box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
            flex: 0 0 auto;
        }

        .app-logo-mark svg {
            width: 19px;
            height: 19px;
            display: block;
        }

        .app-nav-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .app-nav-link,
        .app-nav-cta {
            text-decoration: none;
            font-weight: 600;
            border-radius: 10px;
            padding: 9px 12px;
        }

        .app-nav-link {
            color: var(--muted);
        }

        .app-nav-link:hover {
            background: #f8fafc;
        }

        .app-nav-cta {
            background: var(--primary);
            color: #fff;
        }

        .app-nav-cta:hover {
            background: var(--primary-dark);
        }

        main {
            max-width: 1100px;
            margin: 0 auto;
            padding: 32px 24px 72px;
        }

        h1, h2, h3, h4 {
            margin-top: 0;
            letter-spacing: -0.02em;
        }

        .card {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow-soft);
        }

        .muted {
            color: var(--muted);
        }

        .field {
            margin-bottom: 12px;
        }

        .field label {
            font-size: 0.9rem;
            color: #334155;
            display: block;
            margin-bottom: 6px;
        }

        .field input {
            width: 100%;
            padding: 11px 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #fff;
            font-size: 1rem;
        }

        .field input:focus {
            outline: 2px solid #bfdbfe;
            border-color: #93c5fd;
        }

        .btn {
            width: 100%;
            border: 0;
            border-radius: 10px;
            padding: 12px 14px;
            cursor: pointer;
            font-size: 0.94rem;
            font-weight: 700;
        }

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary.is-active {
    background: #ecfeff;
    border-color: #99f6e4;
    color: #0f766e;
}

        .sim-page {
            display: grid;
            gap: 18px;
        }

        .sim-hero {
            background: transparent;
            border: 0;
            box-shadow: none;
            padding: 8px 0 4px;
        }

        .sim-hero h1 {
            margin: 0 0 10px;
            font-size: clamp(1.9rem, 3.3vw, 2.8rem);
            letter-spacing: -0.03em;
        }

        .sim-controls,
        .sim-indicators {
            background: #ffffff;
        }

.sim-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.field-toggle {
    align-self: end;
}

.field-hidden {
    display: none;
}

.field-visible {
    display: block;
}

        .sim-form .field {
            margin-bottom: 0;
        }

        .sim-action-immo {
            grid-column: 1 / -1;
        }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rental-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
    border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px 13px;
            background: #f8fafc;
    min-height: 72px;
}

.stat-item.is-blue {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.stat-item.is-teal {
    border-color: #99f6e4;
    background: #ecfeff;
}

.stat-item.is-positive {
    border-color: #86efac;
    background: #f0fdf4;
}

.stat-item.is-warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.stat-item.is-negative {
    border-color: #fca5a5;
    background: #fff1f2;
}

.stat-label {
    display: block;
    font-size: 0.76rem;
            color: var(--muted);
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .stat-value {
            font-size: 1.05rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .note {
            margin-top: 10px;
            font-size: 0.82rem;
            color: var(--muted);
        }

        .sim-content {
            display: grid;
            gap: 14px;
        }

        .score-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 14px;
        }

.score-block h2,
.cashflow-block h2 {
    margin-bottom: 12px;
}

.verdict-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.verdict-card strong {
    font-size: 1.05rem;
}

.verdict-card span {
    font-size: 1.25rem;
    font-weight: 700;
}

.verdict-card.is-good {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.verdict-card.is-medium {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.verdict-card.is-bad {
    border-color: #fca5a5;
    background: #fff1f2;
    color: #991b1b;
}

.progress-item + .progress-item {
            margin-top: 10px;
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 5px;
            font-size: 0.86rem;
        }

.progress-track {
    width: 100%;
    height: 10px;
            border-radius: 999px;
            background: #e2e8f0;
            overflow: hidden;
        }

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0f766e, #1d4ed8);
    border-radius: 999px;
    transition: width 240ms ease;
}

.progress-fill.is-good {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progress-fill.is-medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-fill.is-bad {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.mood-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.8rem;
}

.mood-badge.is-good {
    background: #dcfce7;
    color: #166534;
}

.mood-badge.is-medium {
    background: #fef3c7;
    color: #92400e;
}

.mood-badge.is-bad {
    background: #fee2e2;
    color: #991b1b;
}

.cashflow-block {
    border: 1px solid var(--border);
    border-radius: 12px;
            padding: 16px;
            background: #ffffff;
        }

.signal-positive,
.signal-negative,
.signal-info,
.signal-warning {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

        .signal-positive {
            color: #15803d;
        }

.signal-negative {
    color: #b91c1c;
}

.signal-info {
    color: #1d4ed8;
}

.signal-warning {
    color: #b45309;
}

.mode-hint {
    margin-top: 10px;
}

.label-with-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    background: #f8fafc;
}

.help-tip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: 250px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
    transition: opacity 120ms ease;
}

.help-tip:hover .help-tip-text,
.help-tip:focus .help-tip-text,
.help-tip:focus-visible .help-tip-text {
    opacity: 1;
    visibility: visible;
}

.rental-score {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.rental-score h3 {
    margin: 0 0 10px;
    font-size: 0.98rem;
}

        .chart-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }


        .chart-zone {
            min-height: 300px;
        }

        .split-charts {
            display: flex;
            gap: 20px;
        }

        .split-chart-col {
            flex: 1;
        }

        .double-donut {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .double-donut .muted {
            margin: 0 0 6px;
            text-align: center;
        }

        .chart-zone-small {
            min-height: 250px;
        }

        .seo-copy h2 {
            margin-bottom: 12px;
        }

        .seo-copy p {
            margin: 0 0 10px;
            color: var(--muted);
            line-height: 1.7;
            max-width: 85ch;
        }

        .faq-lite {
            margin-top: 14px;
            display: grid;
            gap: 10px;
        }

        .faq-lite article {
            border: 1px solid var(--border);
            background: #f8fafc;
            border-radius: 12px;
            padding: 14px;
        }

        .faq-lite h3 {
            margin: 0 0 8px;
            font-size: 1rem;
        }

        .faq-lite p {
            margin: 0;
        }

@media (max-width: 1100px) {
            .sim-form {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

            .score-grid {
                grid-template-columns: 1fr;
            }

            .chart-row {
                grid-template-columns: 1fr;
            }

            .split-charts {
                flex-direction: column;
            }

        }

@media (max-width: 780px) {
            main {
                padding: 20px 14px 52px;
            }

            .app-container {
                padding: 0 14px;
            }

            .sim-form {
                grid-template-columns: 1fr;
            }

    .stats-grid {
        grid-template-columns: 1fr;
    }

            .double-donut {
                grid-template-columns: 1fr;
            }
        }
