.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1040;
    display: none;
}

/* Sidenav */
.mobile-sidenav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 1050;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidenav.show {
    right: 0;
}

.mobile-overlay.show {
    display: block;
}

/* Header */
.sidenav-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.sidenav-header .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* Body */
.sidenav-body {
    padding: 16px;
    overflow-y: auto;
}

.sidenav-body .email {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sidenav-body .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidenav-body .menu li {
    margin-bottom: 4px;
}

.sidenav-body .menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.sidenav-body .menu a:hover {
    background: #f5f5f5;
}

.sidenav-body .divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

/* Only mobile */
@media (min-width: 992px) {

    .mobile-sidenav,
    .mobile-overlay {
        display: none !important;
    }
}

.position-sticky {
    top: 20px;
    height: max-content;
}

.top-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.top-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.top-tab i {
    font-size: 16px;
}

.top-tab:hover {
    background: #f3f4f6;
    color: #111827;
}

/* BADGE */
.tab-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

/* ACTIVE TAB */
.top-tab.active {
    background: #eef2ff;
    color: #1d4ed8;
}

.top-tab.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -9px;
    height: 3px;
    border-radius: 999px;
    background: #2563eb;
}

.top-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.top-tab:focus {
    outline: none;
}

.top-tab:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

/* ===== SKELETON BASE ===== */
.skeleton-img,
.skeleton-line {
    background: linear-gradient(90deg,
            #e5e7eb 25%,
            #f3f4f6 37%,
            #e5e7eb 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ===== GRID ===== */
.skeleton-img {
    height: 200px;
    border-radius: 12px;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line.w-50 {
    width: 50%;
}

.skeleton-line.w-60 {
    width: 60%;
}

.skeleton-line.w-75 {
    width: 75%;
}

.skeleton-line.w-90 {
    width: 90%;
}

.skeleton-line.w-100 {
    width: 100%;
}

/* ===== LIST ===== */
.skeleton-list .skeleton-img {
    height: 300px;
}

.author-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f1f1;
}