        /* Global Reset - Removes default browser styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Main body styling - Dark theme with flexible layout */
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #000;
            color: #fff;
            display: flex;
            min-height: 100vh;
        }

        /* Left navigation sidebar - Fixed position with scrolling */
        .sidebar {
            width: 260px;
            background: #000;
            border-right: 1px solid #333;
            padding: 20px;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
        }

        /* Nosmero branding logo in sidebar */
        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 40px;
            color: #FF6600; /* Orange brand color to match Monero */
        }

        /* Navigation menu items (Home, Profile, etc.) */
        .nav-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            margin-bottom: 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 16px;
        }

        .nav-item:hover {
            background: #1a1a1a;
        }

        .nav-item.active {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            color: #000;
        }

        .nav-item span {
            margin-left: 12px;
        }

        /* Main "Post" button in sidebar with gradient */
        .post-button {
            background: linear-gradient(135deg, #FF6600, #8B5CF6); /* Orange gradient */
            border: none;
            color: #000;
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            transition: transform 0.2s;
        }

        .post-button:hover {
            transform: scale(1.02);
        }

        /* Main content area - Offset by sidebar width */
        .main {
            margin-left: 260px; /* Same as sidebar width */
            flex: 1;
            border-right: 1px solid #333;
            max-width: 800px; /* Increased width for better space usage */
        }

        /* Sticky header with blur effect for feed sections */
        .header {
            padding: 16px 20px;
            border-bottom: 1px solid #333;
            position: sticky;
            top: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px); /* Glass effect */
        }

        /* Tab navigation container (Latest/Following tabs) */
        .tab-bar {
            display: flex;
            gap: 0;
        }

        .tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 15px;
            border-radius: 20px;
        }

        .tab.active {
            background: #f5f5f5;
            color: #000;
        }

        /* Main feed container for posts */
        .feed {
            min-height: calc(100vh - 80px);
        }

        /* Individual post/note container */
        .post {
            border-bottom: 1px solid #333;
            padding: 16px 20px;
            transition: background 0.2s;
        }

        .post:hover {
            background: rgba(255, 255, 255, 0.02);
        }

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

        /* User avatar - Shows image or fallback gradient with initial */
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6600, #8B5CF6); /* Orange gradient */
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            object-fit: cover;
        }
        
        img.avatar {
            background: none;
        }
        
        /* Hover effects for clickable avatars and usernames */
        .avatar:hover {
            transform: scale(1.05);
            transition: transform 0.2s ease;
        }

        .post-info {
            flex: 1;
        }

        .username {
            font-weight: bold;
            margin-right: 8px;
        }
        
        .username:hover {
            color: #FF6600;
            transition: color 0.2s ease;
        }

        .handle {
            color: #666;
            margin-right: 8px;
        }
        
        .handle:hover {
            color: #8B5CF6;
            transition: color 0.2s ease;
        }

        .timestamp {
            color: #666;
            font-size: 14px;
        }

        /* Parent post styling for replies */
        .parent-post {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            padding: 8px 12px;
            margin-bottom: 12px;
            transition: background 0.2s;
        }
        
        .parent-post:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .parent-post .post-header {
            margin-bottom: 6px;
        }
        
        .parent-post .avatar {
            width: 28px;
            height: 28px;
            font-size: 13px;
        }
        
        .parent-post .post-content {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.4;
        }
        
        .reply-indicator {
            color: #666;
            font-size: 13px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Post text content with proper word wrapping for long URLs */
        .post-content {
            margin: 12px 0;
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-word; /* Ensures long URLs don't overflow */
            max-width: 100%;
        }
        
        .post-content a {
            color: #1d9bf0;
            text-decoration: none;
            word-break: break-all;
        }
        
        .post-content a:hover {
            text-decoration: underline;
        }
        
        .post-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 8px 0;
        }
        
        .post-content .mention {
            color: #1d9bf0;
            text-decoration: none;
        }
        
        /* Quoted/embedded notes (nevent links) display */
        .embedded-note {
            border: 1px solid #333;
            border-radius: 8px;
            padding: 12px;
            margin: 8px 0;
            background: #0a0a0a;
        }
        
        .embedded-note .note-header {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            gap: 8px;
        }
        
        .embedded-note .note-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            object-fit: cover;
        }
        
        .embedded-note .note-author {
            font-weight: bold;
            font-size: 14px;
        }
        
        .embedded-note .note-time {
            color: #666;
            font-size: 12px;
            margin-left: auto;
        }
        
        .embedded-note .note-content {
            font-size: 14px;
            line-height: 1.4;
            color: #ccc;
        }

        /* Action buttons row (reply, repost, like, XMR zap) */
        .post-actions {
            display: flex;
            justify-content: space-between;
            max-width: 400px;
            margin-top: 12px;
        }

        .action-btn {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Monero zap button styling */
        .xmr-zap {
            color: #FF6600;
            font-weight: bold;
            font-size: 13px;
        }

        .xmr-zap:hover {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            color: #000;
        }

        /* Modal overlay for login, XMR QR codes, etc. */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: #1a1a1a;
            border-radius: 16px;
            padding: 24px;
            max-width: 400px;
            width: 90%;
            text-align: center;
        }

        .modal-header {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        /* QR code display container (for XMR addresses) */
        .qr-container {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
        }

        .modal-footer {
            margin-top: 20px;
        }

        .close-btn {
            background: #333;
            border: none;
            color: #fff;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 16px;
        }

        .login-option-btn {
            background: #1a1a1a;
            border: 1px solid #333;
            color: #fff;
            padding: 16px 20px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s;
            text-align: left;
        }

        .login-option-btn:hover {
            background: #2a2a2a;
            border-color: #FF6600;
        }

        /* New post composition area */
        .compose-area {
            padding: 16px 20px;
            border-bottom: 1px solid #333;
        }

        .compose-textarea {
            width: 100%;
            background: transparent !important;
            border: none;
            outline: none;
            color: #fff !important;
            caret-color: #FF6600 !important; /* Use brand orange for better visibility */
            font-size: 16px;
            resize: vertical;
            min-height: 120px;
            max-height: 400px;
            font-family: inherit;
            line-height: 1.5;
            padding: 8px 0;
            /* Ensure cursor is always visible */
            text-shadow: none;
            -webkit-text-fill-color: #fff;
            /* Force caret visibility on webkit browsers */
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        
        .compose-textarea:focus {
            caret-color: #FF6600 !important;
            color: #fff !important;
            outline: none;
            /* Add subtle glow to show focus */
            box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
            border-radius: 4px;
        }

        .compose-textarea::placeholder {
            color: #666;
            opacity: 0.7;
        }
        
        /* Ensure cursor visibility in all text inputs */
        input[type="text"], input[type="email"], input[type="password"], textarea {
            caret-color: #FF6600 !important;
        }
        
        input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
            caret-color: #FF6600 !important;
            outline: none;
        }
        
        /* Fix for dark mode cursor issues */
        * {
            caret-color: inherit;
        }
        
        body {
            caret-color: #FF6600;
        }
        
        /* Webkit-specific cursor fixes */
        @media screen and (-webkit-min-device-pixel-ratio:0) {
            .compose-textarea {
                -webkit-text-fill-color: #fff !important;
                caret-color: #FF6600 !important;
            }
        }
        
        /* Firefox-specific fixes */
        @-moz-document url-prefix() {
            .compose-textarea {
                color: #fff !important;
                caret-color: #FF6600 !important;
            }
        }

        .compose-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
        }

        /* Monero address input field in compose area */
        .xmr-address-input {
            background: #1a1a1a;
            border: 1px solid #333;
            color: #fff;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 12px;
            width: 200px;
        }

        .compose-buttons {
            display: flex;
            gap: 8px;
        }

        .send-btn {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            border: none;
            color: #000;
            padding: 8px 16px;
            border-radius: 16px;
            font-weight: bold;
            cursor: pointer;
        }

        .cancel-btn {
            background: #333;
            border: 1px solid #555;
            color: #fff;
            padding: 8px 16px;
            border-radius: 16px;
            font-weight: bold;
            cursor: pointer;
        }

        .cancel-btn:hover {
            background: #444;
        }

        .send-btn:hover {
            transform: scale(1.02);
        }

        .status {
            text-align: center;
            padding: 20px;
            color: #666;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .error {
            color: #f56565;
            text-align: center;
            padding: 20px;
        }

        .retry-btn {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            color: #000;
            cursor: pointer;
            margin-left: 8px;
        }

        /* Notification interface styling */
        .notif-type-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .notif-type-btn {
            background: #1a1a1a;
            border: 1px solid #333;
            color: #ccc;
            padding: 8px 16px;
            border-radius: 16px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }

        .notif-type-btn.active {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            color: #000;
            border-color: #FF6600;
        }

        .notif-type-btn:hover:not(.active) {
            background: #2a2a2a;
            border-color: #666;
        }

        .notification-item {
            border-bottom: 1px solid #333;
            padding: 16px 20px;
            transition: background 0.2s;
            cursor: pointer;
        }

        .notification-item:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .notification-header {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        .notification-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-right: 12px;
            font-size: 16px;
        }

        .notification-content {
            flex: 1;
        }

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

        .notification-time {
            color: #666;
            font-size: 12px;
        }

        .notification-preview {
            background: #0a0a0a;
            border: 1px solid #333;
            border-radius: 8px;
            padding: 12px;
            margin-top: 8px;
            color: #ccc;
            font-size: 14px;
            line-height: 1.4;
        }

        .notifications-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 0 20px;
        }

        /* Profile page specific styling for text overflow prevention */
        .profile-text-content {
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-word;
            max-width: 100%;
            white-space: pre-wrap;
        }

        .profile-lightning-address {
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-all;
            max-width: 250px;
            display: inline-block;
            vertical-align: top;
        }

        .profile-website-link {
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-all;
            max-width: 200px;
            display: inline-block;
            vertical-align: top;
        }

        .profile-npub {
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-all;
            max-width: 100%;
            font-family: monospace;
        }

        /* Mobile responsive design - Enhanced mobile navigation */
        /* ==================== MESSAGES STYLES ==================== */
        
        .messages-page {
            width: 100%;
            height: 100vh;
            display: none;
            background: #000;
        }
        
        .messages-container {
            display: flex;
            height: 100%;
            width: 100%;
        }
        
        .conversations-list {
            width: 320px;
            border-right: 1px solid #333;
            display: flex;
            flex-direction: column;
            background: #0a0a0a;
        }
        
        .conversations-header {
            padding: 20px;
            border-bottom: 1px solid #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .conversations-header h2 {
            margin: 0;
            font-size: 20px;
        }
        
        .new-message-btn {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .new-message-btn:hover {
            background: #E55A00;
        }
        
        .conversations {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }
        
        .conversation-item {
            padding: 15px;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 8px;
            transition: background 0.2s;
            border: 1px solid transparent;
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .conversation-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .conversation-item.active {
            background: rgba(74, 144, 226, 0.1);
            border-color: #FF6600;
        }
        
        .conversation-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        .conversation-info {
            flex: 1;
            overflow: hidden;
            min-width: 0;
        }
        
        .conversation-name {
            font-weight: bold;
            margin-bottom: 4px;
        }
        
        .conversation-preview {
            color: #888;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .conversation-time {
            position: absolute;
            top: 15px;
            right: 15px;
            color: #666;
            font-size: 12px;
        }
        
        .message-thread {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .message-header {
            padding: 20px;
            border-bottom: 1px solid #333;
            background: #0a0a0a;
            font-weight: bold;
        }
        
        .messages-display {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .message-bubble {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 18px;
            word-wrap: break-word;
            position: relative;
        }
        
        .message-bubble.sent {
            align-self: flex-end;
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            color: white;
            margin-left: auto;
        }
        
        .message-bubble.received {
            align-self: flex-start;
            background: #333;
            color: white;
        }
        
        .message-time {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 4px;
        }
        
        .message-composer {
            padding: 20px;
            border-top: 1px solid #333;
            background: #0a0a0a;
            display: flex;
            gap: 10px;
            align-items: flex-end;
        }
        
        #messageInput {
            flex: 1;
            background: #1a1a1a;
            border: 1px solid #333;
            color: white;
            padding: 10px;
            border-radius: 20px;
            resize: none;
            font-family: inherit;
            font-size: 14px;
        }
        
        #messageInput:focus {
            outline: none;
            border-color: #FF6600;
        }
        
        .send-message-btn {
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
        }
        
        .send-message-btn:hover {
            background: #E55A00;
        }

        /* Media Upload Styles */
        .media-upload-section {
            margin-top: 12px;
        }
        
        .media-btn {
            background: #333;
            border: 1px solid #555;
            color: #fff;
            padding: 8px 16px;
            border-radius: 16px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .media-btn:hover {
            background: #444;
            border-color: #666;
        }
        
        .media-preview {
            margin-top: 12px;
            border: 1px solid #333;
            border-radius: 8px;
            padding: 12px;
            background: #1a1a1a;
        }
        
        .media-preview img {
            max-width: 100%;
            max-height: 300px;
            border-radius: 8px;
            display: block;
        }
        
        .media-preview video {
            max-width: 100%;
            max-height: 300px;
            border-radius: 8px;
            display: block;
        }
        
        .media-preview .media-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 12px;
            color: #999;
        }
        
        .media-preview .remove-media {
            background: #ff4444;
            border: none;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .media-preview .remove-media:hover {
            background: #ff6666;
        }
        
        .upload-progress {
            margin-top: 8px;
        }
        
        .upload-progress-bar {
            width: 100%;
            height: 4px;
            background: #333;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .upload-progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            transition: width 0.3s ease;
        }
        
        .upload-status {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
        }

        /* Post Context Menu */
        .post-menu {
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            min-width: 180px;
            z-index: 10000;
        }

        .post-menu button {
            display: block;
            width: 100%;
            padding: 12px 16px;
            background: none;
            border: none;
            color: #fff;
            text-align: left;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
        }

        .post-menu button:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .post-menu button:first-child {
            border-radius: 8px 8px 0 0;
        }

        .post-menu button:last-child {
            border-radius: 0 0 8px 8px;
        }

        /* Thread Page */
        .thread-page {
            background: #000;
            color: #fff;
            min-height: 100vh;
        }

        .thread-header {
            padding: 16px 20px;
            border-bottom: 1px solid #333;
            display: flex;
            align-items: center;
            position: sticky;
            top: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
        }

        .thread-header h2 {
            margin: 0;
            font-size: 20px;
        }

        .thread-content {
            padding: 20px;
            max-width: 800px;
        }

        /* ==================== MOBILE NAVIGATION ==================== */
        
        /* Mobile menu toggle button */
        .mobile-menu-toggle {
            display: none;
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 1001;
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            border: none;
            color: #000;
            padding: 12px;
            border-radius: 8px;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            min-width: 44px; /* Touch target size */
            min-height: 44px;
            transition: all 0.2s ease;
        }
        
        .mobile-menu-toggle:active {
            transform: scale(0.95);
        }
        
        /* Mobile menu button animation */
        .mobile-menu-toggle.menu-open {
            background: #333;
            color: #FF6600;
        }
        
        /* Mobile overlay for sidebar */
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }
        
        @media (max-width: 768px) {
            /* Show mobile menu toggle */
            .mobile-menu-toggle {
                display: block;
            }
            
            /* Transform sidebar for mobile */
            .sidebar {
                position: fixed;
                top: 0;
                left: -260px; /* Hidden by default */
                width: 260px;
                height: 100vh;
                background: #000;
                border-right: 1px solid #333;
                transition: left 0.3s ease;
                z-index: 1000;
                overflow-y: auto;
            }
            
            /* Show sidebar when mobile menu is open */
            .sidebar.mobile-open {
                left: 0;
            }
            
            /* Show overlay when mobile menu is open */
            .mobile-overlay.active {
                display: block;
            }
            
            /* Adjust main content for mobile */
            .main {
                margin-left: 0;
                max-width: 100%;
                padding-top: 60px; /* Space for mobile menu button */
            }
            
            /* Mobile header adjustments */
            .header {
                padding-left: 60px; /* Space for menu button */
            }
            
            /* Adjust logo size for mobile sidebar */
            .sidebar .logo img {
                width: 100px !important;
            }
            
            /* Mobile-specific nav item adjustments */
            .nav-item {
                padding: 16px;
                font-size: 18px;
            }
            
            /* Mobile post button */
            .post-button {
                padding: 16px 24px;
                font-size: 18px;
            }
            
            /* Mobile modal adjustments */
            .modal-content {
                width: 95%;
                max-width: 400px;
                margin: 10% auto;
            }
            
            /* Mobile compose area adjustments */
            .compose-area {
                padding: 16px;
            }
            
            /* Mobile post adjustments */
            .post {
                padding: 16px;
            }
            
            .post-content {
                font-size: 16px;
                line-height: 1.5;
            }
            
            /* Mobile search adjustments */
            .search-input {
                font-size: 16px; /* Prevents zoom on iOS */
            }
            
            /* Mobile form input adjustments */
            input, textarea, select {
                font-size: 16px !important; /* Prevents zoom on iOS */
            }
            
            /* Mobile touch improvements */
            .nav-item, .post-button, button {
                min-height: 44px; /* iOS recommended touch target size */
                display: flex;
                align-items: center;
            }
            
            /* Mobile notification adjustments */
            .notification-toast {
                top: 70px !important; /* Below mobile menu button */
                right: 10px !important;
                left: 10px !important;
                max-width: none !important;
            }
            
            /* Mobile profile page adjustments */
            .profile-header {
                padding: 16px !important;
            }
            
            /* Mobile thread view adjustments */
            .thread-modal {
                width: 100% !important;
                height: 100% !important;
                margin: 0 !important;
                border-radius: 0 !important;
            }
            
            /* Mobile settings page adjustments */
            .settings-container {
                padding: 16px !important;
            }
            
            /* Improve mobile scrolling */
            .main, .sidebar {
                -webkit-overflow-scrolling: touch;
            }
        }

        /* Media Upload Styles */
        .media-upload-section {
            margin-top: 12px;
        }
        
        .media-btn {
            background: #333;
            border: 1px solid #555;
            color: #fff;
            padding: 8px 16px;
            border-radius: 16px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            margin-right: 8px;
        }
        
        .media-btn:hover {
            background: #444;
            border-color: #666;
        }
        
        .media-preview {
            margin-top: 12px;
            border: 1px solid #333;
            border-radius: 8px;
            padding: 12px;
            background: #1a1a1a;
        }
        
        .media-preview img {
            max-width: 100%;
            max-height: 300px;
            border-radius: 8px;
            display: block;
        }
        
        .media-preview video {
            max-width: 100%;
            max-height: 300px;
            border-radius: 8px;
            display: block;
        }
        
        .media-preview .media-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 12px;
            color: #999;
        }
        
        .media-preview .remove-media {
            background: #ff4444;
            border: none;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .media-preview .remove-media:hover {
            background: #ff6666;
        }
        
        .upload-progress {
            margin-top: 8px;
        }
        
        .upload-progress-bar {
            width: 100%;
            height: 4px;
            background: #333;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .upload-progress-fill {
            height: 100%;
            background: linear-gradient(135deg, #FF6600, #8B5CF6);
            transition: width 0.3s ease;
        }
        
        .upload-status {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
        }