.user-search-page {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 25%, #16213e 50%, #1e1e33 75%, #0f0f23 100%);
    min-height: 100vh;
    padding-top: 80px;
    color: white;
    position: relative;
    overflow-x: hidden;
}

.user-search-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(75, 0, 130, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1, #94a3b8, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.search-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 
        0 0 0 2px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2),
        0 8px 32px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #888;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 60, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(107, 207, 127, 0.2);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.suggestion-info h6 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.suggestion-info p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

.popular-users-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #b0b0b0;
    font-size: 1rem;
}

.user-rank-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.6rem auto 0;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 25px;
    color: #c4b5fd;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.user-rank-info strong {
    color: #fbbf24;
    font-weight: 700;
}

/* ==========================================
   #1 ŞAMPİYON KART
   ========================================== */
.champion-card {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    padding: 1.8rem 1.5rem 1.4rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(0,255,255,0.06), rgba(20,20,50,0.9));
    border: 2px solid rgba(0,255,255,0.3);
    border-radius: 22px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 25px rgba(0,255,255,0.08);
}

.champion-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.champion-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,255,255,0.55);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 35px rgba(0,255,255,0.15);
}

.champion-badge {
    display: inline-block;
    background: linear-gradient(135deg, #003d4d, #006d7a);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(0,255,255,0.3);
}

.champion-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.6rem;
    border: 3px solid rgba(0,255,255,0.45);
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
    transition: all 0.3s ease;
}

.champion-card:hover .champion-avatar {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(0,255,255,0.3);
}

.champion-name {
    display: block;
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.champion-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.7rem;
}

.champion-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.champion-stat b {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.champion-stat span {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

.champion-score {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.2);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 15px;
}

.champion-score i { font-size: 0.72rem; }

/* ==========================================
   #2 #3 RUNNER KARTLARI
   ========================================== */
.runner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 750px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.runner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.runner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}

.runner-silver {
    border-color: rgba(139,92,246,0.25);
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(255,255,255,0.02));
}
.runner-silver:hover { border-color: rgba(139,92,246,0.45); }

.runner-bronze {
    border-color: rgba(205,127,50,0.25);
    background: linear-gradient(135deg, rgba(205,127,50,0.06), rgba(255,255,255,0.02));
}
.runner-bronze:hover { border-color: rgba(205,127,50,0.45); }

.runner-medal { font-size: 1.3rem; flex-shrink: 0; }

.runner-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.runner-silver .runner-avatar { border-color: rgba(139,92,246,0.35); }
.runner-bronze .runner-avatar { border-color: rgba(205,127,50,0.35); }
.runner-card:hover .runner-avatar { transform: scale(1.06); }

.runner-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.runner-name {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.runner-meta {
    color: #6b7280;
    font-size: 0.82rem;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.runner-score {
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.runner-score i { margin-right: 0.15rem; font-size: 0.7rem; }

/* ==========================================
   #4+ KOMPAKT KARTLAR
   ========================================== */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.compact-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compact-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(139,92,246,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.22);
}

.compact-rank {
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.compact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.compact-card:hover .compact-avatar {
    border-color: rgba(139,92,246,0.25);
}

.compact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.compact-name {
    color: #d1d5db;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-meta {
    color: #6b7280;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-score {
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.compact-score i { margin-right: 0.1rem; font-size: 0.65rem; }

.no-users-message {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left: 4px solid #6bcf7f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   KEŞFET RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .user-search-page { padding-top: 70px; }
    .search-header { margin-bottom: 2rem; padding: 0 1rem; }
    .search-header h1 { font-size: 1.6rem; margin-bottom: 0.6rem; }
    .search-header p { font-size: 0.9rem; }
    .search-container { padding: 0 1rem; margin-bottom: 2.5rem; }
    .search-input { font-size: 1rem; padding: 0.9rem 1.2rem 0.9rem 3rem; }
    .search-icon { left: 1rem; font-size: 1rem; }
    .section-title h2 { font-size: 1.5rem; }
    .user-rank-info { font-size: 0.82rem; padding: 0.4rem 1rem; }

    .champion-card { max-width: 340px; padding: 1.4rem 1rem 1.2rem; border-radius: 18px; }
    .champion-avatar { width: 68px; height: 68px; }
    .champion-name { font-size: 0.95rem; }
    .champion-stats { gap: 1rem; }
    .champion-stat b { font-size: 1rem; }

    .runner-grid { max-width: 100%; padding: 0 0.75rem; gap: 0.7rem; }
    .runner-card { padding: 0.85rem 0.9rem; gap: 0.7rem; }
    .runner-avatar { width: 42px; height: 42px; }
    .runner-name { font-size: 0.85rem; }
    .runner-meta { font-size: 0.74rem; }
    .runner-score { font-size: 0.74rem; }
    .runner-medal { font-size: 1.1rem; }

    .compact-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; padding: 0 0.75rem; }
    .compact-card { padding: 0.65rem 0.7rem; gap: 0.5rem; }
    .compact-avatar { width: 34px; height: 34px; }
    .compact-name { font-size: 0.8rem; }
    .compact-meta { font-size: 0.72rem; }
    .compact-score { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .search-header h1 { font-size: 1.4rem; }
    .search-header p { font-size: 0.85rem; }
    .search-input { padding: 0.8rem 1rem 0.8rem 2.8rem; font-size: 0.95rem; }
    .search-icon { left: 0.9rem; font-size: 0.9rem; }
    .section-title { margin-bottom: 1.5rem; }
    .section-title h2 { font-size: 1.3rem; }
    .user-rank-info { font-size: 0.78rem; padding: 0.35rem 0.8rem; }

    .champion-card { max-width: 300px; padding: 1.2rem 0.8rem 1rem; margin-bottom: 1rem; }
    .champion-avatar { width: 60px; height: 60px; }
    .champion-name { font-size: 0.88rem; }
    .champion-stat b { font-size: 0.95rem; }
    .champion-stat span { font-size: 0.65rem; }
    .champion-badge { font-size: 0.72rem; padding: 0.25rem 0.8rem; }
    .champion-score { font-size: 0.72rem; }

    .runner-grid { grid-template-columns: 1fr; gap: 0.5rem; padding: 0 0.5rem; margin-bottom: 1.2rem; }
    .runner-meta { font-size: 0.72rem; }
    .runner-score { font-size: 0.72rem; }

    .compact-grid { grid-template-columns: 1fr; gap: 0.45rem; padding: 0 0.5rem; }
    .compact-card { padding: 0.6rem 0.65rem; }
    .compact-meta { font-size: 0.7rem; }
    .compact-score { font-size: 0.7rem; }
}

@media (max-width: 360px) {
    .search-container { padding: 0 0.5rem; }
    .champion-card { max-width: 280px; padding: 1rem 0.6rem 0.8rem; }
    .champion-avatar { width: 52px; height: 52px; }
}

/* ==========================================
   TAB SİSTEMİ - KEŞFET / ARKADAŞLARIM
   ========================================== */
.kesfet-tabs-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.kesfet-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    gap: 4px;
}

.kesfet-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.kesfet-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
}

.kesfet-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.25));
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.kesfet-tab i {
    font-size: 1rem;
}

.kesfet-tab-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Tab İçerik Alanları */
.kesfet-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.kesfet-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   ARKADAŞLAR BÖLÜMÜ STİLLERİ
   ========================================== */

/* Arkadaşlar Section Header */
.friends-section-header {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    backdrop-filter: blur(10px);
}

.friends-header-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.friends-header-content h2 i {
    color: #8b5cf6;
    font-size: 1.3rem;
}

.friends-header-content p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.friends-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.1));
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.friends-add-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(109, 40, 217, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

/* Arkadaş Alt Tab Sistemi */
.friends-sub-tabs {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
}

.friends-sub-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.friends-sub-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.friends-sub-tab.active {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.3);
}

.friends-sub-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

/* Arkadaş Alt İçerikleri */
.friends-sub-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: none;
    animation: fadeInTab 0.3s ease;
}

.friends-sub-content.active {
    display: block;
}

/* ==========================================
   ARKADAŞ KARTLARI - Modern Tasarım
   ========================================== */
#friendsTab .friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 0;
}

#friendsTab .friend-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    padding: 1.8rem 1.2rem 1.2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

#friendsTab .friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9, #a78bfa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#friendsTab .friend-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(139, 92, 246, 0.12);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.06), rgba(255, 255, 255, 0.04));
}

#friendsTab .friend-card:hover::before {
    opacity: 1;
}

/* Profil Link Alanı */
#friendsTab .friend-profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#friendsTab .friend-profile-link:hover {
    text-decoration: none;
}

/* Avatar Wrapper */
#friendsTab .friend-avatar-wrapper {
    position: relative;
    margin-bottom: 0.8rem;
}

#friendsTab .friend-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.25);
    padding: 2px;
    transition: all 0.4s ease;
    background: rgba(139, 92, 246, 0.05);
}

#friendsTab .friend-card:hover .friend-avatar {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
    transform: scale(1.05);
}

#friendsTab .friend-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid #1a1a2e;
    display: none; /* Aktif kullanıcı sistemi eklendiğinde gösterilecek */
}

#friendsTab .friend-name {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

#friendsTab .friend-profile-link:hover .friend-name {
    color: #c4b5fd;
}

#friendsTab .friend-fullname {
    color: #9ca3af;
    font-size: 0.8rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Aksiyon Butonları */
#friendsTab .friend-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#friendsTab .friend-action-buttons .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

#friendsTab .friend-action-buttons .btn i {
    font-size: 0.8rem;
}

#friendsTab .btn-details {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.1));
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

#friendsTab .btn-details:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.2));
    color: #fff;
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

#friendsTab .btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

#friendsTab .btn-remove:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* ==========================================
   ARKADAŞLIK İSTEKLERİ KARTLARI - Modern
   ========================================== */
#friendsTab .friend-requests {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 0;
}

#friendsTab .friend-request-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 18px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

#friendsTab .friend-request-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    opacity: 0.6;
}

#friendsTab .friend-request-item:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(245, 158, 11, 0.08);
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.04), rgba(255, 255, 255, 0.03));
}

/* İstek Kullanıcı Link Alanı */
#friendsTab .request-user-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.4rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#friendsTab .request-user-link:hover {
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

#friendsTab .request-avatar-wrapper {
    flex-shrink: 0;
}

#friendsTab .request-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

#friendsTab .request-user-link:hover .request-avatar {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

#friendsTab .request-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

#friendsTab .request-username {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#friendsTab .request-user-link:hover .request-username {
    color: #fbbf24;
}

#friendsTab .request-handle {
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 400;
}

#friendsTab .request-date {
    color: #6b7280;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

#friendsTab .request-date i {
    font-size: 0.7rem;
}

/* İstek Aksiyon Butonları */
#friendsTab .request-actions {
    display: flex;
    gap: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#friendsTab .btn-request-accept {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.08));
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#friendsTab .btn-request-accept i {
    font-size: 0.8rem;
}

#friendsTab .btn-request-accept:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.18));
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
}

#friendsTab .btn-request-reject {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#friendsTab .btn-request-reject i {
    font-size: 0.8rem;
}

#friendsTab .btn-request-reject:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.12);
}

/* Boş Durumlar */
#friendsTab .empty-friends {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #9ca3af;
    grid-column: 1 / -1;
}

#friendsTab .empty-friends i {
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.4);
    margin-bottom: 1rem;
    display: block;
}

#friendsTab .empty-friends p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================
   TAB SİSTEMİ - MOBİL RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .kesfet-tabs-container {
        max-width: 100%;
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }

    .kesfet-tabs {
        border-radius: 12px;
        padding: 4px;
    }

    .kesfet-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.88rem;
        border-radius: 10px;
        gap: 0.4rem;
    }

    .kesfet-tab i {
        font-size: 0.9rem;
    }

    /* Arkadaşlar Section */
    .friends-section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
        margin: 0 0.75rem 1.5rem;
        border-radius: 14px;
    }

    .friends-header-content h2 {
        font-size: 1.25rem;
        justify-content: center;
    }

    .friends-header-content p {
        font-size: 0.85rem;
    }

    .friends-add-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .friends-sub-tabs {
        padding: 0 0.75rem;
        margin-bottom: 1rem;
    }

    .friends-sub-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.82rem;
    }

    .friends-sub-content {
        padding: 0 0.75rem;
    }

    #friendsTab .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    #friendsTab .friend-card {
        padding: 1.2rem 0.75rem 1rem;
        border-radius: 16px;
    }

    #friendsTab .friend-avatar {
        width: 60px;
        height: 60px;
    }

    #friendsTab .friend-name {
        font-size: 0.85rem;
    }

    #friendsTab .friend-fullname {
        font-size: 0.75rem;
        max-width: 120px;
    }

    #friendsTab .friend-action-buttons .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        gap: 0.2rem;
    }

    #friendsTab .friend-action-buttons .btn i {
        font-size: 0.75rem;
    }

    #friendsTab .friend-requests {
        grid-template-columns: 1fr;
    }

    #friendsTab .request-avatar {
        width: 48px;
        height: 48px;
    }

    #friendsTab .request-username {
        font-size: 0.88rem;
    }

    #friendsTab .btn-request-accept,
    #friendsTab .btn-request-reject {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.2rem;
    }

    #friendsTab .btn-request-accept i,
    #friendsTab .btn-request-reject i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .kesfet-tab {
        padding: 0.55rem 0.5rem;
        font-size: 0.82rem;
    }

    .kesfet-tab span {
        font-size: 0.82rem;
    }

    .friends-section-header {
        padding: 1rem;
        margin: 0 0.5rem 1rem;
    }

    .friends-header-content h2 {
        font-size: 1.1rem;
    }

    #friendsTab .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    #friendsTab .friend-card {
        padding: 1rem 0.5rem 0.8rem;
        border-radius: 14px;
    }

    #friendsTab .friend-avatar {
        width: 52px;
        height: 52px;
    }

    #friendsTab .friend-name {
        font-size: 0.8rem;
    }

    #friendsTab .friend-fullname {
        font-size: 0.7rem;
        max-width: 100px;
    }

    #friendsTab .friend-action-buttons {
        flex-direction: row;
        gap: 6px;
    }

    #friendsTab .friend-action-buttons .btn {
        flex: 1;
        justify-content: center;
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
        gap: 0.2rem;
    }

    #friendsTab .friend-action-buttons .btn i {
        font-size: 0.72rem;
    }

    #friendsTab .request-user-link {
        gap: 0.7rem;
    }

    #friendsTab .request-avatar {
        width: 44px;
        height: 44px;
    }

    #friendsTab .request-username {
        font-size: 0.82rem;
    }

    #friendsTab .request-handle {
        font-size: 0.75rem;
    }

    #friendsTab .request-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    #friendsTab .btn-request-accept,
    #friendsTab .btn-request-reject {
        flex: 1;
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
        gap: 0.2rem;
    }

    #friendsTab .btn-request-accept i,
    #friendsTab .btn-request-reject i {
        font-size: 0.72rem;
    }
}

@media (max-width: 360px) {
    #friendsTab .friends-grid {
        grid-template-columns: 1fr;
    }
}