@import url("../../../in/css/fontiran.css");

:root {
    --shg-bg-deep: #061018;
    --shg-bg-mid: #0d1f35;
    --shg-teal: #2dd4bf;
    --shg-teal-dim: rgba(45, 212, 191, 0.12);
    --shg-glass: rgba(14, 32, 54, 0.46);
    --shg-glass-strong: rgba(10, 24, 42, 0.62);
    --shg-glass-border: rgba(255, 255, 255, 0.09);
    --shg-text: #e8f4ff;
    --shg-text-muted: #8fa8c4;
    --shg-sidebar-w: 92px;
    --shg-header-h: 56px;
    --shg-dock-h: 58px;
    --shg-radius: 10px;
    --shg-radius-sm: 6px;
    --shg-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html,
body.shg-shell-body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: IRANSans, tahoma, serif;
    color: var(--shg-text);
    background: var(--shg-bg-deep);
}

html:has(.shg-shell-body) {
    height: 100%;
}

.shg-shell,
.shg-shell button,
.shg-shell input,
.shg-shell a {
    font-family: IRANSans, tahoma, serif;
}

.shg-header__title strong,
.shg-widget__head h2,
.shg-window__title,
.shg-sidebar__btn.is-active span,
.shg-widget-list__title,
.shg-chat-list__name,
.shg-blog-card__body h3,
.shg-music-player__meta strong {
    font-weight: bold;
}

.shg-shell {
    position: relative;
    display: flex;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(45, 180, 200, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(60, 100, 220, 0.14), transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #0d1f35 45%, #061018 100%);
}

.shg-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%),
        url("../../../im/back/home/14.jpg") center bottom / cover no-repeat;
    opacity: 0.42;
}

.shg-sidebar {
    position: relative;
    z-index: 35;
    width: var(--shg-sidebar-w);
    min-width: var(--shg-sidebar-w);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    background: rgba(6, 16, 28, 0.42);
    border-left: 1px solid var(--shg-glass-border);
    backdrop-filter: blur(16px);
    overflow: hidden;
    flex-shrink: 0;
}

.shg-sidebar__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--shg-text);
    flex-shrink: 0;
}

.shg-sidebar__brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--shg-radius-sm);
}

.shg-sidebar__brand span {
    font-size: 9px;
    color: var(--shg-text-muted);
    text-align: center;
    line-height: 1.3;
}

.shg-sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.shg-sidebar__nav.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.shg-sidebar__nav.is-dragging .shg-sidebar__btn {
    pointer-events: none;
}

.shg-sidebar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    padding: 6px 2px;
    border: 1px solid transparent;
    border-radius: var(--shg-radius-sm);
    background: transparent;
    color: var(--shg-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.28s ease, transform 0.28s ease;
}

.shg-sidebar__btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.shg-sidebar__btn span {
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    font-weight: 400;
    transition: color 0.28s ease, font-weight 0.28s ease;
}

.shg-sidebar__btn:hover {
    color: var(--shg-teal);
    background: transparent;
    border-color: transparent;
    transform: translateX(8px);
}

.shg-sidebar__btn:hover span {
    font-weight: 700;
}

.shg-sidebar__btn.is-active:hover {
    color: var(--shg-text);
}

.shg-sidebar__btn.is-active {
    color: var(--shg-text);
    background: var(--shg-teal-dim);
    border-color: rgba(45, 212, 191, 0.42);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.22), 0 0 14px rgba(45, 212, 191, 0.14);
}

.shg-sidebar__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0 8px;
    border-top: 1px solid var(--shg-glass-border);
    flex-shrink: 0;
}

.shg-sidebar__logout {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--shg-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--shg-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.28s ease, background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.shg-sidebar__logout svg {
    width: 17px;
    height: 17px;
    display: block;
    transform: scaleX(-1);
}

.shg-sidebar__logout:hover {
    color: var(--shg-teal);
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.28);
    transform: translateX(4px);
}

.shg-main {
    position: relative;
    z-index: 10;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--shg-dock-h) + 12px);
}

.shg-header {
    position: relative;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--shg-header-h);
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 20, 36, 0.36);
    backdrop-filter: blur(12px);
}

.shg-header__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shg-header__title strong {
    font-size: 15px;
    font-weight: 700;
}

.shg-header__title span {
    font-size: 11px;
    color: var(--shg-text-muted);
}

.shg-header__status {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.shg-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(45, 212, 191, 0.5);
    object-fit: cover;
    cursor: pointer;
}

.shg-header__guest {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.shg-header__guest a {
    color: var(--shg-teal);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: var(--shg-radius-sm);
}

.shg-header__status .sitebar_1,
.shg-header__status .sitebar_sep {
    display: none !important;
}

.shg-header__status #Notification_Area_Icons {
    display: flex !important;
    align-items: center;
    gap: 4px;
    float: none !important;
    direction: ltr;
}

.shg-header__status #Notification_Area_Icons.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.shg-header__status #Notification_Area_Icons.is-dragging a {
    pointer-events: none;
}

.shg-header__status #Notification_Area_Icons a,
.shg-header__status #link_onlines_sitebar {
    box-shadow: none !important;
    border-radius: var(--shg-radius-sm) !important;
    height: 24px !important;
    min-height: 24px !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.shg-header__status #Notification_Area_Icons a {
    border: none !important;
    background-color: transparent !important;
}

.shg-header__status #link_onlines_sitebar {
    border: 1px solid rgba(45, 212, 191, 0.28) !important;
    background-color: transparent !important;
    font-size: 11px !important;
    font-weight: 500;
    color: var(--shg-teal) !important;
    padding: 3px 8px !important;
    gap: 4px;
    white-space: nowrap;
    flex: 0 0 auto;
    flex-direction: row;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.shg-header__status #link_onlines_sitebar > span {
    display: inline !important;
    flex: 0 0 auto;
    position: static !important;
    float: none !important;
}

.shg-header__status #link_onlines_sitebar .sb-online-label,
.shg-header__status #link_onlines_sitebar .sb-online-unit {
    color: var(--shg-teal) !important;
}

.shg-header__status #link_onlines_sitebar #onlinecount_sitebar {
    color: #ffeb3b !important;
    font-weight: 700;
    margin: 0 !important;
    min-width: 1ch;
    text-align: center;
}

.shg-header__status #Notification_Area_Icons a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    opacity: 1 !important;
}

.shg-header__status #link_onlines_sitebar:hover {
    background-color: rgba(45, 212, 191, 0.1) !important;
    border-color: rgba(45, 212, 191, 0.42) !important;
}

.shg-header__status .sitebar_flag,
.shg-header__status #sitebar_net_state,
.shg-header__status #sitebar_linkadmin,
.shg-header__status #sitebar_activity_report,
.shg-header__status #sitebar_contact_us {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: var(--shg-radius-sm) !important;
    background-color: transparent !important;
    background-size: 14px 14px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    float: none !important;
}

.shg-header__status #sitebar_net_state.net_state_on {
    background-image: url(../../../im/sitebar/net_status_4.png) !important;
}

.shg-header__status #sitebar_net_state.net_state_off {
    background-image: url(../../../im/sitebar/net_status_2.png) !important;
}

.shg-header__status #sitebar_net_state.net_state_on:hover {
    background-image: url(../../../im/sitebar/net_status_4.png) !important;
}

.shg-header__status #sitebar_net_state.net_state_off:hover {
    background-image: url(../../../im/sitebar/net_status_2.png) !important;
}

.shg-header__status #sitebar_linkadmin {
    background-image: url(../../../im/avatar/admin--1.gif) !important;
}

.shg-header__status #sitebar_linkadmin:hover {
    background-image: url(../../../im/avatar/admin--1.gif) !important;
}

.shg-header__status #sitebar_activity_report {
    background-image: url(../../../im/all/3d_bar_chart.png) !important;
}

.shg-header__status #sitebar_activity_report:hover {
    background-image: url(../../../im/all/3d_bar_chart.png) !important;
}

.shg-header__status #sitebar_contact_us {
    background-image: url(../../../im/all/phone2.png) !important;
}

.shg-header__status #sitebar_contact_us:hover {
    background-image: url(../../../im/all/phone2.png) !important;
}

.shg-header__status #sitebar_flag.sitebar_flag2 {
    opacity: 1 !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: var(--shg-radius-sm) !important;
    background-color: transparent !important;
    background-image: url(../../../im/sitebar/white_flag.png) !important;
    background-position: center 2px !important;
    background-size: 12px 12px !important;
    background-repeat: no-repeat !important;
    color: #ff6b6b !important;
    font-size: 8px !important;
    font-weight: 700;
    line-height: 1 !important;
    text-align: center;
    float: none !important;
    display: inline-flex !important;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.shg-header__status #sitebar_flag.sitebar_flag2:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: url(../../../im/sitebar/white_flag.png) !important;
    border: none !important;
    color: #ff6b6b !important;
    opacity: 1 !important;
}

.shg-header__time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    line-height: 1.35;
    color: var(--shg-text-muted);
    cursor: pointer;
}

.shg-header__online {
    font-size: 11px;
    color: var(--shg-teal);
    white-space: nowrap;
}

.shg-workspace {
    flex: 1;
    min-height: 0;
    padding: 12px 20px 8px;
    overflow: hidden;
    display: flex;
}

.shg-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1120px;
    height: 100%;
    max-height: calc(100vh - var(--shg-header-h) - var(--shg-dock-h) - 20px);
    margin: 0 auto;
}

.shg-widget-grid.is-hidden {
    display: none;
}

.shg-widget {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--shg-glass-border);
    border-radius: var(--shg-radius);
    background: var(--shg-glass);
    backdrop-filter: blur(14px);
    box-shadow: var(--shg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.shg-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-direction: row;
}

.shg-widget__head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.shg-widget__expand {
    order: -1;
    width: 28px;
    height: 28px;
    border: 1px solid var(--shg-glass-border);
    border-radius: var(--shg-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--shg-text);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.shg-widget__expand:hover {
    background: var(--shg-teal-dim);
    border-color: rgba(45, 212, 191, 0.4);
}

.shg-widget__body {
    flex: 1;
    overflow: auto;
    direction: rtl;
    text-align: right;
}

.shg-widget[data-shg-widget="music_player"] .shg-widget__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.shg-widget[data-shg-widget="music_player"] .shg-music-widget-frame-wrap {
    flex: 1;
    min-height: 190px;
}

.shg-widget-list,
.shg-chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shg-widget-list li,
.shg-chat-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    direction: rtl;
    text-align: right;
}

.shg-widget-list__line,
.shg-chat-list__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.shg-chat-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.shg-chat-list__content {
    flex: 1;
    min-width: 0;
}

.shg-widget-list__title,
.shg-chat-list__name {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shg-widget-list .shg-widget-meta {
    display: block;
    margin-top: 4px;
}

.shg-chat-list__msg {
    display: block;
    color: var(--shg-text-muted);
    font-size: 10px;
    margin-top: 2px;
}

.shg-widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.shg-widget-dot--teal { background: #2dd4bf; }
.shg-widget-dot--purple { background: #a78bfa; }
.shg-widget-dot--blue { background: #60a5fa; }

.shg-widget-tag {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: var(--shg-radius-sm);
}

.shg-widget-tag--teal { background: rgba(45, 212, 191, 0.2); color: #5eead4; }
.shg-widget-tag--purple { background: rgba(167, 139, 250, 0.2); color: #c4b5fd; }
.shg-widget-tag--blue { background: rgba(96, 165, 250, 0.2); color: #93c5fd; }

.shg-widget-meta {
    font-size: 9px;
    color: var(--shg-text-muted);
    white-space: nowrap;
}

.shg-widget-link {
    margin-top: 10px;
    padding: 6px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: none;
    color: var(--shg-teal);
    font-size: 11px;
    cursor: pointer;
    text-align: right;
    width: 100%;
}

.shg-widget-link:hover {
    color: #5eead4;
}

.shg-blog-card {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    margin-bottom: 10px;
    direction: rtl;
    text-align: right;
}

.shg-blog-card__thumb {
    width: 72px;
    height: 56px;
    border-radius: var(--shg-radius-sm);
    flex-shrink: 0;
}

.shg-blog-card__thumb--a {
    background: linear-gradient(135deg, #1e3a5f, #2dd4bf);
}

.shg-blog-card__thumb--b {
    background: linear-gradient(135deg, #312e81, #60a5fa);
}

.shg-blog-card__body h3 {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.4;
}

.shg-blog-card__body p {
    margin: 0 0 4px;
    font-size: 10px;
    color: var(--shg-text-muted);
    line-height: 1.45;
}

.shg-chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.shg-chat-avatar--group { background: #0d9488; }
.shg-chat-avatar--user { background: #7c3aed; }
.shg-chat-avatar--support { background: #2563eb; }

.shg-music-widget-frame-wrap {
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--shg-radius-sm);
    overflow: hidden;
    background: #121212;
}

.shg-music-widget-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 0;
    background: #121212;
}

.shg-window-layer.is-music {
    padding: calc(var(--shg-header-h) + 8px) 12px calc(var(--shg-dock-h) + 16px) 12px;
}

.shg-window--player.is-active {
    border-radius: var(--shg-radius);
}

#sb_player_btn_view,
#sb_tandis_btn_view,
#sb_player_div_iframe,
#sb_player_div_iframe_closer,
#sb_tandis_div_iframe,
#sb_tandis_div_iframe_closer {
    display: none !important;
}

.shg-dock {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--shg-glass-border);
    border-radius: var(--shg-radius);
    background: var(--shg-glass);
    backdrop-filter: blur(14px);
    box-shadow: var(--shg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: calc(100vw - var(--shg-sidebar-w) - 32px);
}

.shg-dock:empty {
    display: none;
}

.shg-dock__btn {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: var(--shg-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.shg-dock__btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shg-dock__btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.shg-dock__btn.is-active {
    border-color: rgba(45, 212, 191, 0.42);
    background: var(--shg-teal-dim);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 0 12px rgba(45, 212, 191, 0.12);
}

.shg-dock__btn.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--shg-teal);
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.85);
}

.shg-window-layer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--shg-sidebar-w);
    z-index: 25;
    display: none;
    padding: calc(var(--shg-header-h) + 12px) 20px calc(var(--shg-dock-h) + 24px) 20px;
    pointer-events: none;
}

.shg-window-layer.is-visible {
    display: block;
    background: rgba(4, 12, 24, 0.14);
}

.shg-window-layer.is-maximized {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 45;
    padding: 0;
    background: transparent;
}

.shg-window-layer.is-maximized.is-music {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0;
}

.shg-window {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--shg-radius);
    background: rgba(10, 24, 42, 0.64);
    backdrop-filter: blur(16px);
    box-shadow: var(--shg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: visible;
    animation: shg-window-in 0.28s ease-out;
    pointer-events: none;
}

.shg-window.is-maximized {
    border-radius: 0;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.14);
}

.shg-window.is-active {
    display: flex;
    pointer-events: auto;
}

@keyframes shg-window-in {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.shg-window__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    direction: rtl;
    overflow: visible;
    flex-shrink: 0;
}

.shg-window__title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--shg-radius-sm);
    padding: 4px 6px;
    margin: -4px -6px;
    user-select: none;
}

.shg-window__title:hover,
.shg-window__title.is-menu-open {
    background: rgba(255, 255, 255, 0.07);
}

.shg-window__title img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
}

.shg-window__title > span {
    pointer-events: none;
}

.shg-window__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    min-width: 148px;
    padding: 4px;
    border: 1px solid var(--shg-glass-border);
    border-radius: var(--shg-radius-sm);
    background: rgba(10, 24, 42, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: var(--shg-shadow);
    direction: rtl;
}

.shg-window__menu[hidden] {
    display: none !important;
}

.shg-window__menu button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--shg-text);
    text-align: right;
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
}

.shg-window__menu button:hover {
    background: var(--shg-teal-dim);
    color: var(--shg-teal);
}

.shg-window__browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 20, 36, 0.55);
    direction: ltr;
}

.shg-window__browser-btn,
.shg-window__browser-go {
    flex: 0 0 auto;
    height: 30px;
    min-width: 30px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--shg-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--shg-text);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.shg-window__browser-go {
    font-size: 11px;
    font-family: IRANSans, tahoma, serif;
    direction: rtl;
}

.shg-window__browser-btn:hover,
.shg-window__browser-go:hover {
    background: var(--shg-teal-dim);
    border-color: rgba(45, 212, 191, 0.35);
    color: var(--shg-teal);
}

.shg-window__browser-address {
    flex: 1 1 auto;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--shg-radius-sm);
    background: rgba(0, 0, 0, 0.28);
    color: var(--shg-text);
    font-size: 12px;
    font-family: Consolas, "Courier New", monospace;
    outline: none;
}

.shg-window__browser-address:focus {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.18);
}

.shg-window__controls {
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
}

.shg-window__controls button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--shg-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--shg-text);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.shg-window__controls button[data-shg-action="close"]:hover {
    background: rgba(232, 93, 93, 0.25);
    border-color: rgba(232, 93, 93, 0.5);
}

.shg-window__controls button[data-shg-action="maximize"] {
    font-size: 11px;
    line-height: 1;
}

.shg-window__frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

.shg-window__frame-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 0 inherit inherit;
}

.shg-window__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 24, 42, 0.7);
    color: var(--shg-text-muted);
    font-size: 12px;
    z-index: 1;
    pointer-events: none;
}

.shg-window__loading.is-hidden {
    display: none;
}

.shg-toast {
    position: fixed;
    top: auto;
    bottom: calc(var(--shg-dock-h) + 20px);
    right: auto;
    left: calc(var(--shg-sidebar-w) + 20px);
    z-index: 40;
    max-width: 320px;
    padding: 12px 14px;
    border: 1px solid var(--shg-glass-border);
    border-radius: var(--shg-radius-sm);
    background: rgba(10, 24, 42, 0.72);
    backdrop-filter: blur(14px);
    font-size: 11px;
    line-height: 1.5;
    box-shadow: var(--shg-shadow);
    direction: rtl;
    text-align: right;
}

.shg-toast button {
    float: left;
    border: 0;
    background: none;
    color: var(--shg-text-muted);
    cursor: pointer;
    font-size: 16px;
}

.shg-toast a {
    color: var(--shg-teal);
}

#sitebar,
#div_sitebar_loading,
.shg-shell-hidden-sitebar {
    display: none !important;
}

#Notification_content {
    position: fixed;
    z-index: 50;
    top: 58px;
    right: 16px;
    left: auto;
    direction: rtl;
}

#Notification_content .sitebar_window,
#Notification_content #div_forget_sitebar,
#Notification_content #login_form_sitebar_alert {
    background: rgba(10, 24, 42, 0.92) !important;
    color: #e8f4ff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--shg-radius) !important;
    box-shadow: var(--shg-shadow) !important;
}

#Notification_content .sitebar_window a,
#Notification_content .sitebar_window .linkred {
    color: var(--shg-teal) !important;
}

.shg-widget__body::-webkit-scrollbar {
    width: 6px;
}

.shg-sidebar__nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.shg-widget__body::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.35);
    border-radius: 999px;
}

@media (max-width: 720px), (max-device-width: 720px) {
    .shg-shell {
        --shg-sidebar-w: 56px;
        --shg-header-h: 48px;
        --shg-dock-h: 52px;
        height: 100dvh;
        max-height: 100dvh;
    }

    .shg-sidebar {
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .shg-sidebar__brand {
        margin-bottom: 10px;
        gap: 0;
    }

    .shg-sidebar__brand img {
        width: 30px;
        height: 30px;
    }

    .shg-sidebar__brand span {
        display: none;
    }

    .shg-sidebar__btn {
        padding: 7px 1px;
        gap: 0;
        min-height: 40px;
        justify-content: center;
    }

    .shg-sidebar__btn img {
        width: 26px;
        height: 26px;
    }

    .shg-sidebar__btn span {
        display: none;
    }

    .shg-sidebar__btn:hover,
    .shg-sidebar__btn:active,
    .shg-sidebar__logout:hover,
    .shg-sidebar__logout:active {
        transform: none;
    }

    .shg-sidebar__footer {
        padding: 4px 0 2px;
    }

    .shg-sidebar__logout {
        width: 28px;
        height: 28px;
    }

    .shg-main {
        padding-bottom: calc(var(--shg-dock-h) + 10px + env(safe-area-inset-bottom, 0px));
    }

    .shg-header {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        min-height: var(--shg-header-h);
        padding: 6px 10px;
    }

    .shg-header__title {
        min-width: 0;
        flex: 0 1 auto;
        max-width: 38%;
    }

    .shg-header__title strong {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shg-header__title span {
        display: none;
    }

    .shg-header__status {
        flex: 1 1 auto;
        max-width: none;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
        justify-content: flex-end;
        align-items: center;
    }

    .shg-header__avatar {
        width: 28px;
        height: 28px;
        flex: 0 0 auto;
        order: 1;
    }

    .shg-header__guest a {
        padding: 3px 8px;
        font-size: 10px;
    }

    .shg-header__status #Notification_Area_Icons {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        gap: 2px;
        order: 3;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        touch-action: pan-x;
    }

    .shg-header__status #Notification_Area_Icons::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .shg-header__status #Notification_Area_Icons a:not(#sitebar_flag) {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
        flex: 0 0 auto;
    }

    .shg-header__status #Notification_Area_Icons #sitebar_flag.sitebar_flag2 {
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        padding: 0 !important;
        overflow: hidden !important;
        line-height: 1 !important;
        font-size: 8px !important;
        background-color: transparent !important;
        background-image: url(../../../im/sitebar/white_flag.png) !important;
        background-position: center 2px !important;
        background-size: 12px 12px !important;
        background-repeat: no-repeat !important;
        border: none !important;
        display: inline-flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        color: #ff6b6b !important;
        flex: 0 0 auto;
    }

    .shg-header__status #link_onlines_sitebar {
        order: 2;
        flex: 0 0 auto !important;
        width: max-content !important;
        min-width: max-content !important;
        height: 26px !important;
        font-size: 10px !important;
        padding: 2px 8px !important;
        gap: 3px !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .shg-header__status #link_onlines_sitebar .sb-online-unit {
        display: none !important;
    }

    .shg-header__status #link_onlines_sitebar .sb-online-label,
    .shg-header__status #link_onlines_sitebar #onlinecount_sitebar {
        display: inline !important;
        margin: 0 !important;
        position: static !important;
        float: none !important;
    }

    .shg-header__status #link_onlines_sitebar #onlinecount_sitebar {
        font-size: 11px !important;
    }

    .shg-header__time {
        display: none;
    }

    .shg-workspace {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 10px 6px;
    }

    .shg-widget-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        max-height: none;
        height: auto;
        gap: 10px;
        max-width: none;
    }

    .shg-widget {
        min-height: 200px;
        padding: 10px;
    }

    .shg-widget__head {
        margin-bottom: 8px;
    }

    .shg-widget__head h2 {
        font-size: 13px;
    }

    .shg-widget[data-shg-widget="music_player"] {
        min-height: 260px;
    }

    .shg-widget[data-shg-widget="music_player"] .shg-music-widget-frame-wrap {
        min-height: 200px;
    }

    .shg-window-layer {
        left: var(--shg-sidebar-w);
        right: 0;
        padding: calc(var(--shg-header-h) + 6px) 8px calc(var(--shg-dock-h) + 14px + env(safe-area-inset-bottom, 0px)) 8px;
    }

    .shg-window-layer.is-music {
        padding: calc(var(--shg-header-h) + 4px) 6px calc(var(--shg-dock-h) + 10px + env(safe-area-inset-bottom, 0px)) 6px;
    }

    .shg-window-layer.is-maximized,
    .shg-window-layer.is-maximized.is-music {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 45;
        padding: 0;
    }

    .shg-window {
        border-radius: var(--shg-radius-sm);
    }

    .shg-window.is-maximized {
        border-radius: 0;
    }

    .shg-window__bar {
        min-height: 42px;
        padding: 6px 10px;
        gap: 8px;
    }

    .shg-window__browser-bar {
        padding: 6px 8px;
        gap: 4px;
    }

    .shg-window__browser-btn,
    .shg-window__browser-go,
    .shg-window__browser-address {
        height: 28px;
    }

    .shg-window__title {
        font-size: 12px;
        min-width: 0;
    }

    .shg-window__title span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shg-dock {
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - var(--shg-sidebar-w) - 16px);
        padding: 5px 8px;
        gap: 4px;
    }

    .shg-dock__btn {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .shg-toast {
        left: calc(var(--shg-sidebar-w) + 8px);
        right: 8px;
        bottom: calc(var(--shg-dock-h) + 12px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        padding: 10px 12px;
        font-size: 10px;
    }

    #Notification_content {
        top: calc(var(--shg-header-h) + 4px);
        right: 8px;
        left: calc(var(--shg-sidebar-w) + 8px);
        max-width: none;
    }
}
