:root {
    --bg: #111827;
    --panel: #1f2937;
    --panel-2: #273449;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --accent: #38bdf8;
    --accent-2: #60a5fa;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

a {
    color: var(--text);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 28px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(17, 24, 39, 0.92);
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
    z-index: 20;
}

.site-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text);
    text-decoration: none;
}

    .site-title:hover {
        text-decoration: none;
        opacity: 0.92;
    }

.site-header-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

main {
    padding-top: 132px;
    padding-bottom: 78px;
}

.page-shell {
    min-height: calc(100vh - 164px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
}

.page-center {
    min-height: calc(100vh - 164px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
}

.panel-shell {
    width: 100%;
    max-width: 920px;
    position: relative;
}

.view {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.45s ease;
}

    .view.is-active {
        display: flex;
    }

    .view.is-hidden {
        display: none !important;
    }

.panel {
    width: 100%;
    max-width: 820px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 42px 34px;
    text-align: center;
    box-sizing: border-box;
}

.search-shell,
.loading-shell,
.result-shell {
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 92px;
    line-height: 0.95;
    margin: 0 0 10px;
    letter-spacing: -3px;
}

.logo-link {
    color: var(--text);
    text-decoration: none;
}

    .logo-link:hover {
        text-decoration: none;
        opacity: 0.94;
    }

.tagline,
.muted,
.range-text,
.confidence-text,
.asking-price,
.loading-text,
.hero-subline,
.expected-value-note,
.accuracy-copy,
.accuracy-sources,
.sample-factors,
.result-disclaimer {
    color: var(--muted);
}

.hero {
    margin: 0 auto 20px;
    max-width: 640px;
}

.hero-headline {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
}

.hero-subline {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.trust-cues {
    list-style: none;
    margin: 0 auto 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 720px;
}

.trust-cues li {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.55);
    color: #dbe7f5;
    font-size: 13px;
    font-weight: 600;
}

.expected-value-note {
    margin: 0 auto 16px;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.expected-value-note strong {
    color: var(--text);
}

.advanced-section {
    width: 100%;
    max-width: 640px;
    margin-top: 8px;
}

.advanced-toggle {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.advanced-panel {
    margin-top: 12px;
    text-align: left;
}

.advanced-panel.is-hidden {
    display: none !important;
}

.advanced-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}

.sample-result {
    margin-top: 32px;
    padding: 24px 22px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.45);
    text-align: center;
}

.sample-result-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.sample-result-address {
    margin: 0 0 8px;
    font-size: 14px;
}

.sample-main-value {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 6px 0 14px;
    color: var(--text);
    opacity: 0.88;
}

.sample-factors {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.accuracy-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.accuracy-heading {
    margin: 0 0 10px;
    font-size: 20px;
    text-align: center;
}

.accuracy-copy,
.accuracy-sources {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.65;
}

.accuracy-sources {
    margin-bottom: 0;
    font-size: 13px;
}

.result-disclaimer {
    margin-top: 24px;
    line-height: 1.5;
}

.search-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.search-row {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.search-input {
    flex: 1;
    width: auto;
    max-width: none;
    padding: 18px 22px;
    font-size: 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #0f172a;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

    .search-input:focus {
        border-color: rgba(56, 189, 248, 0.55);
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
        transform: translateY(-1px);
    }

    .search-input::placeholder {
        color: #7c8ba1;
    }

.search-submit-button {
    border: none;
    border-radius: 999px;
    padding: 0 24px;
    min-width: 128px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
}

    .search-submit-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(56, 189, 248, 0.28);
    }

    .search-submit-button:active {
        transform: translateY(0);
        opacity: 0.92;
    }

.search-actions {
    width: 100%;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.search-button {
    border: none;
    border-radius: 999px;
    padding: 15px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
}

    .search-button:hover {
        transform: translateY(-1px);
        text-decoration: none;
    }

    .search-button:active {
        transform: translateY(0);
        opacity: 0.92;
    }

.secondary-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 15px 22px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .secondary-button:hover {
        transform: translateY(-1px);
        border-color: rgba(56, 189, 248, 0.45);
        background: rgba(255, 255, 255, 0.03);
    }

    .secondary-button:active {
        transform: translateY(0);
    }

.settings-panel {
    width: 100%;
    max-width: 500px;
    margin: 10px auto 0;
    display: grid;
    gap: 10px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
}

    .setting-row input[type="checkbox"] {
        accent-color: var(--accent);
    }

.section-label {
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.main-value {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -2px;
    margin: 10px 0 18px;
}

.progress-track {
    margin: 24px auto 0;
    width: 100%;
    max-width: 500px;
    height: 12px;
    background: #0f172a;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-sizing: border-box;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.9s ease;
}

.details-panel {
    margin-top: 28px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    animation: fadeUp 0.28s ease;
}

    .details-panel.is-hidden {
        display: none !important;
    }

#includes-panel {
    margin-top: 20px;
    padding-top: 8px;
}

    #includes-panel h3 {
        margin-top: 0;
        margin-bottom: 8px;
    }

.includes-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.include-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

    .include-card:hover {
        transform: translateY(-1px);
        border-color: rgba(56, 189, 248, 0.35);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    }

    .include-card:has(input:disabled) {
        opacity: 0.92;
        cursor: default;
    }

        .include-card:has(input:disabled):hover {
            transform: none;
        }

.include-copy {
    flex: 1;
    min-width: 0;
}

.include-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.include-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.include-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.include-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.switch {
    position: relative;
    width: 58px;
    height: 32px;
    flex-shrink: 0;
    display: inline-block;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

    .slider::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
        transition: transform 0.2s ease, background 0.2s ease;
    }

.switch input:checked + .slider {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

    .switch input:checked + .slider::before {
        transform: translateX(26px);
        background: white;
    }

.switch input:focus-visible + .slider {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.switch input:disabled + .slider {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(96, 165, 250, 0.8));
    opacity: 0.9;
}

    .switch input:disabled + .slider::before {
        background: #f8fafc;
    }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.detail-card {
    background: linear-gradient(180deg, #24344d 0%, #1b2738 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.35);
    transition: all 0.15s ease;
}

.detail-label {
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 600;
    color: #dbe7f5;
    text-transform: none;
    letter-spacing: 0.01em;
}

.detail-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fbff;
    word-break: break-word;
}

.detail-meta {
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 600;
    color: #a8b8cc;
}

.detail-meta.reliability-high {
    color: #7ddf84;
}

.detail-meta.reliability-medium {
    color: #f0c15d;
}

.detail-meta.reliability-low {
    color: #ff4d4f;
}

.detail-card.overall-reliability .detail-value {
    transition: color 0.2s ease;
}

.detail-card.overall-reliability .detail-value.reliability-high {
    color: #7ddf84;
}

.detail-card.overall-reliability .detail-value.reliability-medium {
    color: #f0c15d;
}

.detail-card.overall-reliability .detail-value.reliability-low {
    color: #ff4d4f;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 24px;
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    background: rgba(17, 24, 39, 0.92);
    border-top: 1px solid var(--line);
    box-sizing: border-box;
    z-index: 20;
}

    .site-footer a {
        color: var(--muted);
        font-size: 14px;
    }

        .site-footer a:hover {
            color: var(--text);
            text-decoration: none;
        }

.site-footer .footer-lang {
    margin-left: 4px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 8px;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.lang-button.is-active {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
}

.footer-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.footer-link-button {
    border: none;
    background: none;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.footer-link-button:hover {
    color: var(--text);
    text-decoration: underline;
}

.search-hint {
    margin-top: 18px;
    font-size: 14px;
}

.search-hint a {
    color: var(--accent);
}

.search-hint a:hover {
    text-decoration: underline;
}

.panel-login {
    max-width: 420px;
    text-align: left;
}

.panel-login h1 {
    margin-top: 0;
    text-align: center;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.login-label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.login-input {
    width: 100%;
    border-radius: 14px;
}

.login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
}

.login-error {
    color: #f87171;
    font-size: 14px;
    margin: 12px 0 0;
}

.example-page {
    text-align: left;
}

.example-page h1 {
    margin-top: 0;
    text-align: center;
}

.example-cta {
    margin-top: 28px;
    text-align: center;
}

.panel-example {
    max-width: 720px;
}

.legal-page {
    text-align: left;
}

    .legal-page h1 {
        margin-top: 0;
        margin-bottom: 18px;
    }

    .legal-page h2 {
        margin-top: 28px;
        margin-bottom: 8px;
        font-size: 22px;
    }

    .legal-page p {
        line-height: 1.7;
        margin: 0 0 14px;
    }

    .legal-page ul {
        margin: 0 0 16px;
        padding-left: 22px;
        line-height: 1.7;
    }

    .legal-page li {
        margin-bottom: 8px;
    }

    .legal-page a {
        color: var(--accent);
    }

.small-text {
    font-size: 14px;
}

.debug-panel {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    text-align: left;
    box-sizing: border-box;
}

.debug-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.debug-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.55;
    color: #cbd5e1;
    font-family: Consolas, Monaco, monospace;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .panel {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .logo {
        font-size: 64px;
        letter-spacing: -2px;
    }

    .hero-headline {
        font-size: 19px;
    }

    .sample-main-value {
        font-size: 40px;
    }

    .main-value {
        font-size: 48px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-submit-button {
        min-height: 54px;
        width: 100%;
    }

    .include-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .switch {
        align-self: flex-end;
    }

    .include-title {
        font-size: 16px;
    }
}
.with-dev-console {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
}

.dev-console {
    width: 600px;
    max-height: calc(100vh - 200px);
    position: sticky;
    top: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

    .dev-console.is-hidden {
        display: none;
    }

.dev-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #050505;
}

.dev-console-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.dev-console-hide-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .dev-console-hide-button:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.dev-console-output {
    padding: 14px 16px;
    overflow: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dev-console-entry {
    border-left: 3px solid #38bdf8;
    padding-left: 10px;
}

.dev-console-entry-success {
    border-left-color: #22c55e;
}

.dev-console-entry-error {
    border-left-color: #ef4444;
}

.dev-console-entry-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.dev-console-entry-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e5e7eb;
}

@media (max-width: 1200px) {
    .with-dev-console {
        flex-direction: column;
        align-items: center;
    }

    .dev-console {
        width: 100%;
        max-width: 760px;
        max-height: 320px;
        position: static;
    }
}