* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f1854 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(1, 205, 254, 0.15) 2px, transparent 2px),
        linear-gradient(90deg, rgba(1, 205, 254, 0.15) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    transform: perspective(500px) rotateX(60deg);
    z-index: 0;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

/* Header - NEW POST far left, logo, gem center, nav right */
.header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF71CE, #01CDFE, #B967FF) 1;
    padding: 20px 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 40px rgba(1, 205, 254, 0.2);
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative;
    min-height: 90px;
}

/* Left section: NEW POST button FIRST, then Logo */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* Center section: Notification gem (absolute positioned in true center) */
.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
}

/* Right section: Navigation */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    flex: 1;
}

.logo {
    font-size: 2.5rem !important; /* BIGGER! */
    background: linear-gradient(90deg, #FF71CE 0%, #01CDFE 50%, #FFFD82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none !important; /* NO UNDERLINE! */
    line-height: 1; /* ALIGN WITH BUTTON */
}

.logo:hover {
    text-decoration: none !important; /* NO UNDERLINE ON HOVER! */
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* BIGGER PRETTIER BUTTONS - chaos core */
.nav-btn {
    background: linear-gradient(135deg, #FF71CE, #B967FF);
    border: none;
    padding: 14px 28px; /* BIGGER */
    color: #fff;
    text-decoration: none;
    font-size: 1rem; /* BIGGER */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    border-radius: 10px; /* ROUNDER */
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 113, 206, 0.3);
}

/* 🔥 SPECIAL NEW POST BUTTON - IMPOSSIBLE TO MISS! 🔥 */
.nav-btn.btn-new-post {
    background: linear-gradient(135deg, #05FFA1, #FFFD82) !important;
    color: #000 !important;
    font-size: 1.2rem !important;
    padding: 16px 32px !important;
    box-shadow: 
        0 0 30px rgba(5, 255, 161, 0.6),
        0 0 60px rgba(255, 253, 130, 0.4),
        0 4px 15px rgba(5, 255, 161, 0.5) !important;
    animation: post-button-pulse 2s ease-in-out infinite !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-btn.btn-new-post::before {
    content: '✨' !important;
    position: absolute !important;
    left: 10px !important;
    font-size: 1.2rem !important;
    animation: sparkle 1.5s ease-in-out infinite !important;
}

.nav-btn.btn-new-post::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    animation: shimmer 3s infinite !important;
}

@keyframes post-button-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(5, 255, 161, 0.6),
            0 0 60px rgba(255, 253, 130, 0.4),
            0 4px 15px rgba(5, 255, 161, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 40px rgba(5, 255, 161, 0.8),
            0 0 80px rgba(255, 253, 130, 0.6),
            0 6px 25px rgba(5, 255, 161, 0.7);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2) rotate(180deg);
    }
}

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

.nav-btn.btn-new-post:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: 
        0 0 50px rgba(5, 255, 161, 1),
        0 0 100px rgba(255, 253, 130, 0.8),
        0 10px 40px rgba(5, 255, 161, 0.8) !important;
}


.nav-btn:hover {
    transform: translateY(-3px) scale(1.05); /* MORE DRAMATIC */
    box-shadow: 0 8px 30px rgba(255, 113, 206, 0.8);
}

.like-btn, .comment-toggle-btn {
    background: rgba(255, 113, 206, 0.2);
    border: 2px solid #FF71CE; /* THICKER BORDER */
    color: #FF71CE;
    padding: 12px 24px; /* BIGGER */
    border-radius: 25px; /* MORE ROUND */
    cursor: pointer;
    font-size: 1.1em; /* BIGGER TEXT */
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 113, 206, 0.2);
}

.like-btn:hover, .comment-toggle-btn:hover {
    background: rgba(255, 113, 206, 0.4);
    transform: scale(1.1); /* BIGGER HOVER */
    box-shadow: 0 5px 20px rgba(255, 113, 206, 0.5);
}







/* Settings dropdown */
.settings-dropdown {
    z-index: 1000; /* Ensure container is above most content */
    position: relative;
}
.dropdown-content {
    z-index: 9001; /* Higher than any post/feed */
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(15, 15, 30, 0.95);
    border: 2px solid #FF71CE;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    display: none;
}

















.dropdown-content a {
    z-index: 1000; /* Ensure container is above most content */
    display: block;
    padding: 8px 16px;
    color: #FFFD82;
    text-decoration: none;
}
.dropdown-content a:hover {
    background: rgba(255, 113, 206, 0.2);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Notification circle */
.notification-circle {
    width: 45px;
    height: 45px;
    background: #05FFA1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(5, 255, 161, 0.5);
    font-weight: 900;
    font-size: 1.1rem;
    color: #000;
}

.notification-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(5, 255, 161, 0.8);
}

.notification-circle.has-notifications {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(5, 255, 161, 0.5); }
    50% { box-shadow: 0 0 40px rgba(5, 255, 161, 1); }
}

/* Feed layout */
.feed-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 20px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 25px; /* MATCH HEADER PADDING */
}

.sidebar, .main-feed {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar .section-header {
    font-size: 0.9rem;
    padding: 12px 15px;
}

.sidebar .section-header h2 {
    font-size: 1rem;
}

.sidebar .post-card {
    font-size: 0.9rem;
    padding: 15px;
}

.sidebar .post-content {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section headers */
.section-header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF71CE, #01CDFE, #B967FF) 1;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: #01CDFE;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header a {
    color: #FFFD82;
    text-decoration: none;
    font-size: 0.9rem;
}

.section-header a:hover {
    color: #FF71CE;
}

/* Filter toggle */
.filter-toggle {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: rgba(1, 205, 254, 0.2);
    border: 1px solid #01CDFE;
    color: #01CDFE;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
}

.filter-btn.active {
    background: #01CDFE;
    color: #000;
}

.filter-btn:hover {
    background: rgba(1, 205, 254, 0.3);
}

.no-posts {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF71CE, #01CDFE, #B967FF) 1;
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    /* Order the sections */
    .header-left {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .logo {
        text-align: center;
        font-size: 2rem !important;
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Hide NEW POST button from header-left on mobile */
    .header-left .btn-new-post {
        display: none !important;
    }
    
    /* Gem second */
    .header-center {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        order: 2;
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 10px 0;
    }
    
    /* Show NEW POST as separate full-width button after gem */
    /* Create it as a direct child of header in your HTML on mobile OR style differently */
    
    /* Navigation buttons last */
    .header-right {
        width: 100%;
        order: 4;
    }
    
    .header-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    /* All nav buttons full width */
    .nav-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        justify-content: center;
    }
    
    .settings-dropdown {
        width: 100%;
    }
    
    .settings-dropdown .nav-btn {
        width: 100%;
    }
    
    .container {
        padding: 0 10px;
    }
    
    body {
        padding: 10px;
    }
}









/* Profile Header */
.profile-header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF71CE, #01CDFE, #B967FF) 1;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-radius: 12px;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #01CDFE;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-username-large {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #FF71CE 0%, #01CDFE 50%, #FFFD82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 10px;
}

.profile-pronouns {
    color: #05FFA1;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-location {
    color: #01CDFE;
    font-size: 1rem;
    margin-bottom: 15px;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn-friend-action {
    background: linear-gradient(135deg, #01CDFE, #05FFA1);
    border: none;
    padding: 12px 24px;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-friend-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(1, 205, 254, 0.6);
}

.btn-friend-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-friend-action.btn-friends {
    background: linear-gradient(135deg, #05FFA1, #FFFD82);
}

/* Custom HTML Section */
.custom-html-section {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #B967FF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
}

/* Stats Card (in sidebar) */
.stats-header h2 {
    color: #05FFA1 !important;
}

.stats-card {
    background: rgba(5, 255, 161, 0.1);
    border: 2px solid #05FFA1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px rgba(5, 255, 161, 0.2);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #05FFA1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DM Placeholder */
.dm-placeholder {
    background: rgba(15, 15, 30, 0.95);
    border: 2px solid rgba(1, 205, 254, 0.3);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-username-large {
        font-size: 2rem;
    }
}







/* Profile Header */
.profile-header {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF71CE, #01CDFE, #B967FF) 1;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-radius: 12px;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #01CDFE;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-username-large {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #FF71CE 0%, #01CDFE 50%, #FFFD82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 10px;
}

.profile-pronouns {
    color: #05FFA1;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-location {
    color: #01CDFE;
    font-size: 1rem;
    margin-bottom: 15px;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn-friend-action {
    background: linear-gradient(135deg, #01CDFE, #05FFA1);
    border: none;
    padding: 12px 24px;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-friend-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(1, 205, 254, 0.6);
}

.btn-friend-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-friend-action.btn-friends {
    background: linear-gradient(135deg, #05FFA1, #FFFD82);
}

/* Custom HTML Section */
.custom-html-section {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #B967FF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
}

/* Stats Card (in sidebar) */
.stats-header h2 {
    color: #05FFA1 !important;
}

.stats-card {
    background: rgba(5, 255, 161, 0.1);
    border: 2px solid #05FFA1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px rgba(5, 255, 161, 0.2);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #05FFA1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DM Placeholder */
.dm-placeholder {
    background: rgba(15, 15, 30, 0.95);
    border: 2px solid rgba(1, 205, 254, 0.3);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-username-large {
        font-size: 2rem;
    }
}

.post-card {
    z-index: 1; /* Default or lower than dropdown */
}
.main-feed {
    z-index: 1; /* Default or lower than dropdown */
}


#postModal {
    backdrop-filter: blur(10px);
        animation: slideUp 0.3s;
}
.modal-post {
    max-width: 600px;
    width: 100%;
    background: rgba(15, 15, 30, 0.95);
    border: 2px solid #FF71CE;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(255, 113, 206, 0.4);
}




#postModalWrapper {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}



#postModalWrapper {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}
#postModal {
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes slideUp {
    to { transform: translateY(0); }
}
#closeModalBtn {
    transition: all 0.2s;
}
#closeModalBtn:hover {
    background: rgba(15, 15, 30, 0.8);
    color: #FF71CE;
}



/* In style.css - ADD THIS */
.settings-dropdown {
    position: relative;
    z-index: 10000 !important; /* OVER 9000!!!!! */
}

.dropdown-content {
    position: absolute;
    z-index: 10001 !important; /* Even MORE over 9000 */
    right: 0;
    top: calc(100% + 5px);
    background: rgba(15, 15, 30, 0.98);
    border: 2px solid #FF71CE;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 10px 50px rgba(255, 113, 206, 0.6);
}

/* Make sure nothing else interferes */
.post-card {
    z-index: 1 !important;
    position: relative;
}

.feed-layout {
    z-index: 1 !important;
}

.header {
    z-index: 100 !important;
    position: relative;
}






/* GLOWING SECTION HEADER BOX - Add this to assets/style.css */

.section-header-glow {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #FF71CE;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 113, 206, 0.4);
    text-align: center;
}

.section-header-glow h2 {
    color: #FF71CE;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Alternate cyan version */
.section-header-glow.cyan {
    border-color: #01CDFE;
    box-shadow: 0 0 30px rgba(1, 205, 254, 0.4);
}

.section-header-glow.cyan h2 {
    color: #01CDFE;
}

/* Alternate purple version */
.section-header-glow.purple {
    border-color: #B967FF;
    box-shadow: 0 0 30px rgba(185, 103, 255, 0.4);
}

.section-header-glow.purple h2 {
    color: #B967FF;
}

/* Alternate yellow version */
.section-header-glow.yellow {
    border-color: #FFFD82;
    box-shadow: 0 0 30px rgba(255, 253, 130, 0.4);
}

.section-header-glow.yellow h2 {
    color: #FFFD82;
}



























/* ============================================
   HEADER REDESIGN - Add this to the END of style.css
   ============================================ */

/* SUBTLE RAINBOW SHIMMER EFFECTS */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 113, 206, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(1, 205, 254, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(185, 103, 255, 0.03) 0%, transparent 50%);
    animation: rainbow-shift 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rainbow-shift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 26, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}


.header > .logo {
    font-size: 2.8rem !important;
    background: linear-gradient(90deg, #FF71CE 0%, #01CDFE 50%, #FFFD82 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.header > .logo:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.2) !important;
}

/* NOTIFICATION GEM - CENTER - GORGEOUS VERSION */
.notification-gem-container {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 101 !important;
    perspective: 1000px !important;
    pointer-events: auto !important; /* Make sure it's clickable */
}

.notification-gem {
    width: 70px !important;
    height: 70px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: transform 0.3s !important;
    animation: gem-rotate-3d 8s linear infinite !important;
    transform-style: preserve-3d !important;
    display: block !important;
    text-decoration: none !important;
    pointer-events: auto !important; /* Make sure link is clickable */
}

.notification-gem:hover {
    animation: gem-rotate-3d-fast 3s linear infinite !important;
}

.notification-gem:active {
    transform: scale(0.95) !important; /* Visual feedback on click */
}

/* Make sure all gem children allow clicks to pass through */
.gem-shape,
.gem-shape::before,
.gem-shape::after {
    pointer-events: none !important; /* Let clicks pass through to the link */
}

/* True 3D rotation animation */
@keyframes gem-rotate-3d {
    0% { 
        transform: rotateY(0deg) rotateX(10deg);
    }
    100% { 
        transform: rotateY(360deg) rotateX(10deg);
    }
}

@keyframes gem-rotate-3d-fast {
    0% { 
        transform: scale(1.15) rotateY(0deg) rotateX(10deg);
    }
    100% { 
        transform: scale(1.15) rotateY(360deg) rotateX(10deg);
    }
}

/* Beautiful 3D gem shape - SOLID DIAMOND WITH SIDES */
.gem-shape {
    width: 60px !important;
    height: 60px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transform-style: preserve-3d !important;
}

/* Top pyramid (pointing up) - BRIGHTER */
.gem-shape::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(15px) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 30px solid transparent !important;
    border-right: 30px solid transparent !important;
    border-bottom: 30px solid rgba(1, 205, 254, 0.85) !important;
    filter: brightness(1.4) drop-shadow(0 0 10px rgba(1, 205, 254, 0.6)) !important;
}

/* Bottom pyramid (pointing down) - DARKER */
.gem-shape::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(15px) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 30px solid transparent !important;
    border-right: 30px solid transparent !important;
    border-top: 30px solid rgba(1, 205, 254, 0.65) !important;
    filter: brightness(0.7) drop-shadow(0 0 8px rgba(1, 205, 254, 0.4)) !important;
}

/* Middle diamond body - THE KEY TO 3D! */
.notification-gem::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) translateZ(5px) !important;
    width: 45px !important;
    height: 15px !important;
    background: linear-gradient(90deg, 
        rgba(1, 205, 254, 0.4), 
        rgba(1, 205, 254, 0.9), 
        rgba(1, 205, 254, 0.4)
    ) !important;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%) !important;
    box-shadow: 
        inset 0 2px 6px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(1, 205, 254, 0.6),
        0 0 30px rgba(1, 205, 254, 0.3) !important;
}

/* Left side facet */
.notification-gem::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 20% !important;
    transform: translate(-50%, -50%) translateZ(3px) rotateY(-30deg) !important;
    width: 20px !important;
    height: 40px !important;
    background: linear-gradient(180deg, 
        rgba(1, 205, 254, 0.5),
        rgba(1, 205, 254, 0.7),
        rgba(1, 205, 254, 0.5)
    ) !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    filter: brightness(0.8) !important;
}

/* Active state - RAINBOW GLOW ON ALL FACETS! */
.notification-gem.active .gem-shape::before {
    border-bottom-color: rgba(255, 113, 206, 0.95) !important;
    filter: brightness(1.7) drop-shadow(0 0 20px #FF71CE) drop-shadow(0 0 35px #B967FF) !important;
    animation: gem-pulse-top 2s ease-in-out infinite !important;
}

.notification-gem.active .gem-shape::after {
    border-top-color: rgba(185, 103, 255, 0.95) !important;
    filter: brightness(1.3) drop-shadow(0 0 25px #B967FF) drop-shadow(0 0 40px #FF71CE) !important;
    animation: gem-pulse-bottom 2s ease-in-out infinite !important;
}

.notification-gem.active::before {
    background: linear-gradient(90deg, 
        rgba(255, 113, 206, 0.6), 
        rgba(185, 103, 255, 0.95), 
        rgba(255, 113, 206, 0.6)
    ) !important;
    box-shadow: 
        inset 0 2px 6px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(255, 113, 206, 0.4),
        0 0 25px rgba(255, 113, 206, 0.9),
        0 0 45px rgba(185, 103, 255, 0.6) !important;
    animation: gem-pulse-middle 2s ease-in-out infinite !important;
}

.notification-gem.active::after {
    background: linear-gradient(180deg, 
        rgba(255, 113, 206, 0.6),
        rgba(185, 103, 255, 0.8),
        rgba(255, 113, 206, 0.6)
    ) !important;
    filter: brightness(1.2) drop-shadow(0 0 15px #FF71CE) !important;
    animation: gem-pulse-side 2s ease-in-out infinite !important;
}

@keyframes gem-pulse-top {
    0%, 100% { 
        transform: translateX(-50%) translateZ(15px) scale(1);
        filter: brightness(1.7) drop-shadow(0 0 20px #FF71CE) drop-shadow(0 0 35px #B967FF);
    }
    50% { 
        transform: translateX(-50%) translateZ(20px) scale(1.1);
        filter: brightness(2) drop-shadow(0 0 30px #FF71CE) drop-shadow(0 0 55px #B967FF);
    }
}

@keyframes gem-pulse-bottom {
    0%, 100% { 
        transform: translateX(-50%) translateZ(15px) scale(1);
        filter: brightness(1.3) drop-shadow(0 0 25px #B967FF) drop-shadow(0 0 40px #FF71CE);
    }
    50% { 
        transform: translateX(-50%) translateZ(20px) scale(1.08);
        filter: brightness(1.6) drop-shadow(0 0 35px #B967FF) drop-shadow(0 0 55px #FF71CE);
    }
}

@keyframes gem-pulse-middle {
    0%, 100% {
        transform: translate(-50%, -50%) translateZ(5px) scale(1);
        box-shadow: 
            inset 0 2px 6px rgba(255, 255, 255, 0.6),
            inset 0 -2px 4px rgba(255, 113, 206, 0.4),
            0 0 25px rgba(255, 113, 206, 0.9),
            0 0 45px rgba(185, 103, 255, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) translateZ(10px) scale(1.1);
        box-shadow: 
            inset 0 2px 8px rgba(255, 255, 255, 0.8),
            inset 0 -2px 6px rgba(255, 113, 206, 0.6),
            0 0 35px rgba(255, 113, 206, 1),
            0 0 60px rgba(185, 103, 255, 0.8);
    }
}

@keyframes gem-pulse-side {
    0%, 100% {
        transform: translate(-50%, -50%) translateZ(3px) rotateY(-30deg) scale(1);
        filter: brightness(1.2) drop-shadow(0 0 15px #FF71CE);
    }
    50% {
        transform: translate(-50%, -50%) translateZ(6px) rotateY(-30deg) scale(1.05);
        filter: brightness(1.4) drop-shadow(0 0 25px #FF71CE);
    }
}

/* Notification count badge */
.gem-count {
    position: absolute !important;
    top: 0px !important;
    right: 5px !important;
    background: linear-gradient(135deg, #FF71CE, #B967FF) !important;
    color: #fff !important;
    border-radius: 50% !important;
    min-width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
    padding: 0 6px !important;
    border: 3px solid rgba(15, 15, 30, 0.9) !important;
    box-shadow: 0 3px 15px rgba(255, 113, 206, 0.8) !important;
    animation: badge-bounce 0.5s ease-out !important;
}

@keyframes badge-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}





/* MOBILE LAYOUT */
@media (max-width: 768px) {
    .container .header,
    div.container > div.header {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .header .logo,
    .header > .logo {
        font-size: 2rem !important;
        order: 1 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .notification-gem-container,
    div.notification-gem-container {
        position: static !important;
        transform: none !important;
        order: 2 !important;
    }
    
    .header-nav,
    .header > .header-nav {
        order: 3 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        margin-left: 0 !important;
    }
    
    .header-nav .nav-btn,
    .header-nav > .nav-btn {
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
    }
}

/* ========================================
   PROFILE PAGE STYLES - Z-INDEX FIXES
   (Added at end to override everything)
   ======================================== */

/* CRITICAL: Z-index layering for profile page */
/* NUCLEAR OPTION: Force custom HTML and ALL its children to stay below */
.custom-html-section,
.custom-html-section * {
    z-index: 1 !important; /* Lower than dropdown */
}

.custom-html-section {
    position: relative;
    isolation: isolate; /* Creates new stacking context */
}

/* Force ALL main content containers to stay below dropdown */
.feed-layout {
    position: relative;
    z-index: 1 !important;
}

.main-feed,
.main-feed *,
.sidebar {
    z-index: 1 !important;
}

.section-header-glow {
    position: relative;
    z-index: 1 !important;
}

.profile-header {
    position: relative;
    z-index: 50 !important; /* Higher than feed but lower than dropdown */
}

.profile-actions {
    position: relative;
    z-index: 10000 !important; /* Very high - part of header */
}

/* Friend action container - needs higher z-index */
.friend-action-container {
    position: relative;
    display: inline-block;
    z-index: 99999 !important; /* Super duper high */
}

/* Dropdown menu - NUCLEAR HIGHEST z-index but keep absolute positioning */
.friend-dropdown {
    position: absolute !important; /* Back to absolute so it positions correctly */
    top: calc(100% + 5px) !important;
    right: 0 !important;
    background: rgba(15, 15, 30, 0.98);
    border: 2px solid #FF71CE;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 999999 !important; /* ABSURDLY HIGH */
    box-shadow: 0 5px 25px rgba(255, 113, 206, 0.5);
}

.friend-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #FFFD82;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.friend-dropdown-item:hover {
    background: rgba(255, 113, 206, 0.2);
}

.friend-dropdown-item.danger {
    color: #ff6b7a;
}

.friend-dropdown-item.danger:hover {
    background: rgba(255, 0, 0, 0.2);
}

/* DM Button styling */
.btn-dm {
    background: linear-gradient(135deg, #B967FF, #FF71CE) !important;
}

.btn-dm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(185, 103, 255, 0.6);
}

.btn-accept {
    background: linear-gradient(135deg, #05FFA1, #FFFD82) !important;
    color: #000 !important;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(5, 255, 161, 0.6);
}

.btn-reject {
    background: linear-gradient(135deg, #ff6b7a, #ff4757) !important;
    color: #fff !important;
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 107, 122, 0.6);
}

/* Quick Actions DM Button */
.dm-quick-action {
    padding: 0;
}

.dm-quick-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #01CDFE, #05FFA1);
    border: none;
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.dm-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(1, 205, 254, 0.6);
}

/* Friends Section in Sidebar */
.profile-friends-header {
    margin-top: 20px;
}

.friends-card {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 20px;
}

.friends-count {
    text-align: center;
    margin-bottom: 15px;
}

.friends-count-number {
    font-size: 2rem;
    font-weight: 900;
    color: #01CDFE;
}

.friends-count-label {
    color: #B967FF;
    font-size: 0.95rem;
    margin-top: 5px;
}

.friend-avatars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.friend-avatar-link {
    text-decoration: none;
}

.friend-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #01CDFE;
    object-fit: cover;
    transition: all 0.3s;
    cursor: pointer;
}

.friend-avatar-img:hover {
    transform: scale(1.15);
    border-color: #FF71CE;
    box-shadow: 0 0 15px rgba(1, 205, 254, 0.5);
}

.friends-see-all {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(1, 205, 254, 0.2);
    border: 2px solid #01CDFE;
    color: #01CDFE;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.friends-see-all:hover {
    background: rgba(1, 205, 254, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(1, 205, 254, 0.4);
}

.no-friends {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

/* ========================================
   POST MODAL SPLIT LAYOUT STYLES
   ======================================== */

/* Top container - Post content */
.modal-post-top {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #FF71CE;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 113, 206, 0.4);
    transition: all 0.3s;
}

.modal-post-top:hover {
    box-shadow: 0 0 40px rgba(255, 113, 206, 0.6);
}

/* Bottom container - Comments */
.modal-post-bottom {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(1, 205, 254, 0.4);
    max-height: 500px;
    overflow-y: auto;
    transition: all 0.3s;
}

.modal-post-bottom:hover {
    box-shadow: 0 0 40px rgba(1, 205, 254, 0.6);
}

/* Custom scrollbar for comments section */
.modal-post-bottom::-webkit-scrollbar {
    width: 8px;
}

.modal-post-bottom::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.modal-post-bottom::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #01CDFE, #B967FF);
    border-radius: 4px;
}

.modal-post-bottom::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF71CE, #01CDFE);
}

/* Like button in modal */
.modal-post-top .like-btn {
    background: rgba(255, 113, 206, 0.2);
    border: 2px solid #FF71CE;
    color: #FF71CE;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 700;
}

.modal-post-top .like-btn:hover {
    background: rgba(255, 113, 206, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 113, 206, 0.6);
}

/* ========================================
   MOBILE GRID STYLES - Friends & Directory
   ======================================== */

/* Directory Page Styles */
.directory-container {
    max-width: 1100px;
    margin: 0 auto;
}

.page-header-box {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 40px rgba(1, 205, 254, 0.3);
}

.page-header-box h1 {
    font-size: 2.5rem;
    color: #01CDFE;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.page-header-box .subtitle {
    color: #05FFA1;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

.user-count {
    color: #FFFD82;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Search bar */
.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px;
    background: rgba(1, 205, 254, 0.05);
    border: 2px solid rgba(1, 205, 254, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #FF71CE;
    background: rgba(255, 113, 206, 0.05);
    box-shadow: 0 0 20px rgba(255, 113, 206, 0.4);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(90deg, #FF71CE, #B967FF);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 113, 206, 0.5);
}

.no-results {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.no-results h2 {
    color: #FF71CE;
    margin-bottom: 10px;
}

.no-results a {
    color: #FFFD82;
}

/* Friends Container */
.friends-container {
    max-width: 1100px;
    margin: 0 auto;
}

.back-btn {
    background: rgba(1, 205, 254, 0.2);
    border: 2px solid #01CDFE;
    color: #01CDFE;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: rgba(1, 205, 254, 0.3);
    transform: translateX(-5px);
}

/* Desktop: 3 columns */
.friends-grid,
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* User/Friend Cards */
.user-card,
.friend-card {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.user-card:hover,
.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(1, 205, 254, 0.5);
    border-color: #FF71CE;
}

.friend-card.bestie {
    border-color: #FF71CE;
    background: rgba(255, 113, 206, 0.1);
}

.bestie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF71CE, #B967FF);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.user-avatar,
.friend-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #01CDFE;
    margin: 0 auto 15px;
    object-fit: cover;
    display: block;
}

.friend-card.bestie .friend-avatar {
    border-color: #FF71CE;
}

.user-username,
.friend-username {
    font-size: 1.3rem;
    color: #01CDFE;
    font-weight: 700;
    margin-bottom: 5px;
    text-decoration: none;
    display: block;
}

.friend-username:hover {
    color: #FF71CE;
}

.user-meta {
    color: #05FFA1;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.user-bio,
.friend-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.friend-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.friend-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #01CDFE;
    background: rgba(1, 205, 254, 0.2);
    color: #01CDFE;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.friend-btn:hover {
    background: rgba(1, 205, 254, 0.3);
    transform: scale(1.05);
}

/* Tablet: 2-3 columns */
@media (max-width: 1024px) {
    .friends-grid,
    .user-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

/* Mobile: 2-3 compact columns */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .friends-grid,
    .user-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Make cards more compact on mobile */
    .friend-card,
    .user-card {
        padding: 15px 10px !important;
    }
    
    /* Smaller avatar on mobile */
    .friend-avatar,
    .user-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Smaller username text */
    .friend-username,
    .user-username {
        font-size: 1rem !important;
    }
    
    /* Hide bio on mobile to save space */
    .friend-bio,
    .user-bio {
        display: none !important;
    }
    
    /* Make buttons smaller and stack */
    .friend-actions {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .friend-btn {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
    
    /* Hide bestie badge text on mobile */
    .bestie-badge {
        font-size: 1.2rem !important;
        padding: 3px 8px !important;
    }
    
    /* User meta info smaller */
    .user-meta {
        font-size: 0.75rem !important;
    }
}

/* Very small mobile: Can still show 2 columns but VERY compact */
@media (max-width: 480px) {
    .friends-grid,
    .user-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .friend-card,
    .user-card {
        padding: 12px 8px !important;
    }
    
    .friend-avatar,
    .user-avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    .friend-username,
    .user-username {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   NOTIFICATIONS PAGE STYLES
   ======================================== */

.notifications-container {
    max-width: 800px;
    margin: 0 auto;
}

.mark-all-read {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 255, 161, 0.2);
    border: 2px solid #05FFA1;
    color: #05FFA1;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-transform: uppercase;
}

.mark-all-read:hover {
    background: rgba(5, 255, 161, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.section-title {
    color: #01CDFE;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.notification-card {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s;
    position: relative;
}

.notification-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(1, 205, 254, 0.4);
}

.notification-card.unread {
    border-color: #FF71CE;
    background: rgba(255, 113, 206, 0.1);
}

.notification-card.unread::before {
    content: '●';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF71CE;
    font-size: 1.5rem;
}

.notif-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #01CDFE;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-card.unread .notif-avatar {
    border-color: #FF71CE;
}

.notif-content {
    flex: 1;
}

.notif-text {
    color: #FFFD82;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notif-text strong {
    color: #01CDFE;
}

.notif-time {
    color: #B967FF;
    font-size: 0.85rem;
}

.notif-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.notif-btn {
    background: rgba(1, 205, 254, 0.2);
    border: 2px solid #01CDFE;
    color: #01CDFE;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
}

.notif-btn:hover {
    background: rgba(1, 205, 254, 0.3);
    transform: scale(1.05);
}

.notif-btn.delete {
    border-color: #ff6b7a;
    color: #ff6b7a;
    background: rgba(255, 107, 122, 0.2);
}

.notif-btn.delete:hover {
    background: rgba(255, 107, 122, 0.3);
}

.no-notifications {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #01CDFE;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.no-notifications h2 {
    color: #01CDFE;
    margin-bottom: 10px;
}

.notif-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .mark-all-read {
        position: static;
        transform: none;
        display: block;
        margin-top: 15px;
        text-align: center;
    }
    
    .notification-card {
        flex-direction: column;
    }
    
    .notif-actions {
        width: 100%;
    }
    
    .notif-btn {
        flex: 1;
    }
}


/* ========================================
   PROFILE PAGE WIDTH FIXES
   ======================================== */

.profile-header,
.custom-html-section,
.bio-section,
.profile-content {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}


/* ========================================
   FIX: PREVENT RIGHT-SIDE OVERFLOW
   ======================================== */

/* Ensure all elements respect their container width */
.feed-layout,
.feed-layout *,
.main-feed,
.main-feed *,
.sidebar,
.sidebar *,
.section-header,
.post-card,
.profile-header,
.profile-header *,
.custom-html-section,
.custom-html-section * {
    box-sizing: border-box !important;
}

/* Prevent any element from overflowing */
.main-feed,
.sidebar {
    width: 100% !important;
    max-width: 100% !important;
}


/* Match all content padding to header */
.profile-header,
.custom-html-section,
.bio-section {
    padding-left: 25px !important;
    padding-right: 25px !important;
}