/* ============= NAV / FOOTER (copied from diagnosis page) ============= */

        .nav-bar {
            display: flex;
            flex-direction: column;          /* stack brand on top, links below */
            align-items: center;             /* center everything horizontally */
            justify-content: center;
            background: rgba(15, 23, 42, 0.92);
            border-radius: 999px;
            padding: 10px 18px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(12px);
            gap: 6px;                        /* space between brand and links */
        }

        /* Top row: logo + text */
        .nav-brand {
            display: flex;
            align-items: center;
            justify-content: center;         /* center as a group */
            gap: 10px;
        }

        .nav-logo-img {
            width: 60px;
            height: 60px;
            border-radius: 12px;             /* optional: soften corners */
            flex-shrink: 0;
        }

        .nav-logo-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;         /* title & sub aligned left within the group */
        }

        .nav-logo-main {
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-size: 0.9rem;
            color: var(--text);
        }

        .nav-logo-sub {
            font-size: 0.72rem;
            color: var(--muted);
        }

        /* Bottom row: nav links centered */
        .nav-links {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
        }

        .nav-link {
            font-size: 0.8rem;
            text-decoration: underline;
            color: var(--muted);
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid transparent;
            transition: all 0.12s ease;
        }

        .nav-link:hover {
            color: var(--accent);
            border-color: var(--accent-soft);
            background: rgba(15, 23, 42, 0.9);
        }

        /* Optional: on very small screens, let links wrap gracefully */
        @media (max-width: 480px) {
            .nav-links {
                flex-wrap: wrap;
            }
        }

        .footer-inner {
            margin-top: 10px;
            padding: 10px 12px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(55, 65, 81, 0.8);
            font-size: 0.74rem;
            color: var(--muted);
            text-align: center;
            display: flex;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .footer-sep {
            opacity: 0.5;
        }

        #app-header {
            margin-bottom: 10px;
        }

        #app-footer {
            margin-top: 10px;
        }
    