/* ================================================================
   SOCIAL FEATURES - GLASSMORPHISM STYLES
   Profile, Friends, Messaging, Chat
   Mobile-first with light/dark mode support
================================================================ */

/* ================================================================
   1. PROFILE PAGE
================================================================ */
.profile-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
@media (min-width: 640px) { .profile-cover { height: 200px; } }
@media (min-width: 768px) { .profile-cover { height: 240px; } }
@media (min-width: 1024px) { .profile-cover { height: 280px; } }

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -3rem;
    z-index: 10;
}
@media (min-width: 640px) { .profile-avatar-wrapper { margin-top: -3.5rem; } }

.profile-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 640px) {
    .profile-avatar {
        width: 8rem;
        height: 8rem;
        border-width: 4px;
    }
}

.dark .profile-avatar { border-color: #1f2937; }

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-initials {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    user-select: none;
}
@media (min-width: 640px) { .profile-avatar-initials { font-size: 2.5rem; } }

/* Profile Info Section */
.profile-info-card {
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.95) 0%,
        rgba(248, 250, 252, 1) 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.30);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1rem 1.5rem;
}
@media (min-width: 640px) { .profile-info-card { padding: 1.5rem 1.5rem 2rem; } }

.dark .profile-info-card {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.92) 0%,
        rgba(15, 23, 42, 0.96) 100%);
    border-color: rgba(71, 85, 105, 0.50);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.profile-stat {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-stat:hover { transform: translateY(-1px); }
.profile-stat-value { font-size: 1.125rem; font-weight: 700; color: #1e293b; }
.profile-stat-label { font-size: 0.75rem; color: #64748b; }
.dark .profile-stat-value { color: #f1f5f9; }
.dark .profile-stat-label { color: #94a3b8; }

/* Profile Action Buttons */
.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.profile-action-btn-primary {
    background: linear-gradient(135deg, #005bc1 0%, #4399de 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 91, 193, 0.3);
}

.profile-action-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(0, 91, 193, 0.4);
    transform: translateY(-1px);
}

.profile-action-btn-secondary {
    background: rgba(241, 245, 249, 0.9);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.dark .profile-action-btn-secondary {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.5);
}

.profile-action-btn-secondary:hover {
    background: rgba(226, 232, 240, 0.9);
    transform: translateY(-1px);
}

.dark .profile-action-btn-secondary:hover {
    background: rgba(71, 85, 105, 0.6);
}

.profile-action-btn-danger {
    background: rgba(254, 226, 226, 0.9);
    color: #dc2626;
    border: 1px solid rgba(254, 202, 202, 0.6);
}

.dark .profile-action-btn-danger {
    background: rgba(127, 29, 29, 0.4);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ================================================================
   2. PROFILE TABS
================================================================ */
.profile-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.95) 0%,
        rgba(248, 250, 252, 1) 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.30);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.dark .profile-tabs {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.90) 0%,
        rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(71, 85, 105, 0.50);
}

.profile-tab {
    flex: 1;
    min-width: max-content;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.profile-tab:hover {
    color: #334155;
    background: rgba(0, 0, 0, 0.03);
}

.dark .profile-tab { color: #94a3b8; }
.dark .profile-tab:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.03); }

.profile-tab.active {
    color: #005bc1;
    border-bottom-color: #005bc1;
    font-weight: 600;
}
.dark .profile-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

/* ================================================================
   3. PHOTO GALLERY
================================================================ */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (min-width: 640px) { .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1024px) { .photo-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.photo-gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-gallery-item:hover img { transform: scale(1.05); }

.photo-gallery-item .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-gallery-item:hover .photo-overlay { opacity: 1; }

/* ================================================================
   4. FOLLOW CARDS (Communities, Businesses, BlogSpaces)
================================================================ */
.follow-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.7) 0%,
        rgba(248, 250, 252, 0.6) 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    cursor: pointer;
}

.follow-card:hover {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dark .follow-card {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(15, 23, 42, 0.5) 100%);
    border-color: rgba(71, 85, 105, 0.4);
}

.dark .follow-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(71, 85, 105, 0.6);
}

.follow-card-image {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.follow-card-info { flex: 1; min-width: 0; }

.follow-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .follow-card-name { color: #f1f5f9; }

.follow-card-meta {
    font-size: 0.75rem;
    color: #64748b;
}
.dark .follow-card-meta { color: #94a3b8; }

/* ================================================================
   5. INBOX / MESSAGING
================================================================ */
.inbox-container {
    display: flex;
    height: calc(100vh - 4rem);
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.95) 0%,
        rgba(248, 250, 252, 1) 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.30);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .inbox-container {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.92) 0%,
        rgba(15, 23, 42, 0.96) 100%);
    border-color: rgba(71, 85, 105, 0.50);
}

/* Mobile: full width panels with navigation */
@media (max-width: 767px) {
    .inbox-container { height: calc(100vh - 3.5rem); border-radius: 0; border: none; }
}

/* Conversation List Sidebar */
.inbox-sidebar {
    width: 100%;
    max-width: 100%;
    border-right: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 768px) { .inbox-sidebar { width: 340px; min-width: 340px; } }
@media (min-width: 1024px) { .inbox-sidebar { width: 380px; min-width: 380px; } }

.dark .inbox-sidebar { border-right-color: rgba(71, 85, 105, 0.4); }

.inbox-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.dark .inbox-sidebar-header { border-bottom-color: rgba(71, 85, 105, 0.4); }

.inbox-search {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    background: rgba(248, 250, 252, 0.8);
    color: #334155;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.inbox-search:focus {
    border-color: #005bc1;
    box-shadow: 0 0 0 3px rgba(0, 91, 193, 0.1);
}

.dark .inbox-search {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
}

.dark .inbox-search:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Conversation Item */
.conversation-list { flex: 1; overflow-y: auto; }

.conversation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.conversation-item:hover { background: rgba(241, 245, 249, 0.7); }
.conversation-item.active { background: rgba(0, 91, 193, 0.08); }

.dark .conversation-item { border-bottom-color: rgba(71, 85, 105, 0.2); }
.dark .conversation-item:hover { background: rgba(51, 65, 85, 0.4); }
.dark .conversation-item.active { background: rgba(96, 165, 250, 0.1); }

.conversation-avatar {
    position: relative;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-avatar .online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid #fff;
}

.dark .conversation-avatar .online-indicator { border-color: #1e293b; }

.online-indicator.online { background: #22c55e; }
.online-indicator.offline { background: #9ca3af; }

.conversation-info { flex: 1; min-width: 0; }

.conversation-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .conversation-name { color: #f1f5f9; }

.conversation-preview {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .conversation-preview { color: #94a3b8; }

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.conversation-time {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.conversation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 9999px;
    background: #005bc1;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* Message Area */
.inbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inbox-main-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(8px);
}
.dark .inbox-main-header {
    border-bottom-color: rgba(71, 85, 105, 0.4);
    background: rgba(15, 23, 42, 0.5);
}

.message-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Message Bubbles */
.message-bubble {
    max-width: 75%;
    padding: 0.625rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
}

.message-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #005bc1 0%, #2563eb 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background: rgba(241, 245, 249, 0.95);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-bottom-left-radius: 4px;
}

.dark .message-bubble.received {
    background: rgba(51, 65, 85, 0.7);
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.5);
}

.message-time {
    font-size: 0.6875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.message-bubble.sent .message-time { text-align: right; }

/* Message Input */
.message-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(8px);
}

.dark .message-input-area {
    border-top-color: rgba(71, 85, 105, 0.4);
    background: rgba(15, 23, 42, 0.5);
}

.message-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 0.875rem;
    outline: none;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.message-input:focus {
    border-color: #005bc1;
    box-shadow: 0 0 0 2px rgba(0, 91, 193, 0.08);
}

.dark .message-input {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
}

.message-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #005bc1 0%, #2563eb 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.message-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 91, 193, 0.3);
}

.message-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   6. FLOATING CHAT WINDOW
================================================================ */
.chat-window {
    position: fixed;
    bottom: 0;
    right: 1rem;
    width: 340px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    z-index: 1000;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(249, 250, 251, 0.98) 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    border-bottom: none;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .chat-window {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(71, 85, 105, 0.55);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
}

@media (max-width: 639px) {
    .chat-window {
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
    }
}

.chat-window.minimized { transform: translateY(calc(100% - 3rem)); }

.chat-window-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #005bc1 0%, #2563eb 100%);
    color: #fff;
    cursor: pointer;
    min-height: 3rem;
    flex-shrink: 0;
}

.chat-window-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-window-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-window-close {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.chat-window-close:hover { background: rgba(255,255,255,0.3); }

.chat-window-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
    max-height: 320px;
}

.chat-window-input {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}
.dark .chat-window-input { border-top-color: rgba(71, 85, 105, 0.4); }

.chat-window-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    background: rgba(248, 250, 252, 0.9);
    color: #334155;
    font-size: 0.8125rem;
    outline: none;
}
.dark .chat-window-input input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(241, 245, 249, 0.7);
    border-radius: 16px;
    align-self: flex-start;
    font-size: 0.75rem;
    color: #64748b;
}
.dark .typing-indicator { background: rgba(51, 65, 85, 0.5); color: #94a3b8; }

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* ================================================================
   7. ONLINE FRIENDS PANEL
================================================================ */
.friends-panel {
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.95) 0%,
        rgba(248, 250, 252, 1) 100%);
    border: 1.5px solid rgba(148, 163, 184, 0.30);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    overflow: hidden;
}

.dark .friends-panel {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.90) 0%,
        rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(71, 85, 105, 0.50);
}

.friends-panel-header {
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
.dark .friends-panel-header { color: #f1f5f9; border-bottom-color: rgba(71, 85, 105, 0.3); }

.friend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.friend-item:hover { background: rgba(241, 245, 249, 0.7); }
.dark .friend-item:hover { background: rgba(51, 65, 85, 0.4); }

.friend-item-avatar {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.friend-item-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.friend-item-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #22c55e;
}
.dark .friend-item-avatar .online-dot { border-color: #1e293b; }

.friend-item-name {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .friend-item-name { color: #e2e8f0; }

/* ================================================================
   8. CONNECTION REQUESTS (Inbox Tab)
================================================================ */
.request-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(241, 245, 249, 0.7) 0%,
        rgba(248, 250, 252, 0.6) 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(8px);
}

.dark .request-card {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(15, 23, 42, 0.5) 100%);
    border-color: rgba(71, 85, 105, 0.4);
}

.request-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ================================================================
   9. EMPTY STATE
================================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 245, 249, 0.8);
    margin-bottom: 1rem;
}
.dark .empty-state-icon { background: rgba(51, 65, 85, 0.5); }

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.375rem;
}
.dark .empty-state-title { color: #f1f5f9; }

.empty-state-text {
    font-size: 0.875rem;
    color: #64748b;
}
.dark .empty-state-text { color: #94a3b8; }

/* ================================================================
   10. UTILITY ANIMATIONS
================================================================ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }

.animate-social-fade-in { animation: fade-in 0.3s ease-out; }
.animate-social-fade-in-up { animation: fade-in-up 0.35s ease-out; }
.animate-social-slide-in { animation: slide-in-right 0.3s ease-out; }

/* ================================================================
   11. MESSAGING LAYOUT (PageMessages)
================================================================ */
.messaging-layout {
    display: flex;
    overflow: hidden;
}

.messaging-sidebar {
    width: 100%;
    flex-shrink: 0;
    border-right: 1px solid rgba(226, 232, 240, 0.6);
}

.messaging-content {
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .messaging-layout {
        border-radius: 16px;
        height: calc(100vh - 8rem) !important;
    }
    .messaging-sidebar { width: 340px; }
}
@media (min-width: 1024px) {
    .messaging-sidebar { width: 380px; }
}

/* ================================================================
   12. MESSAGE BUBBLES (sent/received)
================================================================ */
.message-bubble-sent {
    background: linear-gradient(135deg, #005bc1 0%, #2563eb 100%);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
}

.message-bubble-received {
    background: rgba(241, 245, 249, 0.95);
    color: #1e293b;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 18px 18px 18px 4px;
}

.dark .message-bubble-received {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.4);
}

/* ================================================================
   13. CHAT WINDOW BODY/FOOTER (floating chat)
================================================================ */
.chat-window-minimized {
    transform: translateY(calc(100% - 3rem));
}

.chat-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    min-height: 200px;
    max-height: 320px;
}

.chat-window-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    flex-shrink: 0;
}

.dark .chat-window-footer {
    border-top-color: rgba(71, 85, 105, 0.4);
}
