/* Modern UI Theme (Blue Clean) */

:root {
    --primary-blue: #6366f1;
    --primary-blue-dark: #4f46e5;
    --bg-gray: #f0f2f5;
    --card-white: #ffffff;
    --text-dark: #1c1e21;
    --text-muted: #65676b;
    --border-light: #e4e6eb;
    --success-green: #31a24c;
    --hover-gray: #f2f3f5;
    --header-bg: #1877f2;
    --input-bg: #f0f2f5;
    --shadow: rgba(0, 0, 0, 0.1);
    --btn-disabled: #e4e6eb;
    --btn-disabled-text: #bcc0c4;
}

[data-theme='dark'] {
    --bg-gray: #18191a;
    --card-white: #242526;
    --text-dark: #e4e6eb;
    --text-muted: #b0b3b8;
    --border-light: #3e4042;
    --hover-gray: #3a3b3c;
    --header-bg: #242526;
    --input-bg: #3a3b3c;
    --shadow: rgba(0, 0, 0, 0.3);
    --btn-disabled: #3a3b3c;
    --btn-disabled-text: #65676b;
}

/* Specificity Overrides for Newsfeed Components in Dark Mode */
[data-theme='dark'] .sidebar-card,
[data-theme='dark'] .create-post-card,
[data-theme='dark'] .post-card,
[data-theme='dark'] .comments-section,
[data-theme='dark'] .shared-post-preview,
[data-theme='dark'] .story-footer,
[data-theme='dark'] .simple-emoji-picker,
[data-theme='dark'] .poll-container {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .contact-item:hover,
[data-theme='dark'] .post-options-btn:hover,
[data-theme='dark'] .post-option-item:hover,
[data-theme='dark'] .privacy-option:hover,
[data-theme='dark'] .location-result-item:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
[data-theme='dark'] textarea,
[data-theme='dark'] select {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .comment-content-bubble {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] .post-actions-toolbar {
    background: var(--card-white) !important;
}

[data-theme='dark'] .privacy-selector,
[data-theme='dark'] .comment-privacy-selector,
[data-theme='dark'] .search-icon-circle,
[data-theme='dark'] .slider {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] #poll-creator {
    background: var(--bg-gray) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] #scheduling-container {
    background: #1e2d3d !important;
    /* Darker blue shade for scheduling */
    border: 1px solid var(--border-light) !important;
}

[data-theme='dark'] .mention-suggestions,
[data-theme='dark'] .search-autocomplete-dropdown,
[data-theme='dark'] .post-options-dropdown,
[data-theme='dark'] .reaction-dock,
[data-theme='dark'] .privacy-dropdown,
[data-theme='dark'] #comment-privacy-dropdown {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 4px 12px var(--shadow) !important;
}

[data-theme='dark'] .notification-dropdown,
[data-theme='dark'] .messenger-dropdown-container {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

[data-theme='dark'] .notification-header,
[data-theme='dark'] .notification-footer,
[data-theme='dark'] .messenger-header,
[data-theme='dark'] .messenger-search-container {
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .notification-item,
[data-theme='dark'] .messenger-item {
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .notification-item:hover,
[data-theme='dark'] .messenger-item:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .notification-item.unread,
[data-theme='dark'] .messenger-item.unread {
    background: rgba(24, 119, 242, 0.1) !important;
}

[data-theme='dark'] .messenger-search-box {
    background: var(--input-bg) !important;
}

[data-theme='dark'] .messenger-search-box input {
    color: var(--text-dark) !important;
}

[data-theme='dark'] .messenger-header-actions button {
    background: var(--hover-gray) !important;
    color: var(--text-dark) !important;
}


[data-theme='dark'] .autocomplete-item-title {
    color: var(--text-dark) !important;
}

[data-theme='dark'] .autocomplete-item-subtitle {
    color: var(--text-muted) !important;
}

[data-theme='dark'] .autocomplete-item:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .view-all-results {
    border-top-color: var(--border-light) !important;
}

[data-theme='dark'] .view-all-results:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .fa-chevron-circle-down {
    color: var(--text-muted) !important;
}

[data-theme='dark'] .btn-post:disabled,
[data-theme='dark'] .btn-post-full:disabled,
[data-theme='dark'] #share-to-story-btn:disabled {
    background: var(--btn-disabled) !important;
    color: var(--btn-disabled-text) !important;
}

[data-theme='dark'] #story-music-controls,
[data-theme='dark'] #image-edit-controls,
[data-theme='dark'] #story-text-controls {
    background: var(--bg-gray) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] #story-music-selected-name,
[data-theme='dark'] .font-selector select {
    color: var(--text-dark) !important;
    background: var(--input-bg) !important;
}

[data-theme='dark'] .add-to-post-tray {
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .section-title h2 {
    color: var(--text-dark) !important;
}

[data-theme='dark'] .widget-toggle-icon {
    color: var(--text-muted) !important;
}

[data-theme='dark'] .birthday-info div,
[data-theme='dark'] .poll-footer,
[data-theme='dark'] .poll-option-result {
    color: var(--text-muted) !important;
}

[data-theme='dark'] .story-footer,
[data-theme='dark'] .create-story,
[data-theme='dark'] .story-viewers-panel,
[data-theme='dark'] .story-viewers-header,
[data-theme='dark'] .simple-gif-picker,
[data-theme='dark'] .emoji-search-container {
    background: var(--card-white) !important;
}

[data-theme='dark'] .poll-option-result {
    background: var(--input-bg) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .poll-option-result:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .poll-option-result.is-voted {
    background: rgba(24, 119, 242, 0.1) !important;
    border-color: var(--primary-blue) !important;
}

[data-theme='dark'] .poll-option-text-wrapper {
    color: var(--text-dark) !important;
}

[data-theme='dark'] .poll-progress-fill {
    background: var(--primary-blue) !important;
    opacity: 0.2 !important;
}

[data-theme='dark'] .poll-footer,
[data-theme='dark'] .story-viewers-header {
    border-top-color: var(--border-light) !important;
    border-bottom-color: var(--border-light) !important;
}

[data-theme='dark'] .gif-search-input,
[data-theme='dark'] .emoji-search-input {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .drag-handle {
    background: var(--border-light) !important;
}

[data-theme='dark'] .gif-grid::-webkit-scrollbar-thumb,
[data-theme='dark'] .emoji-grid::-webkit-scrollbar-thumb,
[data-theme='dark'] .stories-container::-webkit-scrollbar-thumb {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .online-dot {
    border-color: var(--card-white) !important;
}

[data-theme='dark'] .story-creator-preview,
[data-theme='dark'] .preview-frame-container,
[data-theme='dark'] #story-text-input {
    background: var(--bg-gray) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] .preview-main {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .preview-header,
[data-theme='dark'] .preview-footer-hint {
    color: var(--text-dark) !important;
}

[data-theme='dark'] .sidebar-footer,
[data-theme='dark'] #image-edit-controls {
    border-top-color: var(--border-light) !important;
}

[data-theme='dark'] .story-creator-sidebar .btn-secondary {
    background: var(--hover-gray) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] #story-text-input,
[data-theme='dark'] .font-selector select {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .story-creator-sidebar {
    background: var(--card-white) !important;
    border-right-color: var(--border-light) !important;
}

[data-theme='dark'] .action-item {
    border-color: var(--border-light) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] .action-icon {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] .action-item:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .calc-display,
[data-theme='dark'] .calc-btn,
[data-theme='dark'] .currency-input,
[data-theme='dark'] .match-score {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .calc-btn:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .calc-btn.op {
    background: rgba(24, 119, 242, 0.1) !important;
    color: var(--primary-blue) !important;
}

[data-theme='dark'] .fin-item,
[data-theme='dark'] .match-item {
    border-bottom-color: var(--border-light) !important;
}

[data-theme='dark'] .widget-header {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .widget-header:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] #story-music-controls {
    background: var(--bg-gray) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .profile-header-card {
    background: var(--card-white) !important;
    box-shadow: 0 1px 2px var(--shadow) !important;
}

[data-theme='dark'] .profile-big-avatar {
    border-color: var(--card-white) !important;
    background: var(--card-white) !important;
}

[data-theme='dark'] .profile-nav-container {
    border-top-color: var(--border-light) !important;
}

[data-theme='dark'] .nav-item:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .about-sidebar {
    border-right-color: var(--border-light) !important;
}

[data-theme='dark'] .about-nav-item:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .about-sidebar-title,
[data-theme='dark'] .about-section-title {
    color: var(--text-dark) !important;
    border-bottom-color: var(--border-light) !important;
}

[data-theme='dark'] .about-info-icon {
    background: var(--input-bg) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] .add-info-btn:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .photo-strip {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .friends-grid,
[data-theme='dark'] .photos-grid {
    background: var(--card-white) !important;
}

[data-theme='dark'] .create-post-container {
    background: var(--card-white) !important;
    border-color: var(--border-light) !important;
}

[data-theme='dark'] .privacy-selector:hover,
[data-theme='dark'] .comment-privacy-selector:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .privacy-option:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .post-actions-toolbar {
    border-top-color: var(--border-light) !important;
}

[data-theme='dark'] .action-btn:hover {
    background: var(--hover-gray) !important;
}

[data-theme='dark'] .sidebar-card .widget-header {
    border-bottom-color: var(--border-light) !important;
}

[data-theme='dark'] .about-card-row strong {
    color: var(--text-dark) !important;
}

[data-theme='dark'] .professional-meta strong {
    color: var(--text-dark) !important;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Header Override */
.modern-header {
    background-color: var(--header-bg) !important;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    /* position and z-index moved to bottom of file */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.modern-header .logo {
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin-right: 16px;
    text-decoration: none;
}

.abwab-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 28px !important;
    letter-spacing: -1.5px;
    color: white !important;
    text-transform: lowercase;
}

[data-theme='light'] .header-content-mobile .abwab-logo-text {
    color: var(--primary-blue) !important;
}

.header-content-desktop {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-content-mobile {
    display: none;
    width: 100%;
    flex-direction: column;
}

.modern-search {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    /* Rounder */
    padding: 8px 15px;
    color: white;
    width: 240px;
    transition: width 0.3s;
}

.modern-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modern-search:focus {
    background: white;
    color: var(--text-dark);
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 350px;
}

.search-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.autocomplete-item {
    padding: 8px 16px;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    margin: 4px;
}

.autocomplete-item:hover {
    background: #f0f2f5;
}

.autocomplete-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.autocomplete-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}

.autocomplete-item-title {
    font-size: 15px;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-title strong {
    font-weight: 600;
}

.autocomplete-item-subtitle {
    font-size: 13px;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.search-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6eb;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.view-all-results {
    margin-top: 8px;
    border-top: 1px solid #ced0d4;
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 16px;
}

.view-all-results:hover {
    background: #f2f3f5;
}

.no-results {
    padding: 16px;
    color: #65676b;
    font-size: 14px;
    text-align: center;
}

.header-icons {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.header-icon-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 4px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-icon-btn:hover,
.header-icon-btn.active {
    background: rgba(0, 0, 0, 0.1);
    color: white;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-light);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--success-green);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Layout Grid */
.main-grid {
    display: block;
    /* Removed grid to use margins and fixed columns */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.center-feed {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Left Sidebar - Profile & Widgets */
.sidebar-card {
    background: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.profile-summary-cover {
    height: 80px;
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
}

.profile-summary-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin: -40px auto 0;
    display: block;
    object-fit: cover;
    background-color: #eee;
    /* Fallback color */
}

.profile-summary-info {
    text-align: center;
    padding: 10px 16px 20px;
}

.profile-summary-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-summary-info p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.widget-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.task-item {
    transition: all 0.2s;
}

.task-item:hover {
    background: var(--hover-gray);
    padding-left: 4px;
}

.task-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

#tasks-list::-webkit-scrollbar {
    width: 4px;
}

#tasks-list::-webkit-scrollbar-track {
    background: transparent;
}

#tasks-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.note-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

#notes-list::-webkit-scrollbar {
    width: 4px;
}

#notes-list::-webkit-scrollbar-track {
    background: transparent;
}

#notes-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Mobile Responsive Header Overrides */
@media (max-width: 768px) {
    .modern-header {
        height: auto !important;
        padding: 0 !important;
        background-color: var(--card-white) !important;
        flex-direction: column;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 1px 2px var(--shadow);
    }

    body {
        padding-top: 0 !important;
        /* Header is sticky, not fixed, but let's ensure no overlap */
    }

    .main-grid {
        padding-top: 10px;
        /* Slight breathing room below sticky header */
    }

    .header-content-desktop {
        display: none !important;
    }

    .header-content-mobile {
        display: flex !important;
    }

    .mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-actions {
        display: flex;
        gap: 8px;
    }

    .mobile-icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--hover-gray);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--text-dark);
        cursor: pointer;
        position: relative;
        text-decoration: none;
    }

    .mobile-tabs {
        display: flex;
        width: 100%;
        border-top: 1px solid var(--border-light);
    }

    .mobile-tab-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 0;
        font-size: 20px;
        color: var(--text-muted);
        text-decoration: none;
        position: relative;
    }

    .mobile-tab-item.active {
        color: var(--primary-blue);
    }

    .mobile-tab-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-blue);
    }

    .mobile-menu-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    .notification-mini-badge {
        position: absolute;
        top: 8px;
        right: 25%;
        width: 8px;
        height: 8px;
        background: #e41e3f;
        border-radius: 50%;
        border: 2px solid var(--card-white);
    }
}

/* Center Feed */
.create-post-card {
    background: var(--card-white);
    border-radius: 12px;
    box-shadow: 0 1px 2px var(--shadow);
    margin: 0 auto 20px auto;
    /* Centered with margin-bottom */
    max-width: 680px;
    /* Matches .post-card */
    width: 100%;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.create-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.create-post-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer-user-info {
    display: flex;
    flex-direction: column;
}

.composer-user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.composer-selectors {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.post-input-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 8px;
}

.post-input {
    width: 100%;
    border: none;
    font-size: 19px;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-dark);
    resize: none;
    outline: none;
    padding: 8px 0;
    line-height: 1.4;
    transition: min-height 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.post-input::placeholder {
    color: #8a8d91;
    font-weight: 400;
}

.btn-post {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-post:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

.btn-post:not(:disabled):hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.post-card {
    background: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--shadow);
    margin-bottom: 16px;
    padding: 12px 0;
    max-width: 680px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-light);
}

.post-header {
    padding: 0 16px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-actions {
    display: flex;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 4px 0;
    margin: 0 16px;
}

.action-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    background: var(--hover-gray);
}

.post-actions-toolbar {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--border-light);
}

.add-to-post-tray {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-post-tray:hover {
    background: var(--hover-gray);
}

.add-to-post-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.tray-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tray-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s, transform 0.1s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tray-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.tray-icon-btn.media-i {
    color: #45bd62;
}

.tray-icon-btn.gif-i {
    color: #00b2ff;
}

.tray-icon-btn.emoji-i {
    color: #f7b928;
}

.tray-icon-btn.feelings-i {
    color: #f3425f;
}

.tray-icon-btn.voice-i {
    color: #f3425f;
}

/* Mobile Responsive Overrides for Create Post */
@media (max-width: 600px) {
    .create-post-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .composer-user-name {
        font-size: 14px;
    }

    .composer-selectors {
        flex-wrap: wrap;
        gap: 4px;
    }

    .privacy-selector,
    .comment-privacy-selector {
        padding: 2px 6px !important;
        font-size: 11px !important;
    }

    #post-input {
        font-size: 16px !important;
        min-height: 80px !important;
    }

    .post-actions-toolbar {
        padding: 8px 12px;
    }

    .add-to-post-tray {
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .add-to-post-label {
        font-size: 13px;
    }

    .tray-icons {
        gap: 4px;
    }

    .tray-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}

@media (max-width: 500px) {
    .add-to-post-label {
        display: none;
        /* Hide label to give room for all icons */
    }

    .add-to-post-tray {
        justify-content: center;
        /* Center icons on very small screens */
    }

    .tray-icons {
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .tray-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .tray-icons {
        gap: 3px;
    }
}

.tray-icon-btn.poll-i {
    color: #4d79ff;
}

.tray-icon-btn.event-i {
    color: #f3425f;
}

.tray-icon-btn.job-i {
    color: #1877f2;
}

.tray-icon-btn.tag-i {
    color: #1877f2;
}

.tray-icon-btn.check-i {
    color: #45bd62;
}

.tray-icon-btn.schedule-i {
    color: #8a2be2;
}

.composer-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-post-full {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-post-full:disabled {
    background: var(--btn-disabled);
    color: var(--btn-disabled-text);
    cursor: not-allowed;
}

.btn-post-full:not(:disabled):hover {
    background: var(--primary-blue-dark);
    filter: brightness(1.1);
}

.media-options {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    flex: 1;
}

.media-options .action-btn {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    color: #65676b;
    font-weight: 600;
}

.media-options .action-btn:hover {
    background: #f2f2f2;
}

.media-options .action-btn i {
    font-size: 16px;
}

.post-card a:hover {
    text-decoration: underline !important;
}

#media-preview-container {
    border-top: 1px solid var(--border-light);
    padding: 10px;
}

#media-preview-content img,
#media-preview-content video {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.post-media {
    width: 100%;
    display: block;
    margin-top: 10px;
    border-radius: 8px;
    background: #000;
}

.media-options .action-btn i {
    font-size: 18px;
}

.btn-post {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-post:hover:not(:disabled) {
    background: var(--primary-blue-dark);
}

.btn-post:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Response for mobile */
@media (max-width: 600px) {
    .media-options span {
        display: none;
    }

    .btn-post {
        padding: 8px 20px;
    }
}

/* Stories Section */
.stories-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto !important;
    /* Force internal scrolling */
    padding: 2px 2px 10px;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    /* Restore thin scrollbar for visibility */
    max-width: 100%;
    /* Ensure it stays within parent column */
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.stories-container::-webkit-scrollbar {
    height: 6px;
    /* Show thin horizontal scrollbar */
    display: block;
}

.stories-container::-webkit-scrollbar-track {
    background: transparent;
}

.stories-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.story-card {
    flex: 0 0 120px !important;
    min-width: 120px !important;
    width: 120px !important;
    height: 200px !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-gray);
    box-shadow: 0 1px 3px var(--shadow);
}

.story-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--card-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.story-footer span {
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
    color: var(--text-dark);
}

.story-add-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
}

.story-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.story-card:hover .story-bg {
    transform: scale(1.05);
}

/* GIF Picker Styles */
.simple-gif-picker {
    user-select: none;
}

.gif-search-input {
    background: #f0f2f5;
}

.gif-grid::-webkit-scrollbar {
    width: 6px;
}

.gif-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.add-story .story-image {
    height: 75%;
}

@media (max-width: 480px) {
    .simple-gif-picker {
        width: 280px !important;
    }

    .gif-grid {
        grid-template-columns: 1fr !important;
    }
}

.story-avatar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    object-fit: cover;
    z-index: 5;
}

.story-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 5;
}

.create-story {
    background: white;
    display: flex;
    flex-direction: column;
}

.create-story .story-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.create-story .story-footer {
    height: 60px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 12px;
}

.create-story .story-footer span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.story-add-icon {
    position: absolute;
    top: -16px;
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
}

/* Post Content & Stats */
.post-content {
    padding: 0 16px 12px;
    font-size: 15px;
    line-height: 1.4;
}

.post-media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-stats {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

.reaction-counts {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Poll Styles */
.poll-container {
    padding: 16px;
    background: var(--card-white);
    border-radius: 12px;
    margin: 4px 16px 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 2px var(--shadow);
}

.poll-question {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.4;
}

.poll-option-result {
    position: relative;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: pointer;
    background: #f0f2f5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
}

.poll-option-result:last-child {
    margin-bottom: 0;
}

.poll-option-result:hover {
    background: #e4e6eb;
    border-color: #ccd0d5;
}

.poll-option-result.is-voted {
    background: #e7f3ff;
    border-color: #1877f2;
}

.poll-option-result.has-voted {
    cursor: default;
}

.poll-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #bbdefb;
    opacity: 0.4;
    transition: width 0.8s cubic-bezier(0.1, 0, 0.1, 1);
    z-index: 1;
}

.poll-option-result.is-voted .poll-progress-fill {
    background: #1877f2;
    opacity: 0.15;
}

.poll-option-text-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
}

.poll-radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #65676b;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.poll-option-result.is-voted .poll-radio-indicator {
    border-color: #1877f2;
    background: #1877f2;
}

.poll-option-result.is-voted .poll-radio-indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.poll-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #65676b;
    font-size: 13px;
}

/* Poll Creator Refinements */
#poll-creator {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poll-option-input-wrapper {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Right Sidebar Refined */
.contact-list {
    padding: 8px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.contact-item:hover {
    background: var(--hover-gray);
}

.contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    object-fit: cover;
    background-color: #eee;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--success-green);
    border-radius: 50%;
    position: absolute;
    bottom: -1px;
    right: -1px;
    border: 2px solid white;
}

/* Comments Section */
.comments-section {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--card-white);
}

.comment-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.emoji-trigger-comment {
    font-size: 18px;
    transition: transform 0.2s;
    pointer-events: auto;
    flex-shrink: 0;
}

.emoji-trigger-comment:hover {
    transform: scale(1.2);
    color: var(--facebook-blue);
}

.emoji-trigger {
    pointer-events: auto !important;
    user-select: none;
}

.comment-input-row input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
}

.comment-input-row input:focus {
    outline: none;
    background: var(--hover-gray);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 8px;
}

.comment-content-bubble {
    background: var(--input-bg);
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 90%;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}

.comment-text {
    font-size: 13px;
    color: var(--text-dark);
    margin-top: 2px;
}

/* Shared Post Preview */
.shared-post-preview {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 10px;
    padding: 12px;
    background: var(--card-white);
}

.shared-post-preview .post-header {
    margin-bottom: 8px;
}

.shared-post-preview .post-content {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 950px) {

    /* Hide right sidebar on smaller screens */
    .main-grid {
        grid-template-columns: 300px 1fr;
    }

    .right-sidebar {
        display: none;
    }

    .center-feed {
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .left-sidebar {
        display: none;
    }

    .center-feed {
        margin-left: 0;
    }
}

/* Emoji Picker Styles */
.simple-emoji-picker {
    user-select: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--card-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.emoji-search-container {
    background: var(--card-white);
}

.emoji-search-input {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.emoji-search-input:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 2px rgba(74, 118, 168, 0.1);
}

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.emoji-item {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

/* Comment Media Styles */
.comment-media-preview img,
.comment-media-preview video {
    display: block;
    margin: 0 auto;
}

.action-btn-small i {
    transition: color 0.2s;
}

.action-btn-small:hover i {
    color: #1877f2 !important;
}

.comment-media {
    cursor: pointer;
}

.comment-media:hover {
    filter: brightness(0.9);
}

/* Story Viewer Styles */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    /* Higher than emoji picker */
    display: none;
    align-items: center;
    justify-content: center;
}

.story-viewer-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Contain the bottom sheet */
    border-radius: 12px;
}

.story-viewers-panel {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 70%;
    background: var(--card-white);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    z-index: 100;
    transition: bottom 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.story-viewers-panel.active {
    bottom: 0;
}

.story-viewers-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: var(--card-white);
}

.drag-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.story-viewers-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-viewers-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.story-viewers-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.story-progress-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 150 !important;
    /* Above everything */
}

.story-header-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 150 !important;
    /* Above everything */
}

.story-progress-item {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0;
}

.story-progress-fill.active {
    animation: storyProgress 5s linear forwards;
}

.story-progress-fill.completed {
    width: 100%;
}

@keyframes storyProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.story-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 160;
}

.story-close-btn:hover {
    opacity: 1;
}

.story-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.story-viewer-name {
    font-weight: 600;
    font-size: 15px;
}

.story-footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 15px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.story-owner-footer {
    display: flex;
    justify-content: flex-start;
    cursor: pointer;
    min-height: 50px;
    align-items: center;
}

.story-seen-by {
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.story-seen-by:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.story-viewer-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.story-quick-reactions {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 30px;
    animation: storySlideUpFade 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.story-reaction-item {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.story-reaction-item:hover {
    transform: scale(1.5) translateY(-10px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.story-reply-input-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    align-items: center;
}

.story-reply-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: background 0.2s;
}

.story-reply-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.story-reply-input:focus {
    background: rgba(255, 255, 255, 0.3);
}

.story-react-trigger-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-react-trigger-btn:hover {
    transform: scale(1.1);
}

@keyframes storySlideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.story-media-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.story-media-container img,
.story-media-container video {
    max-width: 100%;
    max-height: 100%;
    animation: storyMediaFadeIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes storyMediaFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes storyReactionPop {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0;
    }

    20% {
        transform: scale(1.5) translateY(-20px);
        opacity: 1;
    }

    80% {
        transform: scale(1.2) translateY(-80px);
        opacity: 0.8;
    }

    100% {
        transform: scale(1) translateY(-120px);
        opacity: 0;
    }
}

.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: background 0.2s;
}

.story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.story-nav-btn.prev {
    left: -60px;
}

.story-nav-btn.next {
    right: -60px;
}

@media (max-width: 600px) {
    .story-nav-btn {
        display: none;
    }

    .story-viewer-container {
        height: 100vh;
        max-width: 100%;
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.post-audio-player {
    width: 100%;
    margin-top: 10px;
    background: #f0f2f5;
    border-radius: 30px;
    padding: 5px;
}

.post-audio-player audio {
    width: 100%;
    height: 40px;
}

/* Video Embed Styles */
.video-embed-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    max-width: 100%;
    margin: 12px -16px;
    width: calc(100% + 32px);
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Location Styles */
.location-result-item {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.location-result-item:hover {
    background: #f0f2f5;
}

.location-result-item i {
    color: #f3425f;
    font-size: 18px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.post-input:focus {
    min-height: 160px;
}

.action-btn i {
    font-size: 18px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* Post Music Controls */
.post-media-container {
    position: relative;
    width: 100%;
}

.music-control-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.music-control-btn.active {
    background: var(--primary-blue);
    border-radius: 10px;
    /* "Shape" change to rounded square */
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.music-control-btn i {
    font-size: 16px;
}

.music-playing-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.dropdown-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.music-playing-indicator i {
    animation: rotate 3s linear infinite;
}

@keyframes pulse-music {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.music-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 12px;
}

.music-wave span {
    width: 2px;
    height: 100%;
    background: white;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 12px;
    }
}

.location-result-item span {
    font-weight: 500;
}

/* Mini Player (PiP) */
.mini-player {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 380px !important;
    background: var(--card-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow);
    z-index: 10000;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: none;
}

/* Post Options Dropdown */
.post-options-container {
    position: relative;
    margin-left: auto;
}

.post-options-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-options-btn:hover {
    background: #f0f2f5;
    color: var(--text-dark);
}

.post-options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    width: 150px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.post-option-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: background 0.2s;
}

.post-option-item:hover {
    background: #f0f2f5;
}

.post-option-item.delete {
    color: #e44258;
}

.post-option-item i {
    width: 20px;
    text-align: center;
}

.mini-player.active {
    transform: translateY(0);
    opacity: 1;
    display: block !important;
}

.mini-player-header {
    background: #f0f2f5;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.mini-player-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.mini-player-close {
    background: #e4e6eb;
    border: none;
    cursor: pointer;
    color: #050505;
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mini-player-close:hover {
    background: #d8dadf;
}

.mini-player-content {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
}

.mini-player-content video,
.mini-player-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Reaction System */
.reaction-wrapper {
    position: relative;
    display: inline-block;
}

.reaction-dock {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--card-white);
    border-radius: 50px;
    padding: 6px 10px;
    box-shadow: 0 4px 12px var(--shadow);
    display: none;
    gap: 8px;
    z-index: 100;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    white-space: nowrap;
}

/* Bridge gap between button and dock */
.reaction-dock::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Wrapper Hover Logic */
.reaction-wrapper:hover .reaction-dock,
.reaction-dock:hover {
    display: flex !important;
}

@keyframes slideUp {
    0% {
        transform: translateY(10px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.reaction-emoji {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    user-select: none;
    position: relative;
}

.reaction-emoji:hover::after {
    content: attr(data-name);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    z-index: 1000;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Reaction System */
/* ... existing styles ... */

/* Privacy Selector */
.privacy-selector {
    background: #e4e6eb;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 0.2s;
}

.privacy-selector:hover {
    background: #d8dadf;
}

.privacy-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-white);
    box-shadow: 0 12px 28px 0 var(--shadow), 0 2px 4px 0 var(--shadow);
    border-radius: 8px;
    width: 300px;
    display: none;
    padding: 8px;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--border-light);
}

.privacy-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.privacy-option:hover {
    background: #f0f2f5;
}

.privacy-option i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #1c1e21;
}

.privacy-title {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
}

.privacy-desc {
    font-size: 13px;
    color: #65676b;
}

/* Friend Selection Modal */
.friend-checker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #f0f2f5;
}

.friend-checker-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Upload Progress Ring */
.progress-ring__circle {
    stroke-dasharray: 326.72;
    /* 2 * PI * r (52) */
    stroke-dashoffset: 326.72;
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
}

.btn-reacted-like {
    color: #1877f2 !important;
    font-weight: 600;
}

.btn-reacted-love {
    color: #f63459 !important;
    font-weight: 600;
}

.btn-reacted-haha {
    color: #f7b928 !important;
    font-weight: 600;
}

.btn-reacted-wow {
    color: #f7b928 !important;
    font-weight: 600;
}

.btn-reacted-sad {
    color: #f7b928 !important;
    font-weight: 600;
}

.btn-reacted-angry {
    color: #e44258 !important;
    font-weight: 600;
}

/* Consolidated Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

[data-theme='dark'] .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.modal-container {
    background: var(--card-white);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 12px 28px var(--shadow);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border: 1px solid var(--border-light);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-white);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: #e4e6eb;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #d8dadf;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid #e4e6eb;
}

.history-item:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 12px;
    color: #65676b;
    margin-bottom: 4px;
}

.history-content {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Profile Page Styles */
.profile-header-card {
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-cover {
    width: 100%;
    height: 350px;
    background-color: #f0f2f5;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 8px 8px;
}

.profile-header-inner {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -84px;
    /* Move down: 50/50 overlap */
    z-index: 10;
    flex-shrink: 0;
}

.profile-big-avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    display: block;
    background: white;
}

/* Adjust logic: Avatar will overlap bottom of cover */
/* We need a container relative to header-card, but cover is inside. */

.profile-info-main {
    flex: 1;
    padding-bottom: 0;
}

.profile-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    min-height: 80px;
}

.profile-action-btn.btn-secondary {
    background: var(--input-bg);
    color: var(--text-dark);
}

.profile-action-btn.btn-secondary:hover {
    background: var(--hover-gray);
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 15px;
    color: var(--text-muted);
}

.profile-action-btn {
    padding: 0 12px;
    height: 36px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-message,
.btn-poke,
.btn-more {
    background: var(--input-bg);
    color: var(--text-dark);
    transition: background 0.2s, transform 0.1s;
}

.btn-message:hover,
.btn-poke:hover,
.btn-more:hover {
    background: var(--hover-gray);
    transform: translateY(-1px);
}

.btn-message:active,
.btn-poke:active,
.btn-more:active {
    transform: translateY(0);
}

.btn-message i {
    font-size: 14px;
}

.profile-nav {
    display: flex;
    gap: 4px;
    margin-top: 0;
}

/* Actually typically Nav is full width below everything */
.profile-nav-container {
    border-top: 1px solid #ced0d4;
    margin-top: 10px;
    padding: 0 20px;
}

.profile-nav {
    display: flex;
    gap: 4px;
    max-width: 1050px;
    margin: 0 auto;
}

.nav-item {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    user-select: none;
}

.nav-item.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.nav-item:hover {
    background: #f2f2f2;
    border-radius: 6px;
    border-bottom-color: transparent;
    /* Unless active */
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    /* Main Feed, Sidebar */
    gap: 20px;
    align-items: start;
}

/* Profile About Tab Styles Enhanced */
.about-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 500px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--border-light);
}

.about-sidebar {
    width: 300px;
    border-right: 1px solid var(--border-light);
    padding: 16px 0;
    flex-shrink: 0;
    background: #fff;
}

.about-sidebar-title {
    padding: 0 16px 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.about-nav-item {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 8px;
    border-radius: 6px;
}

.about-nav-item:hover {
    background: var(--hover-gray);
    color: var(--text-dark);
}

.about-nav-item.active {
    color: var(--primary-blue);
    background: #ebf5ff;
}

.about-content {
    flex: 1;
    padding: 24px;
    background: #fff;
}

.about-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
}

.about-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.about-info-icon {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8c939d;
    font-size: 20px;
    background: #f0f2f5;
    border-radius: 50%;
}

.about-info-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.about-info-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
}

.about-info-text span {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
}

.add-info-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 16px;
}

.add-info-btn:hover {
    background: #ebf5ff;
    text-decoration: underline;
}

.add-info-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }

    .about-sidebar-title {
        display: none;
    }

    .about-nav-item {
        white-space: nowrap;
        padding: 8px 12px;
        margin: 0 4px;
    }

    .about-content {
        padding: 16px;
    }
}

/* Sidebar Specifics */
.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
    padding-bottom: 8px;
}

.profile-summary-info {
    padding: 12px 16px 16px;
}

.profile-summary-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-summary-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.widget-header {
    padding: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    /* Header usually plain */
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    /* Or white bg */
    background: white;
    padding: 16px;
}

.strip-photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

.about-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 15px;
}

.reaction-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-light);
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.reaction-tabs::-webkit-scrollbar {
    display: none;
}

.reaction-tab-item {
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.reaction-tab-item:hover {
    background: var(--hover-gray);
}

.reaction-tab-item.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    color: var(--text-dark);
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-body {
    padding: 16px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Videos Tab Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 8px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: transform 0.2s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    border: 2px solid #fff;
}

.video-info {
    padding: 12px;
}

.video-title {
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    /* Added for standard compatibility */
    overflow: hidden;
}

.floating-reaction-optimistic {
    display: inline-block;
    animation: storyReactionPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes storyReactionPop {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.5) translateY(-20px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Fix for line-clamp lint */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* Added for compatibility */
    line-clamp: 2;
    overflow: hidden;
}

.video-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Multi-Entry Layout Styles (Work/Education) */
.multi-entry-item {
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    position: relative;
}

.multi-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.btn-remove-entry {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
}

.btn-remove-entry:hover {
    background: rgba(220, 53, 69, 0.1);
}

.entry-date-range {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.entry-date-group {
    flex: 1;
}

.entry-date-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.entry-date-group input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.is-current-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dark);
}

.btn-add-another {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 14px;
}

.btn-add-another:hover {
    text-decoration: underline;
}

/* Autocomplete Styles */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #1c1e21;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover {
    background: #f0f2f5;
}

.autocomplete-item i {
    color: #65676b;
    font-size: 14px;
}

.autocomplete-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Profile Photo Upload Styles */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #e4e6eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #050505;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
    z-index: 5;
}

.avatar-upload-btn:hover {
    background: #d8dadf;
}

.profile-cover-wrapper {
    position: relative;
    width: 100%;
}

.cover-upload-btn {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #050505;
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: background 0.2s;
    z-index: 5;
}

.cover-upload-btn:hover {
    background: #fff;
}

.upload-hidden {
    display: none;
}

.uploading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.uploading-overlay i {
    color: var(--primary-blue);
    font-size: 24px;
}

/* Photos Sidebar Widget & Albums Styles */
.photos-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-photo-item {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.2s;
}

.sidebar-photo-item:hover {
    filter: brightness(0.9);
}

.albums-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.btn-create-album {
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    background: none;
    border: none;
}

.btn-create-album:hover {
    text-decoration: underline;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.album-card {
    cursor: pointer;
}

.album-cover-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 8px;
    position: relative;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    padding: 0 4px;
}

.album-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-count {
    font-size: 13px;
    color: var(--text-muted);
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-menu-btn img {
    display: inline-block;
    vertical-align: middle;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 44px;
    background: var(--card-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 16px var(--shadow);
    border-radius: 8px;
    min-width: 250px;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
}

.dropdown-link:hover {
    background-color: var(--hover-gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 8px;
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.dropdown-user-handle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    right: 0px;
    top: 50px;
    width: 360px;
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.notification-item:hover {
    background: #f7f7f7;
}

.notification-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.notification-item .content {
    flex: 1;
}

.notification-item .content p {
    margin: 0;
    font-size: 14px;
}

.notification-item .content span {
    font-size: 12px;
    color: #888;
}

/* Friend Request Notification Actions */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding: 0 4px;
}

.notif-action-btn {
    flex: 1;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.notif-action-btn.accept {
    background: var(--primary-blue);
    color: white;
}

.notif-action-btn.accept:hover {
    background: var(--primary-blue-dark);
}

.notif-action-btn.reject {
    background: var(--hover-gray);
    color: var(--text-dark);
}

.notif-action-btn.reject:hover {
    background: #e4e6eb;
}

.notif-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[data-theme='dark'] .notif-action-btn.reject {
    background: var(--hover-gray) !important;
    color: var(--text-dark) !important;
}

[data-theme='dark'] .notif-action-btn.reject:hover {
    background: #4a4b4c !important;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: #fa3e3e;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary-blue);
    pointer-events: none;
}

.notification-item.unread {
    background: #ebf5ff;
}

.notification-item.unread:hover {
    background: #e1efff;
}

.unread-dot {
    width: 12px;
    height: 12px;
    background: #1877f2;
    border-radius: 50%;
    margin-left: 8px;
}

.notification-type-icon {
    position: absolute;
    bottom: -2px;
    right: 8px;
    background: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.notification-footer {
    padding: 8px 16px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.notification-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Notification Story Rings */
.avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Size Variants */
.avatar-wrapper.avatar-sm .story-ring img {
    width: 32px;
    height: 32px;
}

.avatar-wrapper.avatar-md .story-ring img {
    width: 40px;
    height: 40px;
}

.avatar-wrapper.avatar-lg .story-ring img {
    width: 56px;
    height: 56px;
}

.avatar-wrapper.avatar-xl .story-ring img {
    width: 120px;
    height: 120px;
}

.story-ring {
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s ease;
}

.story-ring.active {
    border-color: #0084ff;
    padding: 2px;
    cursor: pointer;
}

.story-ring.viewed {
    border-color: #e4e6eb;
    padding: 2px;
    cursor: pointer;
}

.story-ring.active:hover,
.story-ring.viewed:hover {
    transform: scale(1.05);
}

.story-ring img {
    border-radius: 50%;
    object-fit: cover;
}

/* Interactive Comments Styles */
.comment-actions {
    display: flex;
    gap: 12px;
    margin-left: 12px;
    margin-top: 4px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.comment-action-btn:hover {
    text-decoration: underline;
}

.comment-action-btn.active {
    color: var(--primary-blue);
}

.comment-replies {
    margin-left: 40px;
    margin-top: 8px;
    border-left: 2px solid var(--border-light);
    padding-left: 12px;
}

.comment-reaction-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: -10px;
    margin-left: 10px;
    z-index: 10;
    position: relative;
}

.comment-input-row.reply-mode {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 15px;
}

/* Detailed Comment Styles - Fix for Avatar Sizing */
img.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

img.avatar-md {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

img.avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-bubble {
    background: var(--bg-gray);
    padding: 8px 12px;
    border-radius: 18px;
    max-width: fit-content;
    /* Ensure long words break */
    word-wrap: break-word;
    word-break: break-word;
}

/* Ensure comment content takes remaining space */
.comment-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Comment Reaction Picker */
.comment-reaction-picker {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    white-space: nowrap;
    border: 1px solid var(--border-light);
    animation: fadeIn 0.2s ease-out;
}

.reaction-trigger-container:hover .comment-reaction-picker {
    display: flex;
    gap: 8px;
}

.comment-reaction-picker span {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.comment-reaction-picker span:hover {
    transform: scale(1.3);
}

.reaction-trigger-container {
    position: relative;
}

/* Enhancements for nested replies */
.comment-item-reply {
    margin-top: 8px;
}

/* Recursive Comment Styling */
.comment-thread {
    margin-bottom: 8px;
}

.comment-replies {
    margin-left: 24px;
    border-left: 2px solid var(--border-light);
    padding-left: 12px;
    margin-top: 8px;
}

.comment-item {
    position: relative;
}

/* Optional: Connecting curve for replies */
/* Friends Tab */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.friend-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.friend-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.friend-card-content {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.friend-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.friend-info {
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.friend-mutual {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
}

/* Birthday Widget */
.birthday-widget {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f6 100%);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    color: #4a4a4a;
    overflow: hidden;
    border: 1px solid #ffe3e3;
}

.birthday-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ffe3e3;
    background: rgba(255, 255, 255, 0.5);
}

.birthday-header i {
    font-size: 20px;
    color: #ff4d6d;
}

.birthday-header span {
    font-weight: 700;
    font-size: 15px;
    color: #1c1e21;
}

.birthday-body {
    padding: 12px 16px;
}

.birthday-friend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    padding: 4px;
    border-radius: 8px;
}

.birthday-friend:hover {
    background: rgba(255, 255, 255, 0.8);
}

.birthday-friend:last-child {
    margin-bottom: 0;
}

.birthday-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.birthday-info {
    flex: 1;
}

.birthday-name {
    font-weight: 600;
    font-size: 14px;
    display: block;
    color: #1c1e21;
}

.birthday-text {
    font-size: 12px;
    color: #65676b;
}

.birthday-wish-btn {
    background: #ff4d6d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.birthday-wish-btn:hover {
    background: #e91e63;
    transform: translateY(-1px);
}

/* Profile Dropdown Menu */
.profile-action-btn-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--card-white, white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
    padding: 8px 0;
}

.dropdown-menu.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #1c1e21;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: #f2f3f5;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #65676b;
    font-size: 16px;
}

.dropdown-item.danger {
    color: #f02849;
}

.dropdown-item.danger i {
    color: #f02849;
}

.dropdown-divider {
    height: 1px;
    background: #e4e6eb;
    margin: 4px 0;
}

/* Advanced Widgets Styles */
.widget-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    transition: background 0.2s;
}

.widget-header:hover {
    background: #f0f2f5;
}

.widget-header h3,
.widget-header .widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.widget-toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.widget-collapsed .widget-toggle-icon {
    transform: rotate(-90deg);
}

.widget-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 1;
}

.widget-collapsed .widget-content {
    max-height: 0;
    opacity: 0;
}

/* Calculator Style */
.calc-container {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-display {
    grid-column: span 4;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    min-height: 44px;
    word-break: break-all;
}

.calc-btn {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.calc-btn:hover {
    background: #e4e6eb;
}

.calc-btn.op {
    background: #f0f7ff;
    color: var(--primary-blue);
}

.calc-btn.eq {
    background: var(--primary-blue);
    color: #fff;
}

/* Currency Style */
.currency-container {
    padding: 15px;
}

.currency-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.currency-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.currency-select {
    width: 80px;
    padding: 8px;
    /* ensure emoji flags are displayed */
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

/* Select2 dropdown/rendered text should also support emoji */
.select2-container .select2-selection__rendered,
.select2-dropdown .select2-results__option {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif !important;
}



/* Financial Items */
.fin-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f2f5;
}

.fin-item:last-child {
    border-bottom: none;
}

.price-up {
    color: #31a24c;
}

.price-down {
    color: #f3425f;
}

/* Match Row */
.match-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f2f5;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.match-score {
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.match-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Theatre Mode (Lightbox) */
#theatre-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#theatre-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

#theatre-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#theatre-content img,
#theatre-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

#theatre-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 100000;
}

#theatre-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 8px;
    margin-top: 10px;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================ */
/* FACEBOOK-LIKE FIXED LAYOUT (FORCE PRECEDENCE) */
/* ============================================ */

@media (min-width: 769px) {
    .modern-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1100 !important;
        height: 56px !important;
    }

    .main-grid {
        display: block !important;
        margin-top: 56px !important;
        padding: 16px 0 !important;
        position: relative !important;
    }

    .center-feed {
        margin: 0 320px !important;
    }

    .left-sidebar {
        position: fixed !important;
        top: 56px !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 300px !important;
        overflow-y: auto !important;
        padding: 16px !important;
        scrollbar-width: none;
        /* Firefox */
    }

    .right-sidebar {
        position: fixed !important;
        top: 56px !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 300px !important;
        overflow-y: auto !important;
        padding: 16px !important;
        scrollbar-width: none;
        /* Firefox */
    }
}

@media (max-width: 768px) {
    .modern-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1100 !important;
        height: auto !important;
    }

    .main-grid,
    .friends-page-container,
    .marketplace-container,
    .messenger-container {
        margin-top: 100px !important;
        /* Account for 2-row mobile header approx 94px */
    }
}

.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    display: none !important;
}

.left-sidebar:hover,
.right-sidebar:hover {
    scrollbar-width: thin !important;
}

.left-sidebar:hover::-webkit-scrollbar,
.right-sidebar:hover::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
}

/* Responsive Overrides (Force) */
@media (max-width: 1100px) {
    .right-sidebar {
        display: none !important;
    }

    .center-feed {
        margin-right: 0 !important;
    }
}

@media (max-width: 800px) {
    .left-sidebar {
        display: none !important;
    }

    .center-feed {
        margin-left: 0 !important;
    }
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #1877f2;
}

input:focus+.slider {
    box-shadow: 0 0 1px #1877f2;
}

input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Story Creator Styles */
.story-creator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.story-creator-container {
    display: flex;
    height: 100%;
}

.story-creator-sidebar {
    width: 360px;
    background: #ffffff;
    color: #1c1e21;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e4e6eb;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-logo-small {
    width: 40px;
    height: 40px;
}

.circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e4e6eb;
    color: #1c1e21;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.circle-btn:hover {
    background: #d8dadf;
}

.sidebar-content {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.settings-btn {
    background: #e4e6eb;
    border: none;
    color: #1c1e21;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.user-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-small {
    font-weight: 600;
    font-size: 16px;
}

.creator-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    background: transparent;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1c1e21;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    width: 100%;
}

.action-item:hover {
    background: #f0f2f5;
}

.action-icon {
    width: 44px;
    height: 44px;
    background: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1c1e21;
}

.sidebar-footer {
    padding: 16px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e4e6eb;
}

.story-creator-sidebar .btn-secondary {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #e4e6eb;
    color: #1c1e21;
    font-weight: 600;
    cursor: pointer;
}

.story-creator-sidebar .btn-primary {
    flex: 2;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #1877f2;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.story-creator-sidebar .btn-primary:disabled {
    background: #505151;
    color: #8a8d91;
    cursor: not-allowed;
}

.story-creator-preview {
    flex: 1;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 12px 20px;
    color: #1c1e21;
    font-weight: 600;
    font-size: 14px;
}

.preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    position: relative;
    margin: 20px;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
}

.preview-frame-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9/16;
    background: #f0f2f5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.7);
    transform: scale(1.2);
}

.preview-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.text-overlay {
    position: absolute;
    padding: 20px;
    color: white;
    font-weight: 700;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: move;
    user-select: none;
    text-align: center;
    width: 100%;
    z-index: 10;
}

.preview-footer-hint {
    margin-top: 16px;
    color: #b0b3b8;
    font-size: 14px;
}

#story-text-input {
    width: 100%;
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #1c1e21;
    padding: 12px;
    min-height: 100px;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 12px;
}

.font-selector select {
    width: 100%;
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #1c1e21;
    padding: 10px;
    font-weight: 600;
}

/* Messenger Dropdown Styles */
.messenger-dropdown-container {
    right: -10px;
    width: 360px;
}

.messenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messenger-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.messenger-header-actions button {
    background: #e4e6eb;
    border: none;
    color: #050505;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.messenger-header-actions button:hover {
    background: #d8dadf;
}

.messenger-search-container {
    padding: 8px 16px;
}

.messenger-search-box {
    background: #f0f2f5;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.messenger-search-box i {
    color: #65676b;
    font-size: 14px;
}

.messenger-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #1c1e21;
}

.messenger-list {
    max-height: 400px;
    overflow-y: auto;
}

.messenger-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.messenger-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #1c1e21;
    border-radius: 8px;
    margin: 0 8px;
    transition: background 0.2s;
    position: relative;
    cursor: pointer;
}

.messenger-item:hover {
    background: #f0f2f5;
}

.messenger-item.pinned-ai {
    background: rgba(106, 17, 203, 0.03);
}

.messenger-item.pinned-ai:hover {
    background: rgba(106, 17, 203, 0.06);
}

.ai-badge-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .ai-badge-dot {
    border-color: #242526;
}

.messenger-item .avatar-wrapper {
    margin-right: 12px;
    flex-shrink: 0;
}

.messenger-item-content {
    flex: 1;
    overflow: hidden;
}

.messenger-item-name {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-item-preview {
    font-size: 13px;
    color: #65676b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.messenger-item.unread .messenger-item-name {
    font-weight: 700;
}

.messenger-item.unread .messenger-item-preview {
    font-weight: 700;
    color: var(--primary-blue);
}

.messenger-unread-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .messenger-dropdown-container {
        position: fixed;
        top: 60px;
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        border-radius: 0;
        box-shadow: none;
    }
}

/* Sticker Picker Styles */
.sticker-modal {
    max-width: 450px !important;
}

.sticker-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.category-chip {
    padding: 6px 12px;
    background: var(--input-bg);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    color: var(--text-dark);
}

.category-chip.active {
    background: var(--primary-blue);
    color: white;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 4px;
}

.sticker-picker-item {
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-picker-item:hover {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    background: var(--hover-gray);
}

.sticker-picker-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cw-message .sticker-msg img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cw-message.sent .sticker-msg,
.cw-message.received .sticker-msg {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Image Filter Styles */
.filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: #ced0d4;
    border-radius: 10px;
}

.filter-chip {
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 12px;
}

.filter-chip:hover {
    background: #f0f2f5;
}

.filter-chip.active span {
    color: var(--primary-blue);
    font-weight: 700;
}

.filter-preview {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.filter-chip:hover .filter-preview {
    transform: scale(1.05);
}

/* Create Dropdown Custom Styling */
#create-dropdown {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#create-dropdown .notification-item {
    transition: all 0.2s ease;
    border-bottom: none;
}

#create-dropdown .notification-item:hover {
    background: var(--hover-gray);
    transform: translateX(5px);
}

/* Mobile Create Button in Header */
.mobile-icon-btn#mobile-create-btn {
    color: var(--primary-blue);
    font-size: 22px;
}

[data-theme='dark'] #create-dropdown .search-icon-circle {
    background: #3a3b3c !important;
    color: #e4e6eb !important;
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    #create-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* --- Profile Mobile Optimization --- */
.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.profile-name-meta {
    width: 100%;
    margin-top: 20px;
}

.profile-meta-details {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-dark);
}

.founder-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    margin-left: 5px;
}

.prof-category {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.prof-category i {
    margin-right: 6px;
}

.follower-stats {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.professional-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[dir="rtl"] .prof-category i {
    margin-right: 0;
    margin-left: 6px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    align-self: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-friend {
    background: var(--primary-blue) !important;
    color: white !important;
    border: none;
    padding: 0 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-prof-dash {
    text-decoration: none;
    height: 36px;
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

@media (max-width: 768px) {
    .profile-container {
        padding: 0;
    }

    .profile-header-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 16px !important;
    }

    .profile-cover {
        height: 200px !important;
    }

    .profile-avatar-wrapper {
        margin-top: -60px !important;
    }

    .profile-big-avatar {
        width: 120px !important;
        height: 120px !important;
        border-width: 3px !important;
    }

    .profile-name-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin-bottom: 24px !important;
    }

    .profile-name {
        font-size: 24px !important;
    }

    .profile-meta-details {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .header-stats {
        width: 100% !important;
        justify-content: center !important;
    }

    .profile-actions {
        width: 100% !important;
        justify-content: center !important;
        align-self: center !important;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
    }

    .profile-sidebar {
        order: 2 !important;
    }

    .profile-feed {
        order: 1 !important;
    }

    .profile-nav {
        overflow-x: auto !important;
        padding-bottom: 5px !important;
        scrollbar-width: none !important;
    }

    .profile-nav::-webkit-scrollbar {
        display: none !important;
    }

    .nav-item {
        white-space: nowrap !important;
        height: 50px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
    }
}

/* --- Further Profile Mobile Refinements --- */
@media (max-width: 480px) {
    .profile-name {
        font-size: 20px !important;
        word-break: break-word;
    }

    .founder-badge {
        font-size: 14px !important;
        margin-left: 0 !important;
        margin-top: 4px;
        display: inline-block;
    }

    .profile-meta-details,
    .header-stats,
    .professional-meta,
    .follower-stats {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .header-stats span,
    .follower-stats span {
        font-size: 13px !important;
    }

    .profile-avatar-wrapper {
        margin-top: -50px !important;
        margin-bottom: 10px !important;
    }

    .profile-big-avatar {
        width: 100px !important;
        height: 100px !important;
    }

    .profile-info-main {
        padding: 0 10px !important;
    }

    .profile-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .profile-action-btn {
        width: auto !important;
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
}

/* RTL specific mobile fixes */
[dir="rtl"] .profile-header-inner {
    flex-direction: column !important;
}

[dir="rtl"] .profile-name-meta {
    text-align: center !important;
}

/* --- Post Width Enhancements --- */
@media (max-width: 768px) {
    .profile-grid {
        padding: 12px 8px !important;
        /* Reduced from 16px */
    }

    .post-card,
    .create-post-card {
        max-width: 100% !important;
        border-radius: 8px !important;
        /* Keep slight radius for premium look */
    }
}

@media (max-width: 480px) {
    .profile-grid {
        padding: 8px 4px !important;
        /* Minimal padding on very small screens */
    }

    .post-card,
    .create-post-card {
        margin-bottom: 12px !important;
        border-radius: 0 !important;
        /* Full width look on mobile */
        border-left: none !important;
        border-right: none !important;
    }

    .post-header,
    .post-content,
    .post-actions,
    .comment-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .post-media {
        border-radius: 0 !important;
        /* Media takes full width */
    }
}

/* --- Newsfeed & Global Post Enhancements --- */
@media (max-width: 768px) {

    .main-grid,
    .center-feed {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 480px) {

    .main-grid,
    .center-feed {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .center-feed {
        margin: 0 !important;
    }

    .stories-container {
        padding: 12px 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }
}

/* --- Post Insights & UI Refinements --- */
.post-insights-bar {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(59, 130, 246, 0.05);
}

.boost-post-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.boost-post-btn:hover {
    background: var(--primary-blue-dark);
}

@media (max-width: 480px) {
    .post-insights-bar {
        padding: 10px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .boost-post-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 8px !important;
    }

    .reaction-dock {
        padding: 4px !important;
        gap: 4px !important;
    }

    .reaction-emoji {
        font-size: 20px !important;
    }
}

/* --- Mobile User Dropdown Refinements --- */
.mobile-user-dropdown {
    top: 100% !important;
    right: 0 !important;
    width: 240px !important;
    max-width: 90vw !important;
}

[dir="rtl"] .mobile-user-dropdown {
    right: auto !important;
    left: 0 !important;
}

.mobile-user-dropdown .dropdown-link {
    padding: 10px 16px !important;
    font-size: 14px !important;
}

.mobile-user-dropdown .dropdown-header {
    background: var(--hover-gray);
    padding: 10px 16px !important;
}

/* Mobile Search Bar */
.mobile-search-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: 0;
    padding: 0 16px !important;
    overflow: hidden;
}

.mobile-search-bar.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 100px;
    padding: 10px 16px !important;
}

.mobile-search-input:focus {
    background: var(--card-white) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Clickable Stats */
.header-stats span,
.follower-stats span {
    cursor: pointer;
    transition: color 0.2s;
}

.header-stats span:hover,
.follower-stats span:hover {
    color: var(--primary-blue);
}

.header-stats span:hover strong,
.follower-stats span:hover strong {
    text-decoration: underline;
}

/* User List Modal */
.user-list-container {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.user-item:last-child {
    border-bottom: none;
}

.user-item:hover {
    background: var(--hover-gray);
}

.user-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.user-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-item-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-item-username {
    font-size: 13px;
    color: var(--text-muted);
}

.user-item-mutual {
    font-size: 12px;
    color: var(--primary-blue);
    margin-top: 2px;
}