*{margin:0;padding:0;box-sizing:border-box}
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-modal: rgba(0,0,0,0.65);
    --text-primary: #262626;
    --text-secondary: #8e8e8e;
    --border-color: #dbdbdb;
    --border-light: #efefef;
    --accent-green: #22c55e;
    --accent-blue: #0095f6;
    --accent-red: #ed4956;
    --input-bg: #fafafa;
}
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-modal: rgba(0,0,0,0.85);
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --border-color: #363636;
    --border-light: #262626;
    --accent-green: #22c55e;
    --accent-blue: #0095f6;
    --accent-red: #ed4956;
    --input-bg: #262626;
}
body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
    background:var(--bg-primary);
    color:var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}
.navbar{
    background:var(--bg-secondary);
    border-bottom:1px solid var(--border-color);
    position:fixed;top:0;width:100%;z-index:1000;padding:8px 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-container{max-width:975px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:0 20px}
.nav-brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:bold;color:var(--text-primary);text-decoration:none}
.nav-brand i{color:var(--accent-green)}
.nav-menu{display:flex;align-items:center;gap:16px}
.btn-login,.btn-signup{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:600;font-size:14px}
.btn-login{background:transparent;color:var(--accent-blue)}
.btn-signup{background:var(--accent-blue);color:white}
.user-menu{display:none;align-items:center;gap:16px}
.earnings-badge{background:var(--accent-green);color:white;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:bold}
.admin-badge{background:#ef4444;color:white;padding:4px 8px;border-radius:8px;font-size:11px}
.theme-toggle{
    background:none;
    border:none;
    color:var(--text-primary);
    font-size:20px;
    cursor:pointer;
    padding:8px;
    border-radius:50%;
    transition:all 0.3s ease;
    display:flex;
    align-items:center;
    justify-content:center;
}
.btn-back {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-back:hover {
    background: var(--border-color);
}
.main-content{max-width:975px;margin:0 auto;padding:88px 20px 0;display:grid;grid-template-columns:1fr 320px;gap:35px}

.main-content.logged-in {
  margin-bottom: 80px;
    grid-template-columns: 1fr;
    gap: 0;
}
.photo-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    grid-template-rows:auto;
    gap:3px 3px;
    grid-gap:3px;
    line-height:0;
}
.photo-card{
    background:var(--bg-secondary);
    border:none;
    border-radius:0;
    overflow:hidden;
    position:relative;
    transition:background 0.3s ease;
    margin:0;
    padding:0;
    display:block;
}
.photo-image{
    width:100%;
    aspect-ratio:1;
    object-fit:cover;
    cursor:pointer;
    display:block;
    margin:0;
    padding:0;
    vertical-align:top;
    transition: opacity 0.2s ease;
}
.photo-image:hover{
    opacity:0.9;
}
.user-profile{
    background:var(--bg-secondary);
    padding:20px;
    border-radius:8px;
    border:1px solid var(--border-color);
    margin-bottom:20px;
    transition:all 0.3s ease;
}
.earning-info{
    background:var(--bg-secondary);
    border:1px solid var(--border-color);
    padding:16px;
    border-radius:8px;
    transition:all 0.3s ease;
}
.modal{display:none;position:fixed;z-index:2000;left:0;top:0;width:100%;height:100%;background-color:var(--bg-modal)}
.modal-content{
    background:var(--bg-secondary);
    margin:5% auto;
    border-radius:12px;
    width:90%;
    max-width:400px;
    position:relative;
    max-height:90vh;
    overflow-y:auto;
    transition:background 0.3s ease;
}
.modal-header{padding:32px 32px 24px;text-align:center;border-bottom:1px solid var(--border-color)}
.modal-body{padding:24px 32px 32px}
.form-input{
    width:100%;
    padding:12px;
    border:1px solid var(--border-color);
    border-radius:3px;
    background:var(--input-bg);
    color:var(--text-primary);
    font-size:14px;
    margin-bottom:16px;
    transition:all 0.3s ease;
}
.form-button{width:100%;padding:8px 16px;background:var(--accent-blue);color:white;border:none;border-radius:4px;font-weight:600;cursor:pointer}
.upload-area{
    border:2px dashed var(--border-color);
    padding:40px;
    text-align:center;
    cursor:pointer;
    border-radius:8px;
    margin-bottom:16px;
    transition:border-color 0.3s ease;
}
.upload-modal-content{max-width:600px;max-height:85vh;overflow-y:auto}
#imagePreview{display:none;max-height:300px;overflow:hidden}
#previewImage{max-width:100%;max-height:250px;object-fit:contain;border-radius:8px;display:block;margin:0 auto}
.profile-main {
    max-width: 975px;
    margin: 0 auto;
    padding: 88px 20px 0;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}
.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 16px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    line-height: 0;
}
.action-btn{background:none;border:none;cursor:pointer;font-size:24px;color:var(--text-primary);display:flex;align-items:center;gap:6px}
.action-btn.liked{cursor:default !important}
.action-btn.liked i{cursor:default !important}
.like-count{font-weight:300;font-size:14px;color:var(--text-primary)}
.action-btn i.fa-heart{
    color:var(--text-primary);
}
.action-btn i.fa-heart.fas{
    color:var(--accent-red) !important;
}
.admin-delete-post{position:absolute;top:10px;right:10px;background:rgba(239,68,68,0.9);color:white;border:none;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:12px;display:none}
.admin-delete-comment{background:rgba(239,68,68,0.8);color:white;border:none;padding:2px 6px;border-radius:3px;cursor:pointer;font-size:10px;position:absolute;right:5px;top:5px;display:none}
.logout-btn{
    background:none;
    border:none;
    cursor:pointer;
    color:var(--text-primary);
    font-size:14px;
    font-weight:500;
    padding:8px 12px;
    border-radius:4px;
    transition:all 0.3s ease;
}
.logout-btn:hover{
    background:var(--border-color);
    color:var(--text-primary);
}
.comment-username {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}
.comment-username:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
    .main-content{grid-template-columns:1fr;padding:88px 5px 0}
    .photo-grid{
        grid-template-columns:repeat(3,1fr);
        gap:2px 2px;
        grid-gap:2px;
        line-height:0;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    .profile-stats {
        justify-content: center;
        gap: 20px;
    }
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

.footer-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 20px;
        flex-direction: column;
    }

    .site-footer {
        padding: 30px 16px 20px;
        margin-top: 40px;
    }
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    line-height: 1.6;
}

.content-container h1 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.back-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.back-link:hover {
    opacity: 0.8;
}


.page-content a {
    color: var(--text-primary);
    text-decoration: none;
}

.page-content a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Email links should look like buttons */
.page-content a[href^="mailto:"] {
    background: var(--accent-blue);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 600;
    transition: background 0.2s ease;
}

.page-content a[href^="mailto:"]:hover {
    background: #1d4ed8;
    text-decoration: none !important;
}

/* Back links */
.back-link {
    color: var(--accent-blue) !important;
    text-decoration: none !important;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.back-link:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* Internal page links */
.page-content a[href^="/"]:not(.back-link) {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.page-content a[href^="/"]:not(.back-link):hover {
    text-decoration: underline;
}

.blurred-image {
    filter: blur(8px);
    transition: filter 0.3s ease;
    pointer-events: none; /* Disable all mouse events */
    user-select: none; /* Prevent text selection */
}

.photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Prevent clicking on blurred images */
.photo-container:has(.blurred-image) {
    pointer-events: none;
    cursor: default;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    border-radius: 8px;
    pointer-events: none; /* Overlay doesn't interfere with anything */
}

.blur-overlay i {
    font-size: 24px;
    opacity: 0.9;
}

.blur-overlay span {
    font-size: 12px;
    opacity: 0.8;
}

/* Normal photo cards for logged-in users */
.photo-card:not(:has(.blurred-image)) {
    cursor: pointer;
}

.photo-card:not(:has(.blurred-image)):hover .photo-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 24px;
    margin-right: 12px;
    animation: spin 1s linear infinite;
}

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

.photo-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-image.loaded {
    opacity: 1;
}

.photo-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.end-of-posts {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.end-of-posts i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Bottom Navigation - Clean & Simple */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 60px;
}

.bottom-nav .nav-item:hover {
    transform: translateY(-2px);
}

/* Home icon - Blue when active */
.bottom-nav .nav-item#homeNavItem.active i {
    color: var(--accent-blue);
}

/* Upload icon - Always Green */
.bottom-nav .nav-item#uploadNavItem i {
    color: var(--accent-green);
}

/* Profile icon - Blue when active */
.bottom-nav .nav-item#profileNavItem.active i {
    color: var(--accent-blue);
}

/* Admin icon - Red when visible */
.bottom-nav .nav-item#adminNavItem i {
    color: var(--accent-red);
}

.bottom-nav .nav-item i {
    font-size: 32px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Active state for text */
.bottom-nav .nav-item.active span {
    color: var(--text-primary);
}

/* Dark theme adjustments */
[data-theme="dark"] .bottom-nav {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .bottom-nav {
        height: 65px;
        padding: 0 8px;
    }

    .bottom-nav .nav-item {
        padding: 6px 12px;
        min-width: 50px;
    }

    .bottom-nav .nav-item i {
        font-size: 30px;
    }

    .bottom-nav .nav-item span {
        font-size: 10px;
    }
}

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-modal: rgba(0,0,0,0.65);
    --text-primary: #262626;
    --text-secondary: #8e8e8e;
    --border-color: #dbdbdb;
    --border-light: #efefef;
    --accent-green: #22c55e;
    --accent-blue: #0095f6;
    --accent-red: #ed4956;
    --input-bg: #fafafa;
    --bg-hover: #f7f7f7;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-modal: rgba(0,0,0,0.85);
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --border-color: #363636;
    --border-light: #262626;
    --accent-green: #22c55e;
    --accent-blue: #0095f6;
    --accent-red: #ed4956;
    --input-bg: #262626;
    --bg-hover: #333333;
}

[data-theme="dark"] .bottom-nav {
    background: var(--bg-primary, #1a1a1a);
    border-top-color: var(--border-color, #333);
}

[data-theme="dark"] .user-info-bar {
    background: var(--bg-secondary, #262626);
    border-top-color: var(--border-color, #333);
}

[data-theme="dark"] .bottom-nav .nav-item:hover {
    background: var(--bg-hover, #333);
}

.bottom-nav {
    display: flex !important;
}

.user-info-bar {
    display: block !important;
}

/* Prevent flash of incorrect content */
.page-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-loaded {
    opacity: 1;
}

/* Hide guest sidebar by default, show only after JS loads */
#guestSidebar {
    display: none;
}

/* Show appropriate content only after login check */
.login-checked #guestSidebar.show-guest {
    display: block;
}

.login-checked .main-content.logged-in #guestSidebar {
    display: none !important;
}

.photo-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
    min-height: 200px; /* Prevent collapse */
}

.photo-image:not([src]) {
    background: #f0f0f0;
    min-height: 200px;
}

/* Ensure proper aspect ratio for profile grid */
.posts-grid .photo-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Hide profile content until loaded */
.profile-main.loading .profile-header,
.profile-main.loading .profile-posts {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-main.loaded .profile-header,
.profile-main.loaded .profile-posts {
    opacity: 1;
}

/* Show loading state for profile */
.profile-main.loading #loadingPosts {
    display: block !important;
}

.profile-main.loaded #loadingPosts {
    display: none !important;
}
/* Profile page with bottom nav spacing */
.profile-main.with-bottom-nav {
    margin-bottom: 80px;
}

/* Mobile adjustments for profile page */
@media (max-width: 768px) {
    .profile-main {
        padding: 88px 10px 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .profile-header #profileAvatar {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .profile-stats {
        justify-content: center;
        gap: 20px;
    }
}

photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
    line-height: 0;
    max-width: 100%;
}

.photo-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    transition: opacity 0.2s ease, transform 0.3s ease;
    border-radius: 4px;
}

.photo-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Mobile responsive - smaller on mobile */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
}

/* Profile page thumbnails */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    line-height: 0;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--accent-white);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

/* Enhanced Notification Panel */
.notification-panel {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    max-height: 400px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mark-all-read {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mark-all-read:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.mark-all-read:active {
    transform: translateY(0);
}

.close-notifications {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notifications:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInNotificationItem 0.2s ease-out;
}

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

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(0, 149, 246, 0.05);
    border-left: 3px solid var(--accent-blue);
}

.notification-item.unread:hover {
    background: rgba(0, 149, 246, 0.1);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-item.unread .notification-text {
    font-weight: 600;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-loading, .loading-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 32px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.mark-all-read-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mark-all-read-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.mark-all-read-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .notification-panel {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] .notification-header,
[data-theme="dark"] .notification-footer {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Desktop override */
@media (min-width: 769px) {
    .notification-panel {
        position: fixed;
        top: 60px;
        right: 20px;
        bottom: auto;
        left: auto;
        width: 380px;
        max-width: calc(100vw - 40px);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        animation: slideInNotifications 0.3s ease-out;
    }

    @keyframes slideInNotifications {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 768px) {
    .notification-panel {
        max-height: 350px;
    }
    .notification-list {
        max-height: 250px;
    }
}

#notificationNavItem {
    display: none;
    position: relative;
}

.bottom-nav #notificationNavItem {
    display: none;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--accent-white);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.notification-close:active {
    transform: scale(0.95);
}

.notification-close i {
    font-size: 14px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.mention {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mention:hover {
    text-decoration: none;
    color: #0056b3;
}

.mention:visited {
    color: #007bff;
}

.search-results {
    display: none;
}

.search-item:hover {
    background-color: var(--bg-secondary);
}

.search-container input:focus {
    border-color: #007bff;
}

.messages-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 20px 0;
    min-height: calc(100vh - 88px);
    transition: all 0.3s ease;
}

.messages-main.loading {
    opacity: 0.6;
}

.messages-main.loaded {
    opacity: 1;
}

.messages-layout-container {
    display: flex;
    height: calc(100vh - 200px);
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.conversations-sidebar {
    width: 350px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.conversations-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    min-height: 100%;
}

.no-conversation-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg-primary);
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 16px 20px 16px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.conversation-main {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.conversation-item:hover {
    background: var(--bg-secondary);
}

.conversation-item.active {
    background: rgba(0, 123, 255, 0.1);
    border-left: 3px solid var(--accent-blue);
}

.conversation-item.unread {
    background: rgba(0, 123, 255, 0.05);
    font-weight: 600;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

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

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.conversation-username {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.conversation-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.conversation-preview {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.unread-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-blue);
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 16px;
}

.chat-user-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.user-status {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-primary);
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: 75%;
}

.own-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.other-message {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.own-message .message-bubble {
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 6px;
}

.other-message .message-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
    border: 1px solid var(--border-light);
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 4px;
}

.own-message .message-time {
    text-align: left;
}

.message-input-area {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.message-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-input-container input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 15px;
    color: var(--text-primary);
    padding: 8px 0;
}

.send-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.send-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.no-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
}

.no-conversations i {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-conversations h4 {
    font-size: 20px;
    margin: 0 0 8px;
    font-weight: 600;
}

.no-conversations p {
    font-size: 14px;
    margin: 0;
}

.delete-conversation-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(10px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.conversation-item:hover .delete-conversation-btn {
    opacity: 1;
    transform: translateX(0);
}

.delete-conversation-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.delete-conversation-btn:active {
    transform: scale(0.95);
}

.conversation-item.deleting {
    opacity: 0.5;
    transform: translateX(-20px);
}

@media (max-width: 768px) {
    .messages-main {
        padding: 88px 12px 0;
    }

    .messages-layout-container {
        height: calc(100vh - 220px);
        position: relative;
        overflow: hidden;
    }

    .conversations-sidebar {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        transition: transform 0.3s ease;
        background: var(--bg-primary);
    }

    .conversations-sidebar.mobile-hidden {
        transform: translateX(-100%);
    }

    .chat-area {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 3;
        background: var(--bg-primary);
        opacity: 0;
        visibility: hidden;
    }

    .chat-area.mobile-active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .back-to-conversations {
        display: flex !important;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 18px;
        padding: 8px;
        border-radius: 50%;
        cursor: pointer;
        margin-right: 12px;
        transition: all 0.2s ease;
    }

    .back-to-conversations:hover {
        background: var(--bg-secondary);
    }

    .delete-conversation-btn {
        opacity: 1;
        transform: translateX(0);
    }

    .conversation-item {
        padding: 14px 16px 14px 12px;
    }

    .message {
        max-width: 90%;
    }

    /* Ensure full width on mobile */
    .conversations-sidebar:not(.mobile-hidden) {
        width: 100% !important;
        flex: none;
    }

    .chat-area:not(.mobile-active) {
        width: 0 !important;
        flex: 0 !important;
        opacity: 0;
        visibility: hidden;
    }
}

@media (min-width: 769px) {
    .back-to-conversations {
        display: none !important;
    }

    /* Reset mobile styles on desktop */
    .conversations-sidebar {
        position: relative !important;
        transform: none !important;
        width: 350px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .chat-area {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex: 1 !important;
    }
}

@media (max-width: 768px) {
    .conversation-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        cursor: pointer;
        user-select: none;
        transition: all 0.1s ease;
    }

    .conversation-item:active {
        background: var(--bg-hover);
        transform: scale(0.98);
    }

    .conversation-main {
        pointer-events: none;
    }

    .delete-conversation-btn {
        pointer-events: auto;
    }
}

.message-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    border: 2px solid var(--bg-primary);
    z-index: 10;
    pointer-events: none;
}

.bottom-nav .nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 60px;
}

#messagesNavItem {
    position: relative;
}

#messagesNavItem .message-badge {
    position: absolute;
    top: 4px;
    right: 8px;
}

/* Modern Modal Styles - Matching PesoGram Theme */
.modern-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

[data-theme="dark"] .modern-modal {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modern-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

[data-theme="dark"] .modern-modal-header {
    border-bottom-color: var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-container i {
    font-size: 28px;
    color: var(--accent-green);
}

.logo-container h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.modern-modal-body {
    padding: 24px 32px 32px;
    background: var(--bg-secondary);
}

.input-group {
    margin-bottom: 16px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    z-index: 1;
    transition: color 0.3s ease;
}

.modern-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.modern-input:focus {
    border-color: var(--accent-green);
    background: var(--bg-secondary);
}

.modern-input:focus + .input-icon {
    color: var(--accent-green);
}

.modern-submit-btn {
    width: 100%;
    padding: 8px 16px;
    background: var(--accent-blue);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.modern-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

.signup-btn {
    background: var(--accent-green);
}

.signup-btn:hover {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.modal-footer {
    padding: 16px 32px 24px;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

.modal-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.switch-modal-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-modal-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .modern-input {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modern-input:focus {
    background: var(--bg-secondary);
    border-color: var(--accent-green);
}

[data-theme="dark"] .input-icon {
    color: var(--text-secondary);
}

[data-theme="dark"] .modern-input:focus + .input-icon {
    color: var(--accent-green);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .modern-modal {
        max-width: 95%;
        margin: 20px auto;
    }

    .modern-modal-header,
    .modern-modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo-container h2 {
        font-size: 22px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .modern-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Enhanced hover states for better UX */
.modern-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modern-submit-btn:disabled:hover {
    background: var(--accent-blue);
    transform: none;
    box-shadow: none;
}

/* Loading state */
.modern-submit-btn.loading {
    position: relative;
    color: transparent;
}

.modern-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modern-input:invalid {
    border-color: var(--accent-green);
}

.modern-input:invalid:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.modern-input:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.modern-submit-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
.form-input,
.modern-input,
#searchInput {
    font-size: 16px !important;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 3px;
}

#searchInput {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
}

.modern-input {
    font-size: 16px !important;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}

select, textarea, input {
    font-size: 16px;
    -webkit-appearance: none;
}

@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    .form-input,
    .modern-input {
        font-size: 16px !important;
        transform: translateZ(0);
        -webkit-user-select: text;
    }
}

@media screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
        -webkit-appearance: none;
        border-radius: 0;
    }

    .form-input,
    .modern-input {
        font-size: 16px !important;
        -webkit-appearance: none;
    }

    #searchInput {
        font-size: 16px !important;
        -webkit-appearance: none;
        -webkit-text-size-adjust: 100%;
    }
}

@media screen and (max-width: 768px) {
    input:focus,
    textarea:focus,
    select:focus {
        transform: scale(1);
        -webkit-transform: scale(1);
        transform-origin: center;
        -webkit-transform-origin: center;
    }
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-actions {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    align-items: center;
}

.btn-follow, .btn-message {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-follow {
    color: var(--accent-blue);
}

.btn-follow:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

.btn-follow.following {
    color: var(--accent-green);
}

.btn-follow.following:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.btn-message {
    color: var(--text-secondary);
}

.btn-message:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
    color: var(--text-primary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Bottom Nav Avatar */
.nav-avatar-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.2s ease;
    display: none;
}

.nav-avatar-fallback {
    font-size: 20px;
    display: block;
}

/* Show avatar when loaded, hide fallback */
.nav-avatar.loaded {
    display: block;
}

.nav-avatar.loaded + .nav-avatar-fallback {
    display: none;
}

.nav-item.active .nav-avatar {
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

.nav-item.active .nav-avatar-fallback {
    color: var(--accent-blue);
}

/* Hover effect */
.nav-item:hover .nav-avatar {
    transform: scale(1.1);
}

.google-signin-btn:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background: #fafafa;
    transform: translateY(-1px);
}

[data-theme="dark"] .google-signin-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .google-signin-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.divider hr {
    margin: 0;
}

[data-theme="dark"] .divider span {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

[data-theme="dark"] .divider hr {
    border-top-color: var(--border-color);
}

.hashtag {
    color: var(--accent-purple) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.hashtag:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* If you don't have accent-purple defined, add this too */
:root {
    --accent-purple: #8b5cf6;
}

[data-theme="dark"] {
    --accent-purple: #a78bfa;
}

.user-status {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.user-status.online {
    color: #10b981;
}

.user-status.online::before {
    content: "•";
    margin-right: 4px;
    font-size: 16px;
    color: #10b981;
}

.user-status.recently-active {
    color: #f59e0b;
}

.user-status.offline {
    color: var(--text-secondary);
}

.chat-user-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.chat-user-info h3 a {
    display: block;
}

@media (max-width: 768px) {
    .back-to-conversations {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-primary);
        padding: 8px;
        cursor: pointer;
        border-radius: 50%;
        margin-right: 12px;
        transition: background 0.2s ease;
    }

    .back-to-conversations:hover {
        background: var(--bg-hover);
    }
}
