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

    :root {
        --primary: #667eea;
        --secondary: #764ba2;
        --accent: #a78bfa;
        --bg-dark: #0f0c29;
        --bg-mid: #302b63;
        --bg-light: #24243e;
        --glass-bg: rgba(26, 26, 46, 0.7);
        --glass-border: rgba(102, 126, 234, 0.2);
        --text-primary: #e0e0e0;
        --text-secondary: rgba(199, 199, 199, 0.7);
        --card-bg: rgba(26, 26, 46, 0.8);
        --hover-bg: rgba(102, 126, 234, 0.15);
    }

    /* LIGHT MODE */
    body.light-mode {
        --bg-dark: #F0F2F5;
        --bg-mid: #E4E6EB;
        --bg-light: #FFFFFF;
        --glass-bg: rgba(255, 255, 255, 0.9);
        --glass-border: rgba(0, 0, 0, 0.1);
        --text-primary: #050505;
        --text-secondary: #65676B;
        --card-bg: #FFFFFF;
        --hover-bg: rgba(0, 0, 0, 0.05);
    }

    body {
        margin: 0;
        background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-light) 100%);
        background-attachment: fixed;
        font-family: 'Inter', sans-serif;
        color: var(--text-primary);
        overflow-x: hidden;
        position: relative;
        transition: background 0.3s ease, color 0.3s ease;
    }

    /* ANIMATED PARTICLE BACKGROUND */
    #particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    .particle {
        position: absolute;
        background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
        border-radius: 50%;
        animation: float linear infinite;
        opacity: 0.15;
    }

    @keyframes float {
        0% {
            transform: translateY(100vh) scale(0);
            opacity: 0;
        }

        10% {
            opacity: 0.15;
        }

        90% {
            opacity: 0.15;
        }

        100% {
            transform: translateY(-100px) scale(1);
            opacity: 0;
        }
    }

    /* SCROLLBAR */
    ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: #24243e;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
        border-radius: 10px;
        border: 2px solid rgba(15, 12, 41, 0.5);
    }

    /* NAVBAR */
    .navbar {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        padding: 0 20px;
        height: 60px;
        animation: slideDown 0.6s ease-out;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 28px;
        color: var(--primary);
        font-weight: 800;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .logo:hover {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }

    .search-container {
        display: flex;
        align-items: center;
        background: rgba(59, 59, 91, 0.4);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 10px 16px;
        width: 300px;
        transition: all 0.3s ease;
    }

    .search-container:focus-within {
        background: rgba(59, 59, 91, 0.6);
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }

    .search-container i {
        color: var(--primary);
        margin-right: 10px;
    }

    .search-container input {
        background: none;
        border: none;
        outline: none;
        color: white;
        flex: 1;
        font-family: 'Inter', sans-serif;
    }

    .nav-links {
        display: flex;
        gap: 5px;
    }

    .nav-link {
        padding: 12px 35px;
        font-size: 24px;
        color: var(--text-secondary);
        border-radius: 12px;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(102, 126, 234, 0.15);
        color: var(--accent);
    }

    .nav -link.active {
        border-bottom: 3px solid var(--primary);
    }

    .nav-actions {
        display: flex;
        gap: 8px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(46, 46, 76, 0.5);
        border: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        font-size: 18px;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-btn:hover {
        background: rgba(102, 126, 234, 0.3);
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 11px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: pulse-badge 2s infinite;
    }

    @keyframes pulse-badge {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
        }

        50% {
            box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
        }
    }

    /* SIDEBAR */
    .sidebar {
        position: fixed;
        left: 0;
        top: 60px;
        width: 280px;
        height: calc(100vh - 60px);
        background: rgba(18, 18, 38, 0.8);
        backdrop-filter: blur(15px);
        border-right: 1px solid var(--glass-border);
        padding: 10px;
        overflow-y: auto;
        z-index: 100;
        animation: slideInLeft 0.6s ease;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .sidebar-item {
        display: flex;
        align-items: center;
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 3px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .sidebar-item:hover {
        background: rgba(102, 126, 234, 0.15);
        transform: translateX(5px);
    }

    .sidebar-item i,
    .sidebar-item img {
        width: 36px;
        height: 36px;
        margin-right: 12px;
        border-radius: 50%;
    }

    .sidebar-item i {
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .online-dot {
        position: absolute;
        right: 12px;
        width: 10px;
        height: 10px;
        background: #10b981;
        border-radius: 50%;
        animation: pulse-green 2s infinite;
    }

    @keyframes pulse-green {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        }

        50% {
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
        }
    }

    /* MAIN CONTENT */
    .main-container {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 20px;
        padding: 80px 20px 20px 300px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .main-feed {
        width: 100%;
        max-width: 680px;
    }

    /* STORIES */
    .stories {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 15px;
        margin-bottom: 20px;
        display: flex;
        gap: 12px;
        overflow-x: auto;
    }

    .story {
        min-width: 110px;
        height: 180px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
        background-size: cover;
        background-position: center;
        border: 2px solid var(--glass-border);
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .story::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
        z-index: 1;
    }

    .story:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    }

    .story-avatar {
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 3px solid var(--primary);
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: white;
        z-index: 2;
        overflow: hidden;
    }

    .story-name {
        position: absolute;
        bottom: 12px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        color: white;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        z-index: 2;
    }

    /* CREATE POST */
    .create-post {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .post-input-area {
        display: flex;
        gap: 12px;
        margin-bottom: 15px;
    }

    .post-input-area img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .post-input {
        flex: 1;
        background: rgba(59, 59, 91, 0.4);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 12px 20px;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .post-input:hover {
        background: rgba(59, 59, 91, 0.6);
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
    }

    .post-options {
        display: flex;
        justify-content: space-around;
        padding-top: 12px;
        border-top: 1px solid var(--glass-border);
    }

    .post-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .post-option:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .post-option i {
        font-size: 20px;
    }

    /* POST CARD */
    .post {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }

    .post:hover {
        border-color: rgba(102, 126, 234, 0.4);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .post-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .post-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid var(--primary);
        margin-right: 12px;
    }

    .post-info {
        flex: 1;
    }

    .post-author {
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .verified {
        color: var(--primary);
        font-size: 14px;
    }

    .post-meta {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 2px;
    }

    .post-more {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .post-more:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .post-content {
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .post-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        max-height: 500px;
        object-fit: cover;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .post-image:hover {
        filter: brightness(1.1);
    }

    .post-stats {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--glass-border);
        font-size: 14px;
        color: var(--text-secondary);
    }

    .reactions {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .reaction-icon {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }

    .post-actions {
        display: flex;
        justify-content: space-around;
        padding-top: 8px;
    }

    .post-action {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }

    .post-action:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .post-action.liked {
        color: var(--primary);
    }

    /* REACTION SELECTOR */
    .reaction-selector {
        position: absolute;
        bottom: 100%;
        left: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 8px 12px;
        display: none;
        align-items: center;
        gap: 5px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        animation: popUp 0.3s ease;
    }

    .post-action:hover .reaction-selector {
        display: flex;
    }

    @keyframes popUp {
        from {
            transform: translateY(10px) scale(0.8);
            opacity: 0;
        }

        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    .reaction {
        font-size: 28px;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 4px;
    }

    .reaction:hover {
        transform: scale(1.4);
    }

    /* COMMENTS SECTION */
    .comments-section {
        margin-top: 15px;
        border-top: 1px solid var(--glass-border);
        padding-top: 15px;
    }

    .comment {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    .comment-content {
        flex: 1;
        background: rgba(59, 59, 91, 0.4);
        border-radius: 16px;
        padding: 10px 14px;
    }

    .comment-author {
        font-weight: 600;
        font-size: 13px;
        margin-bottom: 4px;
    }

    .comment-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .comment-actions {
        display: flex;
        gap: 15px;
        margin-top: 6px;
        padding-left: 42px;
        font-size: 12px;
        color: var(--text-secondary);
    }

    .comment-action {
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .comment-action:hover {
        color: var(--primary);
    }

    /* RIGHT SIDEBAR */
    .right-sidebar {
        position: relative;
        width: 300px;
    }

    .right-sidebar>* {
        position: sticky;
        top: 80px;
    }

    .widget {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 15px;
        color: var(--text-secondary);
    }

    .contact-item {
        display: flex;
        align-items: center;
        padding: 8px;
        border-radius: 8px;
        margin-bottom: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .contact-item:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .contact-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        margin-right: 10px;
        position: relative;
    }

    .contact-online {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 12px;
        height: 12px;
        background: #10b981;
        border: 2px solid var(--glass-bg);
        border-radius: 50%;
    }

    .birthday-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: rgba(59, 59, 91, 0.3);
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .birthday-icon {
        font-size: 28px;
    }

    /* DARK MODE TOGGLE */
    .dark-mode-toggle {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
        cursor: pointer;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .dark-mode-toggle:hover {
        transform: scale(1.1) rotate(180deg);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
    }

    /* MESSENGER PANEL */
    .messenger-panel {
        position: fixed;
        bottom: 0;
        right: 100px;
        width: 350px;
        height: 450px;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        display: none;
        flex-direction: column;
        z-index: 1001;
    }

    .messenger-header {
        padding: 15px;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .messenger-body {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
    }

    .message {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .message-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }

    .message-bubble {
        background: rgba(102, 126, 234, 0.3);
        padding: 10px 14px;
        border-radius: 16px;
        max-width: 70%;
    }

    .messenger-footer {
        padding: 12px;
        border-top: 1px solid var(--glass-border);
    }

    .messenger-input {
        background: rgba(59, 59, 91, 0.4);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 10px 16px;
        color: white;
        width: 100%;
        outline: none;
    }

    /* NOTIFICATIONS DROPDOWN */
    .notifications-dropdown {
        position: fixed;
        top: 70px;
        right: 180px;
        width: 400px;
        max-height: 600px;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        display: none;
        flex-direction: column;
        z-index: 1001;
        animation: slideDown 0.3s ease;
    }

    .notifications-header {
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .notifications-header h3 {
        font-size: 24px;
        font-weight: 700;
    }

    .mark-read-btn {
        color: var(--primary);
        font-size: 14px;
        cursor: pointer;
        padding: 6px 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .mark-read-btn:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .notifications-body {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    .notification-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .notification-item:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .notification-item.unread {
        background: rgba(102, 126, 234, 0.1);
    }

    .notification-item.unread::before {
        content: '';
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
    }

    .notification-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        position: relative;
    }

    .notification-icon {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        border: 2px solid rgba(26, 26, 46, 0.98);
    }

    .notification-content {
        flex: 1;
    }

    .notification-text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .notification-text strong {
        font-weight: 700;
    }

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

    .notification-actions {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .notif-btn {
        padding: 6px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .notif-btn.primary {
        background: var(--primary);
        color: white;
    }

    .notif-btn.primary:hover {
        background: var(--secondary);
        transform: scale(1.05);
    }

    .notif-btn.secondary {
        background: rgba(59, 59, 91, 0.4);
        color: var(--text-primary);
    }

    .notif-btn.secondary:hover {
        background: rgba(59, 59, 91, 0.6);
    }

    /* ACCOUNT DROPDOWN */
    .account-dropdown {
        position: fixed;
        top: 70px;
        right: 20px;
        width: 360px;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        display: none;
        flex-direction: column;
        z-index: 1001;
        animation: slideDown 0.3s ease;
        overflow: hidden;
    }

    .account-profile {
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .account-profile:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .account-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 2px solid var(--primary);
    }

    .account-info {
        flex: 1;
    }

    .account-name {
        font-size: 16px;
        font-weight: 700;
    }

    .account-view {
        font-size: 13px;
        color: var(--text-secondary);
    }

    .account-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-border) 50%, transparent);
        margin: 8px 0;
    }

    .account-menu-item {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .account-menu-item:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .account-menu-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .account-menu-text {
        flex: 1;
    }

    .account-menu-title {
        font-size: 14px;
        font-weight: 600;
    }

    .account-menu-desc {
        font-size: 12px;
        color: var(--text-secondary);
    }

    .account-menu-chevron {
        color: var(--text-secondary);
        font-size: 14px;
    }

    /* APPS GRID DROPDOWN */
    .apps-dropdown {
        position: fixed;
        top: 70px;
        right: 280px;
        width: 500px;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        display: none;
        flex-direction: column;
        z-index: 1001;
        animation: slideDown 0.3s ease;
    }

    .apps-header {
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }

    .apps-header h3 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .apps-search {
        background: rgba(59, 59, 91, 0.4);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 10px 16px;
        color: white;
        width: 100%;
        outline: none;
        transition: all 0.3s ease;
    }

    .apps-search:focus {
        background: rgba(59, 59, 91, 0.6);
        border-color: var(--primary);
    }

    .apps-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 16px;
        max-height: 450px;
        overflow-y: auto;
    }

    .app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .app-item:hover {
        background: rgba(102, 126, 234, 0.15);
        transform: scale(1.05);
    }

    .app-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .app-name {
        font-size: 13px;
        font-weight: 600;
        text-align: center;
    }

    /* DROPDOWN ANIMATIONS */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* PANEL VISIBILITY */
    .dropdown-panel.show {
        display: flex !important;
    }

    /* STORY VIEWER */
    .story-viewer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        animation: fadeIn 0.3s ease;
    }

    .story-viewer.active {
        display: flex;
    }

    .story-content-wrapper {
        position: relative;
        width: 400px;
        height: 700px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }

    .story-progress-container {
        position: absolute;
        top: 16px;
        left: 16px;
        right: 16px;
        display: flex;
        gap: 4px;
        z-index: 10;
    }

    .story-progress-bar {
        flex: 1;
        height: 3px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        overflow: hidden;
    }

    .story-progress-bar.active .story-progress-fill {
        animation: fillProgress 5s linear forwards;
    }

    .story-progress-fill {
        height: 100%;
        width: 0%;
        background: white;
    }

    @keyframes fillProgress {
        to {
            width: 100%;
        }
    }

    .story-header {
        position: absolute;
        top: 32px;
        left: 16px;
        right: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 10;
    }

    .story-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid white;
    }

    .story-user-info {
        flex: 1;
    }

    .story-username {
        font-weight: 700;
        font-size: 15px;
        color: white;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .story-time {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .close-story {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        color: white;
        transition: all 0.3s ease;
    }

    .close-story:hover {
        background: rgba(0, 0, 0, 0.6);
        transform: scale(1.1);
    }

    .story-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .story-nav {
        position: absolute;
        top: 0;
        width: 40%;
        height: 100%;
        cursor: pointer;
        z-index: 5;
    }

    .story-nav.prev {
        left: 0;
    }

    .story-nav.next {
        right: 0;
    }

    /* CREATE POST MODAL */
    .create-post-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1500;
        animation: fadeIn 0.3s ease;
    }

    .create-post-modal.active {
        display: flex;
    }

    .create-post-container {
        width: 500px;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        animation: slideUp 0.3s ease;
    }

    .create-post-header {
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .create-post-header h2 {
        font-size: 20px;
        font-weight: 700;
    }

    .close-modal {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--hover-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .close-modal:hover {
        background: rgba(102, 126, 234, 0.3);
        transform: rotate(90deg);
    }

    .create-post-user {
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .create-post-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }

    .create-post-username {
        font-weight: 700;
        font-size: 15px;
    }

    .create-post-textarea {
        padding: 0 20px 20px;
    }

    .create-post-textarea textarea {
        width: 100%;
        min-height: 150px;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-primary);
        font-size: 24px;
        font-family: 'Inter', sans-serif;
        resize: none;
    }

    .create-post-textarea textarea::placeholder {
        color: var(--text-secondary);
    }

    .create-post-options {
        padding: 12px 20px;
        border-top: 1px solid var(--glass-border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .post-options-title {
        font-weight: 600;
        font-size: 15px;
    }

    .post-option-icons {
        display: flex;
        gap: 8px;
    }

    .post-option-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
    }

    .post-option-btn:hover {
        background: var(--hover-bg);
        transform: scale(1.1);
    }

    .post-option-btn.photo {
        color: #45bd62;
    }

    .post-option-btn.tag {
        color: #4267B2;
    }

    .post-option-btn.feeling {
        color: #f7b928;
    }

    .post-option-btn.location {
        color: #f5533d;
    }

    .create-post-footer {
        padding: 20px;
        border-top: 1px solid var(--glass-border);
    }

    .post-btn {
        width: 100%;
        padding: 12px;
        background: var(--primary);
        border: none;
        border-radius: 8px;
        color: white;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .post-btn:disabled {
        background: var(--hover-bg);
        color: var(--text-secondary);
        cursor: not-allowed;
    }

    .post-btn:not(:disabled):hover {
        background: var(--secondary);
        transform: scale(1.02);
    }

    /* REACTION SELECTOR */
    .reaction-selector {
        position: absolute;
        bottom: 50px;
        left: 0;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        padding: 8px 16px;
        display: none;
        gap: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 100;
        animation: bounceIn 0.3s ease;
    }

    .reaction-selector.active {
        display: flex;
    }

    @keyframes bounceIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }

        50% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .reaction-emoji {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 50%;
    }

    .reaction-emoji:hover {
        transform: scale(1.4) translateY(-4px);
    }

    /* SHARE MODAL */
    .share-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1500;
        animation: fadeIn 0.3s ease;
    }

    .share-modal.active {
        display: flex;
    }

    .share-container {
        width: 400px;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        animation: slideUp 0.3s ease;
    }

    .share-header {
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .share-header h3 {
        font-size: 20px;
        font-weight: 700;
    }

    .share-options {
        padding: 12px;
    }

    .share-option {
        padding: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .share-option:hover {
        background: var(--hover-bg);
    }

    .share-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: white;
    }

    .share-text {
        font-weight: 600;
        font-size: 15px;
    }

    /* TOAST NOTIFICATION */
    .toast-container {
        position: fixed;
        top: 80px;
        right: 20px;
        z-index: 3000;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .toast {
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 16px 20px;
        min-width: 300px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        gap: 12px;
        animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(400px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .toast-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #45bd62, #3aa857);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: white;
    }

    .toast-message {
        flex: 1;
        font-weight: 600;
        font-size: 14px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* ENHANCED POST INTERACTIONS */
    .post-action.liked {
        color: #ff6b6b;
    }

    .post-action.liked i {
        animation: heartBeat 0.5s ease;
    }

    @keyframes heartBeat {

        0%,
        100% {
            transform: scale(1);
        }

        25% {
            transform: scale(1.3);
        }

        50% {
            transform: scale(1.1);
        }

        75% {
            transform: scale(1.2);
        }
    }

    .comments-section {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .comments-section.expanded {
        max-height: 500px;
    }

    /* RESPONSIVE */
    @media (max-width: 1400px) {
        .main-container {
            grid-template-columns: 300px 1fr;
        }

        .right-sidebar {
            display: none;
        }
    }

    @media (max-width: 900px) {
        .sidebar {
            width: 70px;
        }

        .sidebar-item span {
            display: none;
        }

        .main-container {
            grid-template-columns: 70px 1fr;
        }

        .navbar {
            padding: 0 15px;
        }

        .search-container {
            width: 200px;
        }

        .nav-links {
            gap: 5px;
        }

        .nav-link {
            width: 50px;
            font-size: 18px;
        }
    }

    @media (max-width: 768px) {

        /* Hide sidebar on mobile */
        .sidebar {
            display: none;
        }

        .main-container {
            grid-template-columns: 1fr;
            padding: 0 10px;
        }

        .main-feed {
            max-width: 100%;
        }

        /* Optimize navbar for mobile */
        .navbar {
            padding: 0 10px;
        }

        .logo span {
            display: none;
        }

        .search-container {
            max-width: 150px;
        }

        .search-container input {
            font-size: 14px;
        }

        .nav-links {
            display: none;
        }

        /* Stories optimization */
        .stories {
            padding: 10px;
            gap: 8px;
        }

        .story {
            min-width: 90px;
            height: 150px;
        }

        .story-avatar {
            width: 38px;
            height: 38px;
            top: 10px;
        }

        .story-name {
            font-size: 11px;
            bottom: 8px;
        }

        /* Posts optimization */
        .post {
            padding: 15px;
            margin-bottom: 15px;
        }

        .post-avatar {
            width: 35px;
            height: 35px;
        }

        .post-author {
            font-size: 14px;
        }

        .post-content {
            font-size: 14px;
        }

        .post-image {
            border-radius: 12px;
        }

        /* Create post */
        .create-post {
            padding: 15px;
        }

        .post-option {
            padding: 8px 12px;
            font-size: 13px;
        }

        /* Story viewer on mobile */
        .story-viewer {
            padding: 0;
        }

        .story-content-wrapper {
            max-width: 100%;
            height: 100vh;
            border-radius: 0;
        }

        .story-image {
            border-radius: 0;
        }

        /* Notifications & dropdowns */
        .notifications-dropdown,
        .account-dropdown,
        .apps-dropdown {
            width: 100%;
            max-width: 100vw;
            right: 0;
            left: 0;
            border-radius: 0;
        }

        /* Messenger panel */
        .messenger-panel {
            width: 100%;
            right: 0;
            height: 60vh;
        }

        /* Dark mode toggle */
        .dark-mode-toggle {
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            font-size: 20px;
        }
    }

    @media (max-width: 480px) {

        /* Extra small devices */
        .navbar {
            height: 55px;
            padding: 0 8px;
        }

        .logo {
            font-size: 22px;
        }

        .nav-btn {
            width: 35px;
            height: 35px;
            font-size: 16px;
        }

        .search-container {
            max-width: 120px;
        }

        .story {
            min-width: 80px;
            height: 135px;
        }

        .story-avatar {
            width: 35px;
            height: 35px;
        }

        .post {
            padding: 12px;
            border-radius: 12px;
        }

        .post-header {
            margin-bottom: 10px;
        }

        .post-actions {
            gap: 5px;
        }

        .post-action {
            padding: 8px;
            font-size: 13px;
        }

        .comments-section {
            padding: 10px;
        }

        .comment-avatar {
            width: 30px;
            height: 30px;
        }
    }

    /* Landscape mode for mobile */
    @media (max-height: 500px) and (orientation: landscape) {
        .story-viewer {
            padding: 10px;
        }

        .story-content-wrapper {
            height: 95vh;
        }
    }

    /* Touch-friendly improvements */
    @media (hover: none) and (pointer: coarse) {

        .nav-btn,
        .post-action,
        .story,
        .sidebar-item {
            min-height: 44px;
            min-width: 44px;
        }

        .post-option,
        .notification-item,
        .account-menu-item {
            padding: 12px;
        }
    }