.topnav {
        height: 54px;
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line, #e5e7eb);
        position: sticky;
        top: 0;
        z-index: 200;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    }

    .nav-inner {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
        height: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-brand {
        display: flex;
        align-items: center;
        gap: 9px;
        font-weight: 700;
        font-size: 15px;
        color: #4f46e5;
        text-decoration: none;
        flex-shrink: 0;
    }

    .nav-brand .logo {
        width: 34px;
        height: 34px;
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 16px;
        box-shadow: 0 4px 10px rgba(99, 102, 241, .35);
        flex-shrink: 0;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 2px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 11px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        text-decoration: none;
        transition: background .15s, color .15s;
        white-space: nowrap;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #eef2ff;
        color: #4f46e5;
    }

    .nav-links a.active {
        font-weight: 600;
    }

    .nav-spacer {
        flex: 1;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-btn-outline {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 13px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        text-decoration: none;
        border: 1px solid #e5e7eb;
        background: #fff;
        transition: background .15s, border-color .15s, color .15s;
        white-space: nowrap;
    }

    .nav-btn-outline:hover {
        background: #f9fafb;
        border-color: #c7d2fe;
        color: #4f46e5;
        text-decoration: none;
    }

    .nav-btn-solid {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 13px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        background: #6366f1;
        border: 1px solid transparent;
        transition: background .15s, box-shadow .15s;
        white-space: nowrap;
    }

    .nav-btn-solid:hover {
        background: #4f46e5;
        box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
        color: #fff;
        text-decoration: none;
    }

    /* Avatar dropdown */
    .nav-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(99, 102, 241, .35);
        transition: box-shadow .15s, transform .1s;
    }

    .nav-avatar:hover {
        box-shadow: 0 4px 14px rgba(99, 102, 241, .45);
        transform: translateY(-1px);
    }

    .nav-user-dropdown {
        min-width: 190px;
        border-radius: 12px;
        padding: 6px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
        background: #fff;
    }

    .nav-user-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        pointer-events: none;
    }

    .nav-user-info i {
        font-size: 18px;
        color: #6366f1;
        flex-shrink: 0;
    }

    .nav-dd-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        text-decoration: none;
        cursor: pointer;
        background: none;
        border: none;
        width: 100%;
        transition: background .12s, color .12s;
    }

    .nav-dd-item:hover {
        background: #f3f4f6;
        color: #111827;
        text-decoration: none;
    }

    .nav-dd-item.danger:hover {
        background: #fef2f2;
        color: #ef4444;
    }

    /* Mobile toggler */
    .nav-toggler {
        display: none;
        width: 34px;
        height: 34px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        color: #374151;
        flex-shrink: 0;
    }

    .nav-drawer {
        display: none;
    }

    @media (max-width: 768px) {

        .nav-links,
        .nav-spacer,
        .nav-right {
            display: none !important;
        }

        .nav-toggler {
            display: inline-flex;
            margin-left: auto;
        }

        .nav-drawer {
            position: fixed;
            inset: 54px 0 0 0;
            background: rgba(0, 0, 0, .35);
            z-index: 199;
        }

        .nav-drawer.open {
            display: block;
        }

        .nav-drawer-inner {
            background: #fff;
            width: 240px;
            height: 100%;
            margin-left: auto;
            padding: 16px 12px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
        }

        .nav-drawer a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 12px;
            border-radius: 9px;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            text-decoration: none;
            transition: background .15s, color .15s;
        }

        .nav-drawer a:hover,
        .nav-drawer a.active {
            background: #eef2ff;
            color: #4f46e5;
        }

        .nav-drawer .drawer-divider {
            height: 1px;
            background: #e5e7eb;
            margin: 8px 0;
        }

        .nav-drawer .drawer-solid {
            background: #6366f1;
            color: #fff !important;
            font-weight: 600;
            justify-content: center;
            margin-top: 4px;
        }

        .nav-drawer .drawer-solid:hover {
            background: #4f46e5 !important;
            color: #fff !important;
        }
    }
