:root {
    --navbar: rgba(20, 23, 50, 0.8);
    --border-line: rgba(255, 60, 60, 0.2);
    --owner-gradient: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.85));
    --accent-color: #ff3c3c;
    --accent-color-bright: #ff5252;
    --accent-color-dark: #cc0000;
    --text-color: #ffffff;
    --text-color-secondary: #e0e0e0;
    --hover-transition: all 0.3s ease;
    --online-color: #4CAF50;
    --offline-color: #F44336;
    --away-color: #FFC107;
    
    /* Дополнительные цвета для статистики */
    --vip-color: #ffd14b;
    --admin-color: #3498db;
    --ban-color: #e74c3c;
    --mute-color: #f39c12;
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-border: rgba(255, 60, 60, 0.1);
    --card-hover-shadow: rgba(255, 60, 60, 0.2);
}

/* Основной контейнер дашборда */
.stats-dashboard {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-line);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--hover-transition);
    padding: 20px;
}

.stats-dashboard:hover {
    box-shadow: 0 8px 30px rgba(255, 60, 60, 0.2);
    transform: translateY(-2px);
}

.owner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(40, 40, 40, 0.7)), url('/app/modules/module_block_main_site_custom_banners/img/digl.gif') center/cover;
    opacity: 0.2;
    transition: var(--hover-transition);
    z-index: 0;
}

.stats-dashboard:hover .owner-background {
    opacity: 0.25;
    transform: scale(1.05);
}

/* Заголовок дашборда */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-title i {
    font-size: 24px;
    color: var(--accent-color);
}

.stats-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-line);
    cursor: pointer;
    transition: var(--hover-transition);
}

.stats-refresh:hover {
    background: rgba(255, 60, 60, 0.2);
    transform: translateY(-2px);
}

.stats-refresh i {
    font-size: 14px;
    color: var(--accent-color);
}

.stats-refresh span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Стили для кнопки обновления в состоянии кулдауна */
.stats-refresh.cooldown {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(20, 20, 20, 0.3);
}

.stats-refresh.cooldown i {
    animation: none !important;
}

/* Анимация вращения для иконки обновления */
.stats-refresh:not(.cooldown):hover i {
    animation: spin 1s linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Сетка карточек */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Карточки статистики */
.stats-card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 15px;
    transition: var(--hover-transition);
    position: relative;
    overflow: hidden;
    grid-column: span 3;
    animation: fadeIn 0.5s ease forwards;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.stats-card-clickable {
    cursor: pointer;
    border-color: #ffd14b;
    background: transparent;
    position: relative;
    outline: 2px solid #ffd14b;
    outline-offset: -2px;
}

.stats-card-clickable .stats-card-icon {
    background: transparent;
    border: none;
}

.stats-card-clickable .stats-card-icon i {
    color: #ffd14b;
}

.stats-card-clickable .stats-card-value {
    color: #ffd14b;
}

.stats-card-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 209, 75, 0.5);
    border-color: #ffd14b;
    outline-color: #ffd14b;
}

.stats-card-clickable:hover .stats-card-icon i {
    color: #ffd14b;
}

.stats-card-clickable:hover .stats-card-value {
    color: #ffd14b;
}

.stats-card-hover-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.6;
    transition: var(--hover-transition);
    color: #ffd14b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: 50%;
    border: 1px solid #ffd14b;
}

.stats-card-clickable:hover .stats-card-hover-indicator {
    opacity: 1;
    transform: translateX(-3px);
    background: transparent;
    border-color: #ffd14b;
}

.stats-card-clickable .stats-card-title {
    position: relative;
    padding-right: 30px;
    color: #ffd14b;
}

.stats-card-clickable .stats-card-title::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0.5;
    transition: var(--hover-transition);
    color: #ffd14b;
    font-weight: 700;
}

.stats-card-clickable:hover .stats-card-title::after {
    opacity: 1;
    transform: translateX(3px);
    color: #ffd14b;
}

.stats-card.main-card {
    grid-column: span 6;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.2);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stats-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
}

.stats-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 60, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hover-transition);
}

.stats-card-icon i {
    font-size: 24px;
    color: var(--accent-color);
}

.stats-card-icon.small {
    width: 36px;
    height: 36px;
}

.stats-card-icon.small i {
    font-size: 16px;
}

.stats-card:hover .stats-card-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 60, 60, 0.2);
}

.stats-card-body {
    margin-bottom: 15px;
}

.stats-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: var(--hover-transition);
}

.stats-card:hover .stats-card-value {
    color: var(--accent-color-bright);
    text-shadow: 0 0 10px rgba(255, 60, 60, 0.3);
}

.stats-card-label {
    font-size: 13px;
    color: var(--text-color-secondary);
    opacity: 0.8;
}

.stats-card-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0;
    transition: width 1s ease;
}

.progress-bar.vip {
    background: #ffd14b;
}

.progress-bar.admin {
    background: var(--admin-color);
}

.progress-bar.ban {
    background: var(--ban-color);
}

.progress-bar.mute {
    background: var(--mute-color);
}

/* Главная карточка */
.stats-card-content {
    display: flex;
    height: 100%;
}

.stats-card.main-card .stats-card-icon {
    width: 70px;
    height: 70px;
    margin-right: 20px;
}

.stats-card.main-card .stats-card-icon i {
    font-size: 32px;
}

.stats-card.main-card .stats-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stats-card.main-card .stats-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.stats-card.main-card .stats-card-value {
    font-size: 42px;
    margin-bottom: 15px;
}

.stats-card-chart {
    flex: 1;
    margin-top: 10px;
}

/* Секция детальной статистики */
.stats-details {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.7s ease forwards;
}

.stats-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-details-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.stats-details-period {
    display: flex;
    gap: 15px;
}

.stats-details-period span {
    font-size: 14px;
    color: var(--text-color-secondary);
    opacity: 0.7;
    cursor: pointer;
    transition: var(--hover-transition);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.stats-details-period span:hover {
    opacity: 1;
    color: var(--text-color);
}

.stats-details-period span.active {
    color: var(--accent-color);
    opacity: 1;
    border-bottom: 2px solid var(--accent-color);
}

.stats-details-chart {
    height: 200px;
}

/* Футер дашборда */
.stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-color-secondary);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.stats-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-footer-info i {
    color: var(--accent-color);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 60, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 60, 60, 0);
    }
}

.stats-card-value.updated {
    animation: pulse 1s;
}

/* Адаптивность */
@media (max-width: 1199.98px) {
    .stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .stats-card.main-card {
        grid-column: span 6;
    }
    
    .stats-card {
        grid-column: span 3;
    }
}

@media (max-width: 991.98px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-card.main-card {
        grid-column: span 4;
    }
    
    .stats-card {
        grid-column: span 2;
    }
    
    .stats-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 767.98px) {
    .stats-dashboard {
        padding: 15px;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-card.main-card {
        grid-column: span 2;
    }
    
    .stats-card {
        grid-column: span 2;
    }
    
    .stats-details-period {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-card.main-card,
    .stats-card {
        grid-column: span 1;
    }
    
    .stats-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stats-card.main-card .stats-card-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Блок посещений сайта */
.stats-visits-container {
    margin-top: 20px;
}

.stats-visits-block {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow: visible;
    position: relative;
}

.visit_top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visit_title {
    font-weight: 600;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.visit_count {
    background: rgba(255, 60, 60, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.visit_count_label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.visit_online {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.visit_online_header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.visit_online_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.visit_online_count {
    background: rgba(255, 60, 60, 0.2);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
}

.visit_user_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
}

.visit_avatars_grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 8px;
    align-items: center;
    position: relative;
    width: 100%;
}

.visit_avatars_grid .havent_info {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: var(--text-color-secondary);
    opacity: 0.7;
    font-size: 14px;
}

.visit-more-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 60, 60, 0.15);
    border: 2px dashed rgba(255, 60, 60, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.visit-more-button:hover {
    background: rgba(255, 60, 60, 0.25);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.4);
}

.visit-more-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 2px;
}

.visit-more-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-color-secondary);
    opacity: 0.8;
    line-height: 1;
    text-transform: lowercase;
}

/* Модальное окно посетителей */
.visitors-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visitors-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.visitors-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.visitors-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border: 1px solid var(--border-line);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.visitors-modal.active .visitors-modal-content {
    transform: scale(1);
}

.visitors-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visitors-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.visitors-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.visitors-modal-close:hover {
    background: rgba(255, 60, 60, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.visitors-modal-close i {
    font-size: 18px;
}

.visitors-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.visitors-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.visitor-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visitor-modal-item:hover {
    background: rgba(255, 60, 60, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 60, 60, 0.2);
}

.visitor-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.visitor-modal-item:hover .visitor-modal-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.4);
}

.visitor-modal-info {
    flex: 1;
    min-width: 0;
}

.visitor-modal-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visitor-modal-steamid {
    font-size: 12px;
    color: var(--text-color-secondary);
    opacity: 0.7;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visitors-modal-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-color-secondary);
    opacity: 0.7;
    font-size: 16px;
}

.visitors-modal-body::-webkit-scrollbar {
    width: 8px;
}

.visitors-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.visitors-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 60, 60, 0.4);
    border-radius: 4px;
}

.visitors-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 60, 60, 0.6);
}

@media (max-width: 767.98px) {
    .visitors-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .visitors-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-more-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .visit-more-count {
        font-size: 12px;
    }
    
    .visit-more-label {
        font-size: 8px;
    }
}

@media (min-width: 1200px) {
    .visit_avatars_grid {
        gap: 8px;
    }
}

.visit-avatar-item {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.visit-avatar-item:hover {
    transform: scale(1.1);
    z-index: 1001;
}

.visit-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    transition: all 0.2s ease;
}

.visit-avatar-item:hover .visit-avatar-img {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.4);
}

.visit-avatar-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 60, 60, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 160px;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    text-align: center;
    white-space: nowrap;
    display: block;
}

.visit-avatar-item {
    position: relative;
}

.visit-avatar-item:hover .visit-avatar-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s 0s;
}

.visit-avatar-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.98);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.visit-avatar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(255, 60, 60, 0.4);
    margin-top: -1px;
}

.visit-tooltip-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
    text-align: center;
}

.visit-tooltip-steamid {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.3;
    display: block;
    text-align: center;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visit_user_list.no-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.visit_user_list.no-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.visit_user_list.no-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.visit_user_list.no-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 60, 60, 0.3);
    border-radius: 3px;
}

.visit_user_list.no-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 60, 60, 0.5);
}

.visit-users__card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.visit-users__card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 60, 60, 0.2);
    background: rgba(30, 30, 30, 0.6);
}

.visit-users__header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: 0.3s ease;
}

.visit-users__card:hover .visit-users__header {
    background-color: rgba(255, 60, 60, 0.1);
}

.visit-users__header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.visit-users__nick {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visit-users__button {
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: 0.3s ease;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.visit-users__card:hover .visit-users__button {
    background-color: var(--accent-color);
    color: white;
}

.visit-users__button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
    transition: 0.3s ease;
}

.visit-users__card:hover .visit-users__button svg {
    opacity: 1;
}

.visit-users__content {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    padding-top: 0;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.visit-users__card[style*="height: auto"] .visit-users__content,
.visit-users__card.expanded .visit-users__content {
    max-height: 500px;
}

.visit-users__line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--text-color-secondary);
    user-select: none;
}

.visit-users__line svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.5;
}

.visit-users__line .svg-hover {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s ease;
}

.visit-users__line .svg-hover:hover {
    opacity: 1;
    fill: var(--accent-color);
}

@media (max-width: 767.98px) {
    .visit_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .visit_user_list {
        max-height: 300px;
    }
    
    .visit_avatars_grid {
        gap: 8px;
        padding: 10px 6px;
    }
    
    .visit-avatar-item {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .visit-more-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .visit-more-count {
        font-size: 12px;
    }
    
    .visit-more-label {
        font-size: 8px;
    }
    
    .visit-avatar-tooltip {
        min-width: 140px;
        padding: 8px 12px;
        font-size: 13px;
    }
}
