.user-avatar.avatar-online img {
    border: 1px solid #28a745; /* سبز برای آنلاین */
    border-radius: 50%;
    padding: 1px; /* فاصله بین عکس و border */
}

.user-avatar.avatar-online span {
    border: 1px solid #28a745; /* سبز برای آنلاین */
    border-radius: 50%;
    padding: 1px; /* فاصله بین عکس و border */
}

@media (min-width: 375px) {
    .mobile-none {
        display: none;
    }

    .mobile-show {
        display: block;
    }
}

@media (min-width: 475px) {
    .mobile-none {
        display: none;
    }

    .mobile-show {
        display: block;
    }
}

@media (min-width: 700px) {
    .mobile-none {
        display: block;
    }

    .mobile-show {
        display: none;
    }
}

/* داژو کلاود - باکس متحرک هدر */
.dazho-box {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    transition: transform .2s ease;
}

.dazho-box:hover {
    transform: scale(1.03);
}

.dazho-box.dazho-scaled {
    transform: scale(0.96);
}

.dazho-border {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 20px;
    overflow: hidden;
}

.dazho-border::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% - 50px);
    width: 100px;
    height: 300px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(101,118,255,0.6) 50%, rgba(255,255,255,0) 100%);
    animation: dazho-border-spin 5s linear infinite;
    transform-origin: top center;
}

@keyframes dazho-border-spin {
    to {
        transform: rotate(360deg);
    }
}

.dazho-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 18px;
}

.dazho-hamburger {
    color: #526484;
    font-size: 1.1rem;
}

.dazho-divider {
    width: 1px;
    height: 24px;
    background: #e5e9f2;
}

.dazho-overflow {
    font-weight: 600;
    font-size: .8rem;
}

/* دراور لیست دوستان (سلاید کناری) */
.dazho-friends-aside {
    width: 380px;
    max-width: calc(100% - 40px);
    background: #fff;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.14);
}

.dazho-friends-aside .card-inner-group {
    height: 100vh;
}

.dazho-friends-aside .card-inner:last-child {
    padding-bottom: .5rem;
}

.dazho-aside-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.dazho-aside-title .title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2b3a;
}

.dazho-online-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #e9f9f1;
    color: #0f9d58;
    font-size: .78rem;
    font-weight: 600;
    padding: .18rem .7rem;
    border-radius: 999px;
    line-height: 1.6;
}

.dazho-online-badge .status {
    width: 8px;
    height: 8px;
    border: 0;
    position: static;
}

.dazho-filter-chips {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.dazho-friends-aside .form-control {
    padding-left: 2.4rem;
}

.dazho-search-clear {
    position: absolute;
    top: 50%;
    left: .45rem;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #e9edf4;
    color: #526484;
    font-size: .7rem;
    line-height: 1;
    transition: all .2s ease;
}

.dazho-search-clear:hover {
    background: #f5c2c9;
    color: #f2426e;
}

.dazho-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .95rem;
    border-radius: 999px;
    border: 1px solid #e5e9f2;
    background: #fff;
    color: #526484;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.5;
    transition: all .2s ease;
}

.dazho-chip:hover {
    border-color: #b9c8ff;
    color: #4c5bff;
    background: #f5f7ff;
}

.dazho-chip.active {
    background: #6576ff;
    border-color: #6576ff;
    color: #fff;
    box-shadow: 0 6px 16px rgba(101, 118, 255, 0.35);
}

.dazho-chip .status {
    width: 8px;
    height: 8px;
    border: 0;
    position: static;
}

.dazho-friends-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dazho-friend {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .75rem;
    margin-bottom: .55rem;
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 12px;
    transition: all .2s ease;
    text-decoration: none;
}

.dazho-friend:hover {
    border-color: rgba(101, 118, 255, 0.45);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dazho-friend-info {
    flex-grow: 1;
    min-width: 0;
}

.dazho-friend-name {
    display: block;
    color: #364a63;
    font-weight: 700;
    font-size: .86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dazho-friend-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .2rem;
}

.dazho-friend-meta .badge {
    font-size: .68rem;
    font-weight: 600;
    padding: .22em .55em;
}

.dazho-friend-time {
    color: #8094ae;
    font-size: .72rem;
}

.dazho-friend-arrow {
    color: #b6c2d2;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.dazho-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #8094ae;
}

.dazho-empty .icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: .5rem;
    color: #c4cede;
}

.dazho-empty p {
    margin: 0;
    font-size: .9rem;
    font-weight: 500;
}

/* Friends drawer/header overflow and responsive safeguards */
.dazho-box { max-width: 100%; }
.dazho-inner { max-width: calc(100vw - 24px); flex-wrap: wrap; }
.dazho-friends-aside {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 380px;
    max-width: min(380px, calc(100vw - 24px));
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    z-index: 1000;
}
.dazho-friends-aside .card-inner-group { overflow-x: hidden; }
.dazho-friends-list, .dazho-friends-list li { max-width: 100%; min-width: 0; }

/* Keep sortable table headers on a single line */
.nk-tb-list .nk-tb-head .text-dark {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.nk-tb-list .nk-tb-head .text-dark .overline-title {
    margin-bottom: 0;
}

.nk-tb-list .nk-tb-head .text-dark .icon {
    flex-shrink: 0;
}


/* Friends drawer: isolated viewport layer (do not use theme toggle-slide positioning) */
.dazho-friends-aside {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(380px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    z-index: 2147483001 !important;
    overflow: hidden !important;
    display: block !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform .25s ease, visibility .25s ease !important;
    box-shadow: 12px 0 40px rgba(15, 23, 42, .18) !important;
}
.dazho-friends-aside.is-open {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
}
.dazho-friends-aside .card-inner-group {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto;
    overflow-x: hidden !important;
}
.dazho-friends-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, .42) !important;
    z-index: 2147483000 !important;
    cursor: default;
}
body.dazho-friends-open { overflow: hidden !important; }


/* Final override: friends drawer must not participate in theme toggle-slide system */
.dazho-friends-aside {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    inset: 0 auto auto 0 !important;
    width: min(380px, calc(100vw - 24px)) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    transform: none !important;
    display: none !important;
    visibility: visible !important;
    pointer-events: none !important;
    z-index: 2147483001 !important;
    overflow: hidden !important;
}
.dazho-friends-aside.is-open {
    display: block !important;
    pointer-events: auto !important;
    transform: none !important;
}
.dazho-friends-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    transform: none !important;
    z-index: 2147483000 !important;
}
