/* Modern Profile & Glassmorphism Styles */
:root {
    --glass-bg: rgba(20, 20, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-purple: #b026ff;
    --neon-blue: #00e5ff;
    --neon-pink: #ff2a6d;
    --neon-green: #00ff9d;
    --bg-dark: #0a0a12;
}

/* Profile Layout */
.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header-card {
    position: relative;
    background: var(--glass-bg);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    min-height: 400px;
    transition: box-shadow 0.3s ease;
    /* Fix for border-radius overflow clipping issues */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.profile-header-card:hover {
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.15);
    border-color: rgba(176, 38, 255, 0.2);
}

.profile-cover {
    height: 300px;
    background: linear-gradient(45deg, #2a2a72, #009ffd);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: shimmer 6s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.profile-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.profile-info-wrap {
    display: flex;
    flex-direction: row; /* Yan yana */
    align-items: flex-end; /* Alt hizalama */
    justify-content: space-between; /* Aralıklı dağılım */
    padding: 0 40px 30px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    gap: 30px; /* Elemanlar arası boşluk */
}

.profile-identity {
    display: flex;
    align-items: flex-end;
    /* margin-bottom kaldırıldı çünkü flex row kullanıyoruz */
    flex-shrink: 0;
}

.profile-avatar-xl {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 6px;
    background: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    margin-right: 25px;
    position: relative;
    flex-shrink: 0;
}

.profile-texts {
    padding-bottom: 10px; /* İsim ile alt çizgi arası biraz boşluk */
}

.profile-presence {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.profile-presence.online {
    border-color: rgba(0, 255, 157, 0.35);
    color: var(--neon-green);
    box-shadow: 0 0 18px rgba(0, 255, 157, 0.12);
}

.profile-presence.offline {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

.profile-texts h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 0 25px rgba(176, 38, 255, 0.4);
    background: linear-gradient(135deg, #fff 0%, #d4d4d4 50%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.profile-bio-card {
    background: rgba(20, 20, 30, 0.4); /* Biraz daha şeffaf */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 4px solid var(--neon-purple); /* Sağ tarafa border */
    border-left: none;
    border-radius: 20px;
    border-top-right-radius: 4px; /* Köşe detayı */
    padding: 25px 30px;
    max-width: 500px; /* Genişlik kısıtlaması */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    margin-left: 0; /* Reset */
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, background 0.3s;
}

.profile-bio-card:hover {
    background: rgba(20, 20, 30, 0.6);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.15);
}

/* Tırnak işareti sağ tarafa */
.profile-bio-card::before {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 15px;
    top: auto;
    left: auto;
    font-size: 80px;
    font-family: serif;
    color: rgba(176, 38, 255, 0.1);
    pointer-events: none;
    transform: rotate(180deg);
}

.profile-bio {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.7;
    font-weight: 400;
}

.profile-grid-3-cols {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    align-items: start;
}

.profile-container:has(#tab-content-messages.active) .profile-grid-3-cols {
    grid-template-columns: 1fr;
    gap: 0;
}
.profile-container:has(#tab-content-messages.active) .profile-sidebar-left,
.profile-container:has(#tab-content-messages.active) .profile-sidebar-right {
    display: none;
}
.profile-container:has(#tab-content-messages.active) .profile-content-center {
    grid-column: 1 / -1;
}

/* Sidebar lists */
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s;
}

.social-list li:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
}

.social-list a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
}

.profile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Profile Tab Content Cards - Glassmorphism */
.profile-tab-content .card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 24px;
    padding: 2rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-tab-content .card:hover {
    box-shadow: 0 12px 40px 0 rgba(176, 38, 255, 0.15);
    border-color: rgba(176, 38, 255, 0.3);
}

/* Profile Sidebar Cards */
.profile-sidebar-left .card,
.profile-sidebar-right .card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Button & Nav Item Styles - No Scale */
.profile-nav-item {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.profile-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    box-shadow: none; /* Removed glow effect */
}

.profile-nav-item.active {
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.2), transparent);
    border-left: 3px solid var(--neon-purple);
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.15);
}

/* General Button Styles Update */
.btn {
    /* Existing btn styles assumed elsewhere, overriding hover */
    transition: all 0.3s ease;
}

.btn:hover {
    /* transform: scale(1.05); Removed */
    filter: brightness(1.2);
    box-shadow: 0 0 15px currentColor;
}

.btn:active {
    /* transform: scale(0.95); Removed */
    filter: brightness(0.9);
}

/* Specific overrides for profile buttons if needed */
/* Removed empty ruleset to satisfy linter */

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-content: start;
}

/* Friend Cards */
.friend-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.friend-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.friend-card.request {
    border-color: rgba(255, 42, 109, 0.35);
    background: rgba(255, 42, 109, 0.06);
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.friend-card-inner {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.friend-avatar {
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.friend-card:hover .friend-avatar img {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border-radius: 50%;
    border: 2px solid #14141e;
    background-clip: border-box;
    z-index: 5;
    aspect-ratio: 1/1;
    box-sizing: border-box;
}

.status-badge.online { 
    background-color: var(--neon-green); 
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.8); 
}
.status-badge.offline { 
    background-color: #666; 
}

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

.friend-card.request .friend-info {
    min-width: 160px;
}

.friend-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.friend-status-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.friend-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
    align-items: center;
}

.friend-card.request .friend-actions {
    margin-top: 0;
    margin-left: auto;
    gap: 8px;
}

.friend-card.request .friend-actions .btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    flex: 1;
    color: #fff;
    min-height: 42px;
    text-decoration: none;
    user-select: none;
}

.btn-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.10), 0 0 0 4px rgba(0, 229, 255, 0.25);
}

.btn-action:disabled,
.btn-action[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

.btn-action.is-loading {
    pointer-events: none;
}

.btn-action .icon {
    font-size: 1.1rem;
}

.btn-profile {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-message {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--neon-blue);
}

.btn-message:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.btn-remove {
    flex: 0 0 auto;
    width: 42px;
    padding: 0;
    background: rgba(255, 42, 109, 0.1);
    border-color: rgba(255, 42, 109, 0.3);
    color: var(--neon-pink);
}

.btn-remove:hover {
    background: rgba(255, 42, 109, 0.2);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
}

@media (max-width: 420px) {
    .btn-action {
        padding: 10px 12px;
    }
    .btn-action .lbl {
        display: none;
    }
}

/* Notifications */
.notification-card {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(20, 20, 30, 0.6);
    border-left: 4px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.notification-card:hover::before {
    transform: translateX(100%);
}

.notification-card.unread {
    background: rgba(176, 38, 255, 0.08);
    border-left-color: var(--neon-purple);
}

.notification-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.notif-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.8;
}

.notif-content {
    flex: 1;
}

.notif-text {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
}

.notif-actions {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Messages & Chat - Modern Redesign */
.messages-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    height: 850px;
    min-height: 80vh;
    background: rgba(10, 10, 14, 0.8);
    border-radius: 32px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    backdrop-filter: blur(40px);
    overflow: hidden;
}

.messages-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.messages-sidebar-header {
    margin-bottom: 20px;
    padding: 0 5px;
}

.messages-sidebar-header input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 18px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.messages-sidebar-header input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.15);
}

.messages-friends-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-user-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.chat-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-user-item.active {
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.15), rgba(176, 38, 255, 0.05));
    border: 1px solid rgba(176, 38, 255, 0.3);
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.1);
}

.chat-user-avatar {
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.chat-user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
    aspect-ratio: 1/1;
    display: block;
}

.chat-user-item.active .chat-user-avatar img {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.4);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border-radius: 50% !important;
    border: 2px solid #1e1e24;
    background-clip: padding-box;
    z-index: 2;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    display: inline-block;
    flex: 0 0 14px;
}
.status-dot.online { background-color: var(--neon-green); box-shadow: 0 0 6px rgba(0, 255, 157, 0.8); }
.status-dot.offline { background-color: #666; }

.chat-user-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-user-name {
    font-weight: 600;
    color: #eee;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.chat-user-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-user-item.active .chat-user-name {
    color: #fff;
    font-weight: 700;
}

.chat-user-item.active .chat-user-status {
    color: rgba(176, 38, 255, 0.9);
}

.chat-unread-badge {
    background: var(--neon-pink);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 42, 109, 0.4);
    margin-left: 8px;
}

.messages-chat {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.chat-header {
    padding: 20px 30px;
    background: rgba(20, 20, 25, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header-left .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    aspect-ratio: 1/1;
}

.chat-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.chat-profile-link {
    font-size: 0.85rem;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.chat-profile-link:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 30px 30px 36px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    scroll-behavior: smooth;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Chat Bubbles - Improved Readability */
.chat-bubble {
    width: fit-content;
    min-width: 120px;
    max-width: 88%;
    padding: 14px 20px;
    border-radius: 20px;
    position: relative;
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: bubbleEnter 220ms ease-out;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    color: #fff;
    border-bottom-right-radius: 4px;
    font-weight: 500;
    z-index: 1;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: #2b2b36;
    color: #f5f5f5;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 1;
}

.chat-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
    align-self: flex-end;
    font-weight: 400;
}

/* Chat Input Area - Redesigned */
.chat-input {
    padding: 20px 25px;
    background: rgba(15, 15, 20, 0.95);
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    backdrop-filter: blur(20px);
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.chat-input input {
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 20px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
    font-size: 1rem;
    height: 50px;
    min-width: 0;
}

.chat-input input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.chat-input button {
    border-radius: 12px;
    padding: 0 24px;
    height: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--neon-blue), #0091ea);
    color: #fff;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 145, 234, 0.4);
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 145, 234, 0.5);
    filter: brightness(1.1);
}

.chat-input button:active {
    transform: translateY(0);
}

.chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 15px 0;
}

.inventory-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.inventory-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.inventory-img-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.inventory-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    transition: filter 0.3s;
}

.inventory-card:hover .inventory-img-wrapper img {
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.inventory-info {
    margin-top: auto;
}

.inventory-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.inventory-type {
    font-size: 0.8rem;
    color: #888;
}

.inventory-wear {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Settings Form */
.settings-grid {
    display: grid;
    gap: 20px;
    max-width: 600px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.form-field input, .form-field textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    transition: all 0.3s;
    font-family: inherit;
}

.form-field input:focus, .form-field textarea:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

/* Scrollbar styling for chat and lists */
.chat-messages::-webkit-scrollbar,
.messages-friends-list::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.messages-friends-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.chat-messages::-webkit-scrollbar-thumb,
.messages-friends-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .messages-sidebar {
        height: 250px;
    }
    
    .messages-chat {
        height: 500px;
    }

    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Fade in for tabs */
.fade-in-tab {
    animation: fadeInTab 0.3s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating Chat */
.floating-chat-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 24px rgba(176,38,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-chat-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 36px rgba(176,38,255,0.5), inset 0 0 20px rgba(255,255,255,0.3);
}

.floating-chat-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 99999;
}
.floating-chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.85); /* Daha koyu arka plan */
    backdrop-filter: blur(8px); /* Blur efekti */
}
.floating-chat-panel {
    position: relative;
    width: min(1000px, 96vw);
    height: min(700px, 90vh);
    background: rgba(20,20,30,0.95); /* Daha opak panel */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 50px 150px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    backdrop-filter: none; /* İçerik netliği için */
}
.floating-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(15,15,20,0.98);
}
.floating-chat-header .title { font-weight: 700; font-size: 1rem; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.2); }
.floating-chat-header .close-btn {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 10px;
    height: 36px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.floating-chat-header .close-btn:hover {
    background: rgba(255, 42, 109, 0.2);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.4);
}

/* Floating Chat Layout Fix */
.floating-chat-content {
    display: flex;
    height: calc(100% - 66px);
    overflow: hidden;
}

.fc-left {
    width: 320px;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: rgba(10,10,15,0.6);
    flex-shrink: 0;
}

.fc-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15,15,20,0.4);
    position: relative;
    min-width: 0; /* Flexbox text overflow fix */
}

/* Chat User Item Fix */
.chat-user-item {
    position: relative;
    overflow: hidden;
    contain: paint;
}

.chat-user-item.active {
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.15), rgba(176, 38, 255, 0.05));
    border: 1px solid rgba(176, 38, 255, 0.3);
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.1);
}

/* Chat Bubble Fixes */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 92%;
    margin-bottom: 4px;
}

.chat-bubble.mine {
    align-self: flex-end;
    margin-left: auto; /* Force right alignment */
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-start;
    margin-right: auto; /* Force left alignment */
    border-bottom-left-radius: 4px;
}


.emoji-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}
.emoji-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.emoji-palette {
    position: absolute;
    bottom: 80px;
    left: 20px;
    display: block;
    background: rgba(20, 20, 28, 0.98);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 10000;
    max-height: 300px;
    overflow-y: auto;
    min-width: 320px;
    color: #eaeaea;
    font-family: inherit;
}
.emoji-palette::-webkit-scrollbar { width: 6px; }
.emoji-palette::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.emoji-body .emoji {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 22px;
    transition: transform 0.1s;
}
.emoji-body .emoji:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.1);
}

.emoji-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.emoji-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-tab { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); cursor: pointer; transition: all 0.2s; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; line-height: 1; letter-spacing: 0; text-transform: none; text-shadow: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emoji-tab + .emoji-tab { margin-left: 6px; }
.emoji-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.emoji-tab.active { border-color: var(--neon-purple); background: rgba(176, 38, 255, 0.15); color: #fff; box-shadow: 0 0 10px rgba(176, 38, 255, 0.3); }
.emoji-tab.icon { width: 36px; min-width: 36px; padding: 0; display: inline-grid; place-items: center; }
.emoji-icon { font-size: 18px; line-height: 1; }
.emoji-close { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; transition: all 0.2s; text-shadow: none !important; letter-spacing: 0; text-transform: none; }
.emoji-close:hover { background: rgba(255, 42, 109, 0.2); border-color: var(--neon-pink); box-shadow: 0 0 12px rgba(255, 42, 109, 0.35); }
.emoji-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }

.chat-style-wrap { display: flex; gap: 8px; align-items: center; }
.style-chip {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}
.style-chip:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.style-chip.active {
    border-color: var(--neon-purple);
    background: rgba(176, 38, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
    transform: translateY(-1px);
}

/* Chat Styles */
.chat-bubble.style-neon {
    background: linear-gradient(135deg, #b026ff, #00e5ff);
    background-size: 200% 200%;
    color: #fff;
    text-shadow: 0 0 12px rgba(255,255,255,0.65);
    box-shadow: 0 0 26px rgba(176,38,255,0.45), 0 0 12px rgba(0,229,255,0.25) inset;
    border: 1px solid rgba(176, 38, 255, 0.45);
    animation: neonFlow 3.2s linear infinite;
}
.chat-bubble.style-glow {
    background: rgba(20, 20, 30, 0.68);
    color: #fff;
    border: 1px solid rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.15);
    animation: glowPulse 1.8s ease-in-out infinite;
}
.chat-bubble.style-boom {
    background: radial-gradient(circle at 30% 30%, #ff2a6d 0%, #7b2cbf 60%, #1a1a24 100%);
    color: #fff;
    animation: boomPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 28px rgba(255, 42, 109, 0.55);
    border: none;
}
.chat-bubble.style-boom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%);
    animation: boomRipple 900ms ease-out forwards;
    pointer-events: none;
}
@keyframes boomPulse {
    0% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 26px rgba(255, 42, 109, 0.55); }
    50% { transform: scale(1.03); filter: brightness(1.25); box-shadow: 0 0 42px rgba(255, 42, 109, 0.85); }
    100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 26px rgba(255, 42, 109, 0.55); }
}
@keyframes boomRipple {
    0% { width: 0; height: 0; opacity: 0.8; }
    100% { width: 380px; height: 380px; opacity: 0; }
}
@keyframes neonFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.12); }
    50% { box-shadow: 0 0 28px rgba(0, 229, 255, 0.6), inset 0 0 14px rgba(0, 229, 255, 0.2); }
    100% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.12); }
}
@keyframes bubbleEnter {
    0% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .floating-chat-content { flex-direction: column; }
}
