﻿.online-users-section {
    background: linear-gradient(180deg, #fdf2f8 0%, #fff1f2 50%, #fff7ed 100%);
    padding: 0 0 10px;
    position: relative;
    overflow: hidden;
    margin-top: -30px;
    z-index: 10;
}

.online-users-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(244, 114, 182, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.online-users-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.online-users-title {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0 5px 0;
    background: linear-gradient(135deg, var(--pink-600), var(--rose-500), var(--peach-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.online-users-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    opacity: 0.8;
}

.online-users-grid {
    position: relative;
    z-index: 1;
}

.sim-card-container { 
    padding: 10px !important; 
}

.sim-card { 
    position: relative; 
    width: 100%; 
    padding-top: 140%; 
    background-size: cover; 
    background-position: center; 
    border-radius: 24px; 
    overflow: hidden; 
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.18), 0 2px 8px rgba(244, 114, 182, 0.1); 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.sim-card:hover { 
    transform: translateY(-8px) scale(1.03); 
    box-shadow: 0 20px 48px rgba(244, 114, 182, 0.3), 0 8px 24px rgba(244, 114, 182, 0.18); 
}

.sim-card-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: linear-gradient(to top, rgba(236, 72, 153, 0.95) 0%, rgba(244, 63, 94, 0.7) 40%, transparent 100%); 
    padding: 24px 14px 18px 14px; 
    color: #fff; 
    text-align: left; 
    transform: translateY(0);
    transition: all 0.3s ease;
}

.sim-card:hover .sim-card-overlay {
    transform: translateY(-2px);
    background: linear-gradient(to top, rgba(236, 72, 153, 0.98) 0%, rgba(244, 63, 94, 0.8) 45%, transparent 100%);
}

.sim-card-name { 
    font-size: 16px; 
    font-weight: 700; 
    margin: 0; 
    line-height: 1.3; 
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.sim-card-info { 
    font-size: 13px; 
    opacity: 0.95; 
    margin-top: 6px; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-card-info::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.8;
    flex-shrink: 0;
}

.sim-card-info object,
.sim-card-info object a {
    color: #fff !important;
    text-decoration: none !important;
}

.to_latest_users { 
    background: transparent !important; 
    box-shadow: none !important; 
}

.sim-card-online {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.sim-card:hover .sim-card-online {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.sim-card-online-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-online 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse-online {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.25);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

.sim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shine 3.5s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

@media (max-width: 768px) {
    .online-users-section {
        padding: 15px 0;
    }
    
    .online-users-title {
        font-size: 26px;
    }
    
    .online-users-subtitle {
        font-size: 14px;
    }
    
    .sim-card-container { 
        padding: 8px !important; 
    }
    
    .sim-card-overlay { 
        padding: 18px 12px 14px 12px; 
    }
    
    .sim-card-name { 
        font-size: 15px; 
    }
    
    .sim-card-info { 
        font-size: 12px; 
    }
}

@media (max-width: 480px) {
    .online-users-section {
        padding: 10px 0;
    }
    
    .online-users-title {
        font-size: 22px;
    }
    
    .online-users-subtitle {
        font-size: 13px;
    }
    
    .online-users-header {
        margin-bottom: 30px;
    }
    
    .sim-card-container { 
        padding: 6px !important; 
    }
    
    .sim-card {
        border-radius: 18px;
    }
    
    .sim-card-overlay { 
        padding: 16px 10px 12px 10px; 
    }
}
