.top-nav {
    height: var(--nav-height);
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 120;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s var(--ease-out);
}

.logo {
    background: var(--ink);
    color: var(--surface);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s var(--ease-out);
    flex-shrink: 0;
}

.nav-left { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.nav-left:hover .logo { transform: scale(1.04); }

.brand-text { display: flex; flex-direction: column; }
.app-name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

.nav-center { display: flex; align-items: center; gap: 0.2rem; height: 100%; }

.nav-center .module-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    position: relative;
    white-space: nowrap;
    transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-center .module-btn i { width: 15px; height: 15px; stroke-width: 1.75; transition: transform 0.2s var(--ease-out); flex-shrink: 0; }
.nav-center .module-btn:hover { color: var(--ink); background-color: rgba(13, 15, 20, 0.035); }
.nav-center .module-btn:hover i { transform: translateY(-1px); }

.nav-center .module-btn::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-center .module-btn.active { color: var(--accent); font-weight: 600; background-color: var(--accent-soft); }
.nav-center .module-btn.active::after { opacity: 1; transform: scaleX(1); }

.nav-right-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.top-nav-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    flex-shrink: 0;
}

.top-nav-bell-btn i {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
    transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.top-nav-bell-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.04);
}

.top-nav-bell-btn:hover i {
    transform: rotate(8deg);
}

.top-nav-bell-btn:active {
    transform: scale(0.95);
}

.top-nav-bell-btn .nav-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    margin-left: 0;
}

.nav-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #ffffff;
    background: #EF4444;
    border-radius: 99px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.45);
    border: 2px solid var(--surface);
    line-height: 1;
}

.nav-right { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.user-info { text-align: right; max-width: 150px; overflow: hidden; }
.user-name { font-size: 0.85rem; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-id {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar { position: relative; flex-shrink: 0; }
.avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    display: block;
    object-fit: cover;
}
.nav-right:hover .avatar img { border-color: var(--accent); transform: scale(1.05); }

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 120;
    box-sizing: border-box;
    transition: transform 0.3s var(--ease-out);
}

.bottom-nav .module-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 8px;
    color: var(--muted);
    flex: 1;
    transition: color 0.2s var(--ease-out);
}
.bottom-nav .module-btn i { width: 18px; height: 18px; stroke-width: 1.6; }
.bottom-nav .module-btn span { font-size: 0.63rem; font-weight: 500; white-space: nowrap; }
.bottom-nav .module-btn.active { color: var(--accent); }

@media (max-width: 1180px) {
    .top-nav { padding: 0 1rem; }
    .nav-center .module-btn { padding: 5px 8px; font-size: 0.68rem; gap: 5px; }
}

@media (max-width: 640px) {
    .top-nav { padding: 0 0.75rem; }
    .app-name { font-size: 1.15rem; }
}
