/* ============= 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);
            background: #18273c;
            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; 

        }

        /* Top row: logo + text */
        .nav-brand {
            display: flex;
            align-items: center;
            justify-content: center;         /* center as a group */
            gap: 10px;
        }

        .nav-brand-link {
            text-decoration: none;
            color: inherit; /* so it keeps your var(--text) color from the spans */
        }

        .nav-brand-link:hover,
        .nav-brand-link:focus {
            text-decoration: none; /* prevent underline on hover/focus */
        }


        .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 */
            text-decoration: none; /* prevent underline on hover/focus */            
        }

        .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);
        }

        /*        .nav-link-icon { display: inline-flex; align-items: center; justify-content: center; text-decoration: underline;}*/
        .nav-link-icon{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        position:relative;

        /* keep same spacing as text links */
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid transparent;
        transition: all 0.12s ease;

        /* no text underline needed */
        text-decoration: none;
        }

        /* “underline” that works for icons */
        .nav-link-icon::after{
        content:"";
        position:absolute;
        left: 10px;
        right: 10px;
        bottom: 6px;          /* matches visual baseline */
        height: 2px;
        border-radius: 999px;

        background: currentColor;  /* matches link color */
        opacity: 0.55;             /* similar vibe to text underline */
        }


        /* Optional: on very small screens, let links wrap gracefully */
        @media (max-width: 320px) {
            .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;
        }
    