
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Hide all scrollbars globally */
        *::-webkit-scrollbar {
            width: 0px;
            height: 0px;
            display: none;
        }

        html {
            -webkit-text-size-adjust: none;
            text-size-adjust: none;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            height: 100%;
            width: 100%;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: radial-gradient(circle at top, #1c1b23 0%, #09090d 45%, #050507 100%);
            color: #f5f5f7;
            overflow: hidden;
            transition: background-color 0.3s, color 0.3s;
            /* Mobile safe areas */
            padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
            /* Prevent text selection on mobile for better UX */
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            -webkit-touch-callout: none;
            -webkit-text-size-adjust: none;
            text-size-adjust: none;
            /* Force hardware acceleration */
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }

        /* Light Mode */
        body.light-mode {
            background: #f5f5f7;
            color: #111;
        }

        body.light-mode .top-bar {
            background: #fff;
            color: #000;
            border-bottom: 2px solid #ccc;
        }

        body.light-mode .logo {
            color: #000;
        }

        body.light-mode .top-links a {
            color: #000;
        }

        body.light-mode .theme-toggle {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        body.light-mode .theme-toggle:hover {
            background: #333;
        }

        body.light-mode .main-wrapper {
            background: #fff;
            border-color: #ccc;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .sidebar {
            background: #f7f7f7;
            border-right-color: #ccc;
        }

        body.light-mode .profile-box {
            background: #fff;
            border-color: #999;
        }

        body.light-mode .profile-pic {
            border-color: #000;
        }

        body.light-mode .profile-name {
            color: #000;
        }

        body.light-mode .profile-link {
            color: #000;
        }

        body.light-mode .profile-link:hover {
            color: #555;
        }

        body.light-mode .circles-box {
            background: #fff;
            border-color: #999;
        }

        body.light-mode .box-title {
            color: #000;
            border-bottom-color: #999;
        }

        body.light-mode .circle-item {
            color: rgba(0, 0, 0, 0.65);
        }

        body.light-mode .circle-item:hover {
            background: rgba(0, 0, 0, 0.08);
        }

        body.light-mode .tabs {
            background: #ddd;
            border-bottom-color: #999;
        }

        body.light-mode .tab {
            color: #000;
            border-right-color: #bbb;
        }

        body.light-mode .tab:hover {
            background: #ccc;
        }

        body.light-mode .tab.active {
            background: #fff;
            border-bottom-color: #000;
        }

        body.light-mode .composer {
            background: #f7f7f7;
            border-bottom-color: #ccc;
        }

        body.light-mode .composer-title {
            color: #666;
        }

        body.light-mode .record-button {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        body.light-mode .record-button:hover {
            background: #333;
        }

        body.light-mode .post {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.06);
        }

        body.light-mode .post-avatar {
            border-color: #000;
        }

        body.light-mode .post-username {
            color: #000;
        }

        body.light-mode .verified-badge {
            background: #000;
            color: #fff;
        }

        body.light-mode .post-handle {
            color: #666;
        }

        body.light-mode .post-title {
            color: #000;
        }

        /* Hashtags and Mentions */
        .hashtag {
            color: #888;
            cursor: pointer;
            font-weight: 500;
        }

        .hashtag:hover {
            text-decoration: underline;
        }

        .mention {
            color: #888;
            cursor: pointer;
            font-weight: 500;
        }

        .mention:hover {
            text-decoration: underline;
        }

        body.light-mode .hashtag,
        body.light-mode .mention {
            color: #888;
        }

        /* Trending Hashtag Tags */
        .hashtag-tag {
            display: inline-block;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }

        .hashtag-tag:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        body.light-mode .hashtag-tag {
            background: rgba(0, 0, 0, 0.02);
            border-color: rgba(0, 0, 0, 0.08);
            color: rgba(0, 0, 0, 0.7);
        }

        body.light-mode .hashtag-tag:hover {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.15);
            color: #000;
        }

        /* Modern Settings Styles */
        .settings-card {
            background: #111;
            border: 1px solid #333;
            border-radius: 12px;
            margin-bottom: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .settings-card:hover {
            border-color: #555;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        /* Analytics Card Hover Effects */
        .analytics-stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            border-color: #3a3a3a;
        }

        @media (hover: none) {
            .analytics-stat-card:hover {
                transform: none;
            }
        }

        .settings-card-header {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            padding: 16px 20px;
            border-bottom: 1px solid #333;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .settings-card-header-icon {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }

        .settings-card-header h3 {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin: 0;
            letter-spacing: 0.3px;
        }

        .settings-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid #222;
            transition: background 0.2s ease;
        }

        .settings-item:last-child {
            border-bottom: none;
        }

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

        .settings-item-label {
            flex: 1;
            color: #fff;
            font-size: 13px;
            font-weight: 400;
        }

        .settings-item-description {
            font-size: 11px;
            color: #666;
            margin-top: 4px;
        }

        /* Modern Toggle Switch */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 26px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333;
            transition: 0.3s;
            border-radius: 26px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: #fff;
            transition: 0.3s;
            border-radius: 50%;
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: #888;
        }

        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(22px);
        }

        .toggle-switch input:focus + .toggle-slider {
            box-shadow: 0 0 1px #888;
        }

        /* Settings Action Link */
        .settings-action {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #222;
            text-decoration: none;
            color: #888;
            font-size: 13px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .settings-action:last-child {
            border-bottom: none;
        }

        .settings-action:hover {
            background: #1a1a1a;
            color: #fff;
            padding-left: 24px;
        }

        .settings-action-icon {
            margin-right: 12px;
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .settings-action-arrow {
            margin-left: auto;
            opacity: 0.5;
            transition: transform 0.2s ease;
        }

        .settings-action:hover .settings-action-arrow {
            transform: translateX(4px);
            opacity: 1;
        }

        /* Modern Save Button */
        .settings-save-btn {
            background: linear-gradient(135deg, #888 0%, #666 100%);
            color: #fff;
            border: none;
            padding: 12px 32px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.5px;
        }

        .settings-save-btn:hover {
            background: linear-gradient(135deg, #999 0%, #777 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .settings-save-btn:active {
            transform: translateY(0);
        }

        /* Light Mode Settings */
        body.light-mode .settings-card {
            background: #fff;
            border-color: #ddd;
        }

        body.light-mode .settings-card:hover {
            border-color: #bbb;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .settings-card-header {
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
            border-bottom-color: #ddd;
        }

        body.light-mode .settings-card-header h3 {
            color: #000;
        }

        body.light-mode .settings-item {
            border-bottom-color: #eee;
        }

        body.light-mode .settings-item:hover {
            background: #f9f9f9;
        }

        body.light-mode .settings-item-label {
            color: #000;
        }

        body.light-mode .settings-item-description {
            color: #666;
        }

        body.light-mode .toggle-slider {
            background-color: #ccc;
        }

        body.light-mode .settings-action {
            color: #666;
            border-bottom-color: #eee;
        }

        body.light-mode .settings-action:hover {
            background: #f9f9f9;
            color: #000;
        }

        body.light-mode .post-meta {
            color: #666;
        }

        body.light-mode .post-time {
            color: #666;
        }

        body.light-mode .post-menu {
            color: #000;
        }

        body.light-mode .post-menu:hover {
            background: #ddd;
        }

        body.light-mode .audio-box {
            background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
            border-color: #ddd;
        }

        body.light-mode .audio-box:hover {
            border-color: #bbb;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .play-button {
            background: linear-gradient(135deg, #666 0%, #555 100%);
            color: #fff;
        }

        body.light-mode .play-button:hover {
            background: linear-gradient(135deg, #777 0%, #666 100%);
        }

        body.light-mode .play-button.playing {
            background: linear-gradient(135deg, #1d9bf0 0%, #1a8cd8 100%);
        }

        body.light-mode .waveform {
            background: #f9f9f9;
            border-color: #ddd;
        }

        body.light-mode .waveform:hover {
            border-color: #bbb;
            background: #fff;
        }

        body.light-mode .wave-bar {
            background: linear-gradient(180deg, #999 0%, #777 50%, #999 100%);
        }

        body.light-mode .waveform:hover .wave-bar {
            background: linear-gradient(180deg, #666 0%, #555 50%, #666 100%);
        }

        body.light-mode .waveform.playing .wave-bar {
            background: linear-gradient(180deg, #1d9bf0 0%, #1a8cd8 50%, #1d9bf0 100%);
        }

        body.light-mode .audio-duration {
            color: #666;
        }

        body.light-mode .waveform-progress {
            background: rgba(29, 155, 240, 0.2);
        }

        body.light-mode .current-time {
            color: #666;
        }

        body.light-mode .total-time {
            color: #999;
        }

        body.light-mode .wave-bar {
            background: #666;
        }

        body.light-mode .audio-duration {
            color: #000;
        }

        body.light-mode .action-btn {
            color: #000;
        }

        body.light-mode .action-btn:hover {
            background: #ddd;
        }

        body.light-mode .action-btn.like.liked {
            background: #ccc;
        }

        body.light-mode .widget {
            background: #fff;
            border-color: #999;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .widget-title {
            color: #000;
            border-bottom-color: #999;
        }

        body.light-mode .user-suggestion {
            border-bottom-color: #f0f0f0;
        }

        body.light-mode .user-suggestion:hover {
            background: #f7f9fc;
        }

        body.light-mode .suggestion-avatar {
            border-color: #000;
        }

        body.light-mode .suggestion-name {
            color: #000;
        }

        body.light-mode .suggestion-meta {
            color: #666;
        }

        body.light-mode .suggestion-btn {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        body.light-mode .suggestion-btn:hover {
            background: #333;
        }

        body.light-mode .trending-item {
            border-bottom-color: #f0f0f0;
        }

        body.light-mode .trending-item:hover {
            background: #f7f9fc;
        }

        body.light-mode .trending-circle {
            color: #000;
        }

        body.light-mode .trending-stat {
            color: #666;
        }

        body.light-mode .online-indicator {
            background: #000;
            border-color: #000;
        }

        body.light-mode .btn {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        body.light-mode .btn:hover {
            background: #333;
        }

        body.light-mode .btn-secondary {
            background: rgba(0, 0, 0, 0.05);
            color: #111;
            border-color: rgba(0, 0, 0, 0.15);
        }

        body.light-mode .btn-secondary:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        body.light-mode .record-container {
            background: #fff;
            border-color: #ccc;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .mic-icon {
            background: #f0f0f0;
            border-color: #000;
        }

        body.light-mode .mic-icon:hover {
            background: #ddd;
            border-color: #333;
        }

        body.light-mode .mic-icon.recording {
            background: #fff;
            border-color: #000;
        }

        body.light-mode .timer {
            color: #000;
        }

        body.light-mode .record-hint {
            color: #000;
        }

        /* Light mode for inline styled elements */
        body.light-mode input[type="text"],
        body.light-mode select {
            background: #fff !important;
            color: #000 !important;
            border-color: #999 !important;
        }

        body.light-mode button:not(.theme-toggle),
        body.light-mode input[type="button"] {
            background: #000 !important;
            color: #fff !important;
            border-color: #000 !important;
        }

        body.light-mode input[type="checkbox"] {
            cursor: pointer;
        }

        body.light-mode #settings label {
            color: #000 !important;
        }

        body.light-mode #settings h2, 
        body.light-mode #settings h3,
        body.light-mode #settings p {
            color: #000 !important;
        }

        body.light-mode #settings a {
            color: #666 !important;
        }

        body.light-mode #settings > div > div {
            background: #fff !important;
            border-color: #ccc !important;
        }

        body.light-mode button:not(.theme-toggle):hover {
            background: #333 !important;
        }

        body.light-mode label {
            color: #000 !important;
        }

        body.light-mode h2 {
            color: #000 !important;
        }

        body.light-mode p {
            color: #666 !important;
        }

        body.light-mode a {
            color: #000 !important;
        }

        body.light-mode .login-screen > div > div,
        body.light-mode .record-screen .record-container {
            background: #fff !important;
            border-color: #ccc !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        }

        /* Top Bar */
        .top-bar {
            background: rgba(8, 8, 10, 0.9);
            color: #fff;
            padding: 14px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            backdrop-filter: blur(14px);
        }

        .mobile-menu-btn {
            display: none; /* Hidden on desktop */
        }

        .logo {
            font-family: 'Lobster Two', cursive;
            font-size: 30px;
            letter-spacing: 0.5px;
            color: #fff;
        }

        .top-links {
            display: flex;
            gap: 20px;
            align-items: center;
            font-size: 13px;
            font-weight: 500;
        }

        .top-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            border-bottom: 2px solid transparent;
            padding-bottom: 2px;
            transition: color 0.2s, border-color 0.2s;
        }

        .top-links a:hover {
            color: #fff;
            border-color: #fff;
        }

        .theme-toggle {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
            border: none;
            padding: 8px 18px;
            font-size: 13px;
            cursor: pointer;
            font-weight: 500;
            border-radius: 999px;
            transition: background 0.2s;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .top-icon {
            position: relative;
            cursor: pointer;
            font-size: 18px;
            padding: 8px;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .top-icon:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .notification-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: #f00;
            color: #fff;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            font-size: 9px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.light-mode .notification-badge {
            background: #d00;
        }

        /* Container */
        .container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 24px 32px 32px;
            height: calc(100vh - 60px);
            overflow: hidden;
            display: flex;
            gap: 24px;
        }

        .main-wrapper {
            flex: 1;
            max-width: 760px;
            background: #000;
            border: 1px solid #333;
            box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
            overflow: hidden;
            display: flex;
        }

        /* Sidebar */
        .sidebar {
            width: 240px;
            height: 100%;
            overflow-y: auto;
            flex-shrink: 0;
            padding: 18px;
            background: rgba(17, 17, 22, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
        }

        body.light-mode .sidebar {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        }

        .sidebar::-webkit-scrollbar {
            width: 0px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: transparent;
        }

        .profile-box {
            padding: 18px;
            margin-bottom: 18px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
        }

        .profile-pic {
            width: 58px;
            height: 58px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: #1a1a1a;
            margin-bottom: 12px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .profile-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 2px;
            color: #fff;
        }

        .profile-link {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            text-decoration: none;
        }

        .profile-link:hover {
            color: #aaa;
        }

        .circles-box {
            padding: 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            margin-bottom: 16px;
        }

        .box-title {
            font-weight: 600;
            font-size: 13px;
            margin-bottom: 12px;
            color: #fff;
            text-transform: none;
            letter-spacing: 0.4px;
        }

        .circle-item {
            font-size: 13px;
            padding: 6px 10px;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.8);
            transition: background 0.2s, color 0.2s;
            border-radius: 999px;
        }

        .circle-item:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            height: 100%;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 28px;
            background: rgba(10, 10, 15, 0.6);
        }

        #mainFeed {
            padding: 0;
        }

        .status-card {
            display: none;
            text-align: center;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
            margin-bottom: 16px;
            border-radius: 14px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
        }

        body.light-mode .status-card {
            border: 1px solid rgba(0, 0, 0, 0.08);
            background: #fff;
            color: #555;
        }

        .main-content::-webkit-scrollbar {
            width: 0px;
        }

        .main-content::-webkit-scrollbar-track {
            background: transparent;
        }

        .main-content::-webkit-scrollbar-thumb {
            background: transparent;
        }

        /* Tab Navigation */
        .tabs {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            background: transparent;
            margin-bottom: 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(8px);
        }

        .tab {
            padding: 14px 20px;
            text-align: center;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.6);
            position: relative;
        }

        .tab:hover {
            color: #fff;
        }

        .tab.active {
            color: #fff;
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 30%;
            width: 40%;
            height: 3px;
            background: #fff;
            border-radius: 999px;
        }

        /* Composer */
        .composer {
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 18px;
            margin-bottom: 20px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 18px;
            display: flex;
            gap: 14px;
        }

        .composer-title {
            font-weight: 500;
            font-size: 13px;
            margin-bottom: 12px;
            color: rgba(255, 255, 255, 0.6);
        }

        .composer-input {
            width: 100%;
            padding: 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: #fff;
            font-size: 15px;
            font-family: inherit;
        }

        .composer-input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        body.light-mode .composer {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.light-mode .composer-title {
            color: rgba(0, 0, 0, 0.55);
        }

        body.light-mode .composer-input {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: #111;
        }

        body.light-mode .composer-input::placeholder {
            color: rgba(0, 0, 0, 0.45);
        }

        body.light-mode .record-button {
            color: #fff;
        }

        .record-button {
            background: #fff;
            color: #000;
            border: none;
            padding: 10px 22px;
            font-size: 14px;
            cursor: pointer;
            font-weight: 600;
            border-radius: 999px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .record-button:hover {
            transform: translateY(-1px);
            background: #f0f0f0;
        }

        .record-button:active {
            transform: translateY(0);
        }

        /* Posts */
        .post {
            border-bottom: 1px solid #222;
            padding: 12px;
            background: #000;
            cursor: default;
            transition: background 0.1s;
        }

        .post:hover {
            background: #111;
        }

        .post.liked {
            background: #1a1a1a;
        }

        .post-header {
            display: flex;
            align-items: start;
            margin-bottom: 10px;
            justify-content: space-between;
        }

        .post-header-left {
            display: flex;
            align-items: start;
            flex: 1;
        }

        .post-avatar {
            width: 40px;
            height: 40px;
            border: 1px solid #fff;
            background: #666;
            margin-right: 10px;
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
        }

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

        .post-username-line {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 2px;
        }

        .post-username {
            font-weight: bold;
            font-size: 13px;
            color: #fff;
            cursor: pointer;
        }

        .post-username:hover {
            text-decoration: underline;
        }

        .verified-badge {
            width: 14px;
            height: 14px;
            background: #fff;
            display: inline-block;
            text-align: center;
            color: #000;
            font-size: 9px;
            line-height: 14px;
            font-weight: bold;
        }

        .post-handle {
            font-size: 11px;
            color: #999;
        }

        .post-title {
            font-size: 11px;
            color: #fff;
            margin-top: 3px;
            line-height: 1.3;
        }

        .post-meta {
            font-size: 10px;
            color: #999;
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .post-time {
            font-size: 10px;
            color: #999;
        }

        .post-menu {
            color: #fff;
            cursor: pointer;
            font-size: 14px;
            padding: 4px;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .post-menu:hover {
            background: #222;
            color: #fff;
        }

        /* Modern Audio Player */
        .audio-box {
            border: 1px solid #333;
            border-radius: 12px;
            padding: 16px;
            background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
            margin: 12px 0;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .audio-box:hover {
            border-color: #444;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .audio-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .play-button {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #888 0%, #666 100%);
            color: #fff;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            flex-shrink: 0;
        }

        .play-button:hover {
            background: linear-gradient(135deg, #999 0%, #777 100%);
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .play-button:active {
            transform: scale(0.95);
        }

        .play-button.playing {
            background: linear-gradient(135deg, #1d9bf0 0%, #1a8cd8 100%);
        }

        .play-button.playing:hover {
            background: linear-gradient(135deg, #2ba3f5 0%, #2599e5 100%);
        }

        .waveform {
            flex: 1;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 3px;
            background: #0a0a0a;
            border: 1px solid #222;
            border-radius: 8px;
            padding: 8px 12px;
            transition: all 0.3s ease;
            position: relative;
            cursor: pointer;
            overflow: hidden;
        }

        .waveform:hover {
            border-color: #333;
            background: #111;
        }

        .wave-bar {
            flex: 1;
            min-width: 3px;
            background: linear-gradient(180deg, #888 0%, #666 50%, #888 100%);
            border-radius: 2px;
            opacity: 0.6;
            transition: all 0.3s ease;
            animation: wavePulse 1.5s ease-in-out infinite;
        }

        .wave-bar:nth-child(odd) {
            animation-delay: 0.1s;
        }

        .wave-bar:nth-child(even) {
            animation-delay: 0.2s;
        }

        .waveform:hover .wave-bar {
            opacity: 0.9;
            background: linear-gradient(180deg, #aaa 0%, #888 50%, #aaa 100%);
        }

        .waveform.playing .wave-bar {
            opacity: 1;
            background: linear-gradient(180deg, #1d9bf0 0%, #1a8cd8 50%, #1d9bf0 100%);
            animation: waveActive 0.8s ease-in-out infinite;
        }

        @keyframes wavePulse {
            0%, 100% {
                transform: scaleY(0.6);
            }
            50% {
                transform: scaleY(1);
            }
        }

        @keyframes waveActive {
            0%, 100% {
                transform: scaleY(0.7);
            }
            50% {
                transform: scaleY(1.2);
            }
        }

        .waveform-progress {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            background: rgba(29, 155, 240, 0.15);
            width: 0%;
            transition: width 0.1s linear;
            pointer-events: none;
            z-index: 1;
        }

        .wave-bar {
            position: relative;
            z-index: 2;
            pointer-events: none;
        }

        .audio-duration {
            font-size: 12px;
            color: #888;
            font-weight: 500;
            margin-top: 4px;
            padding-left: 56px;
            letter-spacing: 0.5px;
        }

        .current-time {
            color: #888;
        }

        .total-time {
            color: #666;
        }

        .post-actions {
            display: flex;
            justify-content: space-between;
            padding-top: 12px;
            max-width: 425px;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #fff;
            font-size: 10px;
            cursor: pointer;
            padding: 4px 8px;
            background: transparent;
            border: none;
            font-family: inherit;
            font-weight: bold;
        }

        .action-btn:hover {
            background: #222;
        }

        .action-btn.reply:hover {
            color: #fff;
        }

        .action-btn.repost:hover {
            color: #fff;
        }

        .action-btn.like:hover {
            color: #fff;
        }

        .action-btn.like.liked {
            color: #fff;
            background: #333;
        }

        .action-btn.like.liked .action-icon {
            animation: likeAnimation 0.3s ease;
        }

        @keyframes likeAnimation {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }

        @keyframes counterUpdate {
            0% { color: inherit; }
            50% { color: #1d9bf0; transform: scale(1.1); }
            100% { color: inherit; transform: scale(1); }
        }

        .count.updating {
            animation: counterUpdate 0.5s ease;
        }

        .action-btn.bookmark:hover {
            color: #fff;
        }

        .action-btn.bookmark.bookmarked {
            color: #888;
        }

        body.light-mode .action-btn.bookmark.bookmarked {
            color: #888;
        }

        .action-btn.share:hover {
            color: #fff;
        }

        .action-icon {
            font-size: 14px;
        }

        .follow-btn {
            background: #fff;
            color: #000;
            border: 1px solid #fff;
            padding: 4px 12px;
            font-size: 10px;
            cursor: pointer;
            font-weight: bold;
        }

        .follow-btn:hover {
            background: #ddd;
        }

        .follow-btn.following {
            background: #333;
            color: #fff;
            border: 1px solid #555;
        }

        .follow-btn.following:hover {
            background: #444;
        }

        /* Record Screen */
        .record-screen {
            display: none;
            min-height: 400px;
        }

        .record-screen.active {
            display: block;
        }

        .record-container {
            border: 1px solid #333;
            padding: 30px;
            text-align: center;
            background: #000;
            box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
        }

        .mic-icon {
            width: 120px;
            height: 120px;
            border: 3px solid #fff;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            background: #111;
            cursor: pointer;
        }

        .mic-icon:hover {
            background: #222;
            border-color: #ccc;
        }

        .mic-icon.recording {
            border-color: #fff;
            background: #000;
            animation: recordingBlink 1s infinite;
        }

        @keyframes recordingBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        .timer {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 15px;
            font-family: 'Courier New', monospace;
            color: #fff;
        }

        .record-hint {
            font-size: 11px;
            color: #fff;
            margin-bottom: 20px;
        }

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

        .btn {
            background: #fff;
            color: #000;
            border: 1px solid #fff;
            padding: 6px 15px;
            font-size: 11px;
            cursor: pointer;
            font-weight: bold;
        }

        .btn:hover {
            background: #ddd;
        }

        .btn:active {
            background: #fff;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.12);
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        /* Profile Screen */
        .profile-screen {
            display: none;
        }

        .profile-screen.active {
            display: block;
        }

        /* Explore Screen */
        .explore-screen {
            display: none;
        }

        .explore-screen.active {
            display: block;
        }

        .explore-header {
            padding: 24px 28px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(10, 10, 15, 0.85);
            backdrop-filter: blur(20px);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        body.light-mode .explore-header {
            background: rgba(255, 255, 255, 0.9);
            border-bottom-color: rgba(0, 0, 0, 0.06);
        }

        .explore-search {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 15px;
            background: rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.9);
            font-family: inherit;
            border-radius: 16px;
            transition: all 0.2s;
        }

        .explore-search::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        body.light-mode .explore-search {
            background: rgba(0, 0, 0, 0.02);
            color: #000;
            border-color: rgba(0, 0, 0, 0.08);
        }

        body.light-mode .explore-search::placeholder {
            color: rgba(0, 0, 0, 0.4);
        }

        .explore-search:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        body.light-mode .explore-search:focus {
            border-color: rgba(0, 0, 0, 0.15);
            background: rgba(0, 0, 0, 0.03);
        }

        .explore-content {
            padding: 28px;
            max-width: 680px;
            margin: 0 auto;
        }

        .explore-section {
            margin-bottom: 36px;
        }

        .explore-section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 18px;
            color: rgba(255, 255, 255, 0.95);
            text-transform: none;
            letter-spacing: -0.2px;
        }

        body.light-mode .explore-section-title {
            color: #000;
        }

        .explore-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
        }

        .explore-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 18px;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 28px;
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
        }

        body.light-mode .explore-card {
            background: #fff;
            border-color: rgba(0, 0, 0, 0.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
        }

        .explore-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
        }

        body.light-mode .explore-card:hover {
            background: #fff;
            border-color: rgba(0, 0, 0, 0.1);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        }

        .explore-card-user {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .explore-card-avatar {
            width: 44px;
            height: 44px;
            background: #1a1a1a;
            border: 2px solid rgba(255, 255, 255, 0.15);
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
        }

        body.light-mode .explore-card-avatar {
            border-color: rgba(0, 0, 0, 0.08);
        }

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

        .explore-card-username {
            font-weight: 600;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 3px;
        }

        body.light-mode .explore-card-username {
            color: #000;
        }

        .explore-card-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
        }

        body.light-mode .explore-card-meta {
            color: rgba(0, 0, 0, 0.5);
        }

        .explore-card-title {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-weight: 500;
        }

        body.light-mode .explore-card-title {
            color: #000;
        }

        .explore-card-stats {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            gap: 12px;
        }

        body.light-mode .explore-card-stats {
            color: rgba(0, 0, 0, 0.5);
        }

        .explore-users-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .explore-user-item {
            display: flex;
            align-items: center;
            padding: 18px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 28px;
            transition: all 0.2s;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        }

        body.light-mode .explore-user-item {
            background: #fff;
            border-color: rgba(0, 0, 0, 0.05);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
        }

        .explore-user-item:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        body.light-mode .explore-user-item:hover {
            background: #fff;
            border-color: rgba(0, 0, 0, 0.1);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }

        .explore-user-avatar {
            width: 48px;
            height: 48px;
            background: #1a1a1a;
            border: 2px solid rgba(255, 255, 255, 0.1);
            margin-right: 14px;
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
        }

        body.light-mode .explore-user-avatar {
            border-color: rgba(0, 0, 0, 0.08);
        }

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

        .explore-user-name {
            font-weight: 600;
            font-size: 15px;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 2px;
        }

        body.light-mode .explore-user-name {
            color: #000;
        }

        .explore-user-handle {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 4px;
        }

        body.light-mode .explore-user-handle {
            color: rgba(0, 0, 0, 0.5);
        }

        .explore-user-stats {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
        }

        body.light-mode .explore-user-stats {
            color: rgba(0, 0, 0, 0.5);
        }

        .explore-user-bio {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin: 6px 0;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        body.light-mode .explore-user-bio {
            color: rgba(0, 0, 0, 0.7);
        }

        .explore-follow-btn {
            background: #fff;
            color: #000;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 8px 24px;
            font-size: 14px;
            cursor: pointer;
            font-weight: 600;
            flex-shrink: 0;
            border-radius: 999px;
            transition: all 0.2s;
            text-transform: capitalize;
        }

        body.light-mode .explore-follow-btn {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        .explore-follow-btn:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: scale(1.02);
        }

        body.light-mode .explore-follow-btn:hover {
            background: rgba(0, 0, 0, 0.85);
        }

        .explore-follow-btn:hover {
            background: #f0f0f0;
            transform: scale(1.03);
        }

        body.light-mode .explore-follow-btn {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        .explore-follow-btn:hover {
            background: #ddd;
        }

        body.light-mode .explore-follow-btn:hover {
            background: #333;
        }

        .no-results {
            text-align: center;
            padding: 48px 24px;
            color: rgba(255, 255, 255, 0.35);
            font-size: 13px;
            line-height: 1.6;
        }

        body.light-mode .no-results {
            color: rgba(0, 0, 0, 0.35);
        }

        /* Comments Section */
        .comments-section {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #333;
        }

        body.light-mode .comments-section {
            border-top-color: #ccc;
        }

        .comment {
            padding: 8px 0;
            font-size: 11px;
        }

        .comment-user {
            font-weight: bold;
            color: #fff;
            margin-bottom: 3px;
        }

        body.light-mode .comment-user {
            color: #000;
        }

        .comment-text {
            color: #fff;
            line-height: 1.4;
        }

        body.light-mode .comment-text {
            color: #000;
        }

        .comment-time {
            color: #999;
            font-size: 10px;
            margin-top: 2px;
        }

        body.light-mode .comment-time {
            color: #666;
        }

        .comment-input {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .comment-input input {
            flex: 1;
            padding: 6px 10px;
            border: 1px solid #666;
            font-size: 11px;
            background: #111;
            color: #fff;
            font-family: inherit;
        }

        body.light-mode .comment-input input {
            background: #fff;
            color: #000;
            border-color: #999;
        }

        .comment-input button {
            padding: 6px 12px;
            background: #fff;
            color: #000;
            border: 1px solid #fff;
            font-size: 11px;
            cursor: pointer;
            font-weight: bold;
        }

        body.light-mode .comment-input button {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        /* Notifications Panel */
        .notifications-panel {
            position: fixed;
            top: 56px;
            right: 20px;
            width: 380px;
            max-height: 600px;
            background: rgba(20, 20, 25, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
            display: none;
            z-index: 1000;
            overflow: hidden;
            border-radius: 20px;
            animation: slideDown 0.3s ease-out;
        }

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

        body.light-mode .notifications-panel {
            background: rgba(255, 255, 255, 0.98);
            border-color: rgba(0, 0, 0, 0.1);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
        }

        .notifications-panel.active {
            display: block;
        }

        .notifications-header {
            padding: 18px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-weight: 600;
            font-size: 16px;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.02);
        }

        body.light-mode .notifications-header {
            border-bottom-color: rgba(0, 0, 0, 0.1);
            color: #000;
            background: rgba(0, 0, 0, 0.02);
        }

        .notifications-header .panel-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            opacity: 0.7;
        }

        .notifications-header .panel-close-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            opacity: 1;
        }

        #notificationsList {
            max-height: 550px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        #notificationsList::-webkit-scrollbar {
            width: 6px;
        }

        #notificationsList::-webkit-scrollbar-track {
            background: transparent;
        }

        #notificationsList::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        #notificationsList::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .notification-item {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            position: relative;
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        body.light-mode .notification-item {
            border-bottom-color: rgba(0, 0, 0, 0.05);
        }

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

        body.light-mode .notification-item:hover {
            background: rgba(0, 0, 0, 0.03);
        }

        .notification-item.unread {
            background: rgba(99, 102, 241, 0.1);
            border-left: 3px solid #6366f1;
        }

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

        body.light-mode .notification-item.unread {
            background: rgba(99, 102, 241, 0.08);
        }

        .notification-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.1);
        }

        .notification-icon.like {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .notification-icon.message {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .notification-icon.follow {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .notification-icon.comment {
            background: rgba(168, 85, 247, 0.2);
            color: #a855f7;
        }

        .notification-content {
            flex: 1;
            min-width: 0;
        }

        .notification-text {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.95);
            line-height: 1.5;
            margin-bottom: 6px;
            font-weight: 400;
        }

        body.light-mode .notification-text {
            color: rgba(0, 0, 0, 0.9);
        }

        .notification-time {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        body.light-mode .notification-time {
            color: rgba(0, 0, 0, 0.5);
        }

        /* Messages Panel */
        .messages-panel {
            position: fixed;
            top: 56px;
            right: 20px;
            width: 400px;
            max-height: calc(100vh - 80px);
            background: rgba(10, 10, 15, 0.98);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border-radius: 20px;
            display: none;
            z-index: 1100;
            overflow: hidden;
            backdrop-filter: blur(30px);
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(-10px) scale(0.98);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .messages-panel.active {
            display: flex !important;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        body.light-mode .messages-panel {
            background: #fff;
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
        }

        .messages-header {
            padding: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
        }

        body.light-mode .messages-header {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        .messages-header-top {
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .messages-back-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .messages-back-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateX(-2px) scale(1.05);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .conversation-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            justify-content: center;
            min-width: 0;
        }

        .conversation-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            flex-shrink: 0;
            overflow: hidden;
        }

        .conversation-username {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            letter-spacing: -0.2px;
        }

        body.light-mode .conversation-username {
            color: #111;
        }

        .messages-new-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #fff;
            font-size: 18px;
            font-weight: 300;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .messages-new-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: scale(1.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .messages-title {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            flex: 1;
            text-align: center;
            letter-spacing: -0.3px;
        }

        body.light-mode .messages-title {
            color: #111;
        }

        .panel-close-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            font-size: 18px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .panel-close-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 1);
            transform: rotate(90deg);
        }

        .messages-search-container {
            padding: 0 18px 10px;
        }

        .messages-search {
            width: 100%;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
        }

        .messages-search:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .messages-search::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        body.light-mode .messages-search {
            background: rgba(0, 0, 0, 0.03);
            border-color: rgba(0, 0, 0, 0.1);
            color: #000;
        }

        body.light-mode .messages-search:focus {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.15);
        }

        body.light-mode .messages-search::placeholder {
            color: rgba(0, 0, 0, 0.4);
        }

        /* Notes Section */
        .messages-notes-section {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            flex-shrink: 0;
        }

        .messages-notes-section:empty {
            display: none;
        }

        body.light-mode .messages-notes-section {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        .messages-notes-scroll {
            display: flex;
            gap: 14px;
            padding: 0 18px;
            min-width: min-content;
        }

        .message-note {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
        }

        .message-note-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.15);
            position: relative;
            overflow: hidden;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .message-note:hover .message-note-avatar {
            transform: scale(1.05);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .message-note-bubble {
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 4px 8px;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.7);
            white-space: nowrap;
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            backdrop-filter: blur(10px);
        }

        .message-note-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            max-width: 56px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.light-mode .message-note-label {
            color: rgba(0, 0, 0, 0.6);
        }

        .messages-list {
            padding: 0;
            max-height: 400px;
            overflow-y: auto;
            overflow-x: hidden;
            flex: 1;
            min-height: 0;
        }

        .messages-list.conversation {
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 0;
            min-height: 0;
            overflow: hidden;
        }

        .messages-list.conversation .chat-thread {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px 18px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: flex-start;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }

        .messages-list.conversation .chat-thread::-webkit-scrollbar {
            width: 4px;
        }

        .messages-list.conversation .chat-thread::-webkit-scrollbar-track {
            background: transparent;
        }

        .messages-list.conversation .chat-thread::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
        }

        .messages-list.conversation .chat-thread::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .message-item {
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            cursor: pointer;
            display: flex;
            gap: 14px;
            transition: all 0.2s ease;
            position: relative;
        }

        .message-item:last-child {
            border-bottom: none;
        }

        .message-item:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(2px);
        }

        .message-item.unread {
            background: rgba(255, 255, 255, 0.03);
        }

        .message-item.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 4px;
            background: #667eea;
            border-radius: 50%;
        }

        .message-item.unread .message-user {
            color: #fff;
        }

        .message-avatar {
            width: 50px;
            height: 50px;
            background: #1a1a1a;
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            font-size: 19px;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .message-item:hover .message-avatar {
            transform: scale(1.05);
            border-color: rgba(255, 255, 255, 0.2);
        }

        body.light-mode .message-avatar {
            border-color: rgba(0, 0, 0, 0.08);
        }

        .message-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .message-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }

        .message-user {
            font-weight: 600;
            font-size: 14px;
            color: #fff;
            letter-spacing: -0.2px;
        }

        .message-preview {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.55);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 4px;
            line-height: 1.4;
        }

        .message-item.unread .message-preview {
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }

        .message-time {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.45);
            white-space: nowrap;
        }

        body.light-mode .message-user {
            color: #111;
        }

        body.light-mode .message-preview {
            color: rgba(0, 0, 0, 0.55);
        }

        body.light-mode .message-time {
            color: rgba(0, 0, 0, 0.5);
        }

        .chat-bubble {
            max-width: 75%;
            min-width: 60px;
            padding: 10px 14px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.5;
            color: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            word-wrap: break-word;
            position: relative;
            animation: messageSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            transition: transform 0.2s ease;
        }

        .chat-bubble:hover {
            transform: scale(1.02);
        }

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

        .chat-bubble.sent {
            align-self: flex-end;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border-bottom-right-radius: 6px;
            margin-left: auto;
            margin-right: 0;
        }

        .chat-bubble.received {
            align-self: flex-start;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-bottom-left-radius: 6px;
            margin-right: auto;
            margin-left: 0;
        }

        .chat-bubble-time {
            font-size: 10px;
            margin-top: 4px;
            opacity: 0.65;
            text-align: right;
            font-weight: 400;
        }

        .chat-bubble.received .chat-bubble-time {
            text-align: left;
        }

        .chat-input-container {
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding: 14px 18px;
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(10px);
            flex-shrink: 0;
        }

        body.light-mode .chat-input-container {
            background: rgba(0, 0, 0, 0.02);
            border-top-color: rgba(0, 0, 0, 0.08);
        }

        .chat-input {
            display: flex;
            gap: 10px;
            align-items: center;
            max-width: 100%;
        }

        .chat-input input {
            flex: 1;
            padding: 11px 16px;
            border-radius: 22px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
        }

        .chat-input input:focus {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .chat-input input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        body.light-mode .chat-input input {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
            color: #000;
        }

        body.light-mode .chat-input input:focus {
            background: rgba(0, 0, 0, 0.08);
            border-color: rgba(0, 0, 0, 0.15);
        }

        body.light-mode .chat-input input::placeholder {
            color: rgba(0, 0, 0, 0.4);
        }

        .chat-send-btn {
            padding: 11px 20px;
            border-radius: 22px;
            border: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
        }

        .chat-send-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        }

        .chat-send-btn:active {
            transform: translateY(0);
        }


        body.light-mode .chat-input {
            border-top-color: rgba(0, 0, 0, 0.08);
        }

        body.light-mode .chat-input input {
            background: rgba(0, 0, 0, 0.04);
            border-color: rgba(0, 0, 0, 0.08);
            color: #111;
        }

        /* Post Options Modal */
        .post-options-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .post-options-overlay.active {
            display: flex;
        }

        .post-options-modal {
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 12px;
            padding: 0;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        }

        body.light-mode .post-options-modal {
            background: #fff;
            border-color: #ccc;
        }

        .post-options-header {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid #333;
        }

        body.light-mode .post-options-header {
            border-bottom-color: #ccc;
        }

        .post-options-icon {
            width: 60px;
            height: 60px;
            background: #333;
            border-radius: 12px;
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        body.light-mode .post-options-icon {
            background: #f0f0f0;
        }

        .post-options-title {
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 8px;
        }

        body.light-mode .post-options-title {
            color: #000;
        }

        .post-options-subtitle {
            font-size: 12px;
            color: #999;
        }

        body.light-mode .post-options-subtitle {
            color: #666;
        }

        .post-options-list {
            padding: 8px 0;
        }

        .post-option-item {
            padding: 12px 20px;
            font-size: 13px;
            color: #fff;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        body.light-mode .post-option-item {
            color: #000;
        }

        .post-option-item:hover {
            background: #222;
        }

        body.light-mode .post-option-item:hover {
            background: #f7f9fc;
        }

        .post-option-item.danger {
            color: #f44;
        }

        .post-option-item.danger:hover {
            background: rgba(255, 68, 68, 0.1);
        }

        .post-option-bullet {
            width: 4px;
            height: 4px;
            background: #fff;
            border-radius: 50%;
        }

        body.light-mode .post-option-bullet {
            background: #000;
        }

        .post-options-footer {
            padding: 16px 20px;
            border-top: 1px solid #333;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        body.light-mode .post-options-footer {
            border-top-color: #ccc;
        }

        .post-options-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            color: #999;
        }

        body.light-mode .post-options-checkbox {
            color: #666;
        }

        .post-options-checkbox input[type="checkbox"] {
            cursor: pointer;
        }

        .post-options-ok-btn {
            background: #888;
            color: #fff;
            border: none;
            padding: 8px 32px;
            font-size: 13px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .post-options-ok-btn:hover {
            background: #999;
        }

        body.light-mode .post-options-ok-btn {
            background: #888;
        }

        body.light-mode .post-options-ok-btn:hover {
            background: #999;
        }

        /* Modern Profile Styles */
        .profile-banner-container {
            position: relative;
            width: 100%;
            height: 240px;
            overflow: hidden;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
            margin: 0;
            margin-top: 20px;
        }

        .profile-banner {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background-size: cover;
            background-position: center;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
        }

        .profile-header {
            background: #111;
            border: 1px solid #333;
            border-radius: 16px;
            padding: 0;
            margin-top: 0;
            margin-bottom: 20px;
            text-align: center;
            overflow: visible;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            position: relative;
        }

        .profile-header:hover {
            border-color: #444;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }

        .profile-avatar-container {
            margin-top: -70px;
            position: relative;
            display: inline-block;
            margin-bottom: 16px;
            z-index: 10;
        }

        .profile-large-pic {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: #1a1a1a;
            border: 5px solid #111;
            margin: 0 auto;
            display: block;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
        }

        .profile-large-pic:hover {
            transform: scale(1.05);
        }

        .profile-username {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 6px;
            color: #fff;
            letter-spacing: -0.5px;
        }

        .profile-handle {
            font-size: 15px;
            color: #888;
            margin-bottom: 12px;
            cursor: pointer;
            transition: color 0.2s ease;
            display: inline-block;
        }

        .profile-handle:hover {
            color: #aaa;
        }

        .profile-bio {
            font-size: 14px;
            color: #ccc;
            margin-bottom: 16px;
            line-height: 1.5;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 20px;
        }

        .profile-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 20px;
            padding: 0 20px;
        }

        .profile-info-item {
            font-size: 13px;
            color: #888;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .profile-info-item a {
            color: #888;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .profile-info-item a:hover {
            color: #aaa;
        }

        .profile-stats {
            display: flex;
            gap: 32px;
            justify-content: center;
            margin: 24px 0;
            padding: 20px;
            border-top: 1px solid #222;
            border-bottom: 1px solid #222;
        }

        .profile-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .profile-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
        }

        .profile-stat-label {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .profile-tab.active {
            color: #fff !important;
            border-bottom-color: #1da1f2 !important;
        }

        .profile-tab:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .profile-actions {
            padding: 0 20px 20px;
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .profile-btn {
            padding: 10px 24px;
            background: #888;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.3px;
        }

        .profile-btn:hover {
            background: #999;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

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

        .profile-btn-primary {
            background: linear-gradient(135deg, #888 0%, #666 100%);
        }

        .profile-btn-secondary {
            background: #1d9bf0;
        }

        .profile-btn-secondary:hover {
            background: #1a8cd8;
        }

        .profile-circles {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            padding: 0 20px 20px;
        }

        .circle-tag {
            border: 1px solid #444;
            padding: 6px 14px;
            font-size: 12px;
            background: #1a1a1a;
            color: #aaa;
            border-radius: 20px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .circle-tag:hover {
            background: #222;
            border-color: #555;
            color: #fff;
            transform: translateY(-1px);
        }

        /* Light Mode Profile */
        body.light-mode .profile-banner-container {
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
        }

        body.light-mode .profile-header {
            background: #fff;
            border-color: #ddd;
        }

        body.light-mode .profile-header:hover {
            border-color: #bbb;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .profile-large-pic {
            border-color: #fff;
            background: #f5f5f5;
        }

        body.light-mode .profile-username {
            color: #000;
        }

        body.light-mode .profile-handle {
            color: #666;
        }

        body.light-mode .profile-handle:hover {
            color: #000;
        }

        body.light-mode .profile-bio {
            color: #333;
        }

        body.light-mode .profile-info-item {
            color: #666;
        }

        body.light-mode .profile-info-item a {
            color: #666;
        }

        body.light-mode .profile-info-item a:hover {
            color: #000;
        }

        body.light-mode .profile-stats {
            border-top-color: #eee;
            border-bottom-color: #eee;
        }

        body.light-mode .profile-stat-value {
            color: #000;
        }

        body.light-mode .profile-stat-label {
            color: #666;
        }

        body.light-mode .circle-tag {
            background: #f5f5f5;
            border-color: #ddd;
            color: #666;
        }

        body.light-mode .circle-tag:hover {
            background: #e8e8e8;
            border-color: #bbb;
            color: #000;
        }

        /* ========================================
           ECHOES FEATURE (Instagram Stories for Audio)
           ======================================== */
        
        /* Echo Reel (Horizontal Profile Bubbles) - Instagram Stories Style */
        .echo-reel {
            display: flex;
            gap: 16px;
            padding: 16px 20px;
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
            background: transparent;
            border-bottom: 1px solid #222;
            margin-bottom: 0;
            min-height: 100px;
            position: relative;
            z-index: 1;
        }

        .echo-reel::-webkit-scrollbar {
            display: none;
        }

        .echo-bubble {
            position: relative;
            flex-shrink: 0;
            width: 70px;
            min-width: 70px;
            cursor: pointer;
            transition: transform 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .echo-bubble:hover {
            transform: scale(1.05);
        }

        .echo-bubble.has-echo {
            padding: 3px;
            background: linear-gradient(135deg, #1d9bf0, #ff6b6b, #ffd93d, #6bcf7f);
            border-radius: 50%;
            animation: echoGlow 2s ease-in-out infinite;
        }

        .echo-bubble.has-echo .echo-bubble-avatar {
            width: 64px;
            height: 64px;
            border: 2px solid #0a0a0a;
        }

        .echo-bubble.no-echo {
            padding: 0;
            background: transparent;
            border-radius: 50%;
        }

        .echo-bubble.no-echo .echo-bubble-avatar {
            width: 70px;
            height: 70px;
            border: none;
        }

        .echo-bubble-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            color: #fff;
            position: relative;
            overflow: hidden;
            background: transparent;
            flex-shrink: 0;
        }

        .echo-bubble-avatar span {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .echo-bubble-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
        }

        .echo-bubble-avatar span {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .echo-bubble-plus {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 22px;
            height: 22px;
            background: #1d9bf0;
            border: 2.5px solid #0a0a0a;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 300;
            color: #fff;
            z-index: 10;
            pointer-events: none;
            line-height: 1;
        }

        .echo-bubble-username {
            font-size: 11px;
            color: #888;
            white-space: nowrap;
            max-width: 70px;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            margin-top: 6px;
            position: relative;
            z-index: 1;
            pointer-events: none;
        }

        @keyframes echoGlow {
            0%, 100% {
                box-shadow: 0 0 10px rgba(29, 155, 240, 0.5);
            }
            50% {
                box-shadow: 0 0 20px rgba(29, 155, 240, 0.8);
            }
        }

        /* Echo Creation UI */
        .echo-create-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: #000;
            z-index: 10000;
            display: none;
            flex-direction: column;
        }

        .echo-create-container.active {
            display: flex;
        }

        .echo-create-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            z-index: 10;
        }

        .echo-create-close {
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: #fff;
            font-size: 24px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .echo-create-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: background 0.3s ease;
        }

        .echo-record-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 5;
        }

        .echo-record-button {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: #fff;
            border: 4px solid #000;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .echo-record-button.recording {
            background: #ff4444;
            animation: pulse 1s ease-in-out infinite;
        }

        .echo-record-button:active {
            transform: scale(0.95);
        }

        .echo-live-waveform {
            width: 90%;
            max-width: 400px;
            height: 100px;
            margin: 30px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .echo-wave-bar {
            flex: 1;
            min-width: 4px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 2px;
            transition: height 0.1s ease;
        }

        .echo-timer {
            color: #fff;
            font-size: 24px;
            font-weight: 600;
            margin-top: 20px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .echo-caption-input {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 400px;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            color: #fff;
            font-size: 14px;
            z-index: 10;
        }

        .echo-caption-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        /* Fullscreen Echo Player */
        .echo-player {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 10001;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .echo-player.active {
            display: flex;
        }

        .echo-player-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition: background 0.5s ease;
        }

        .echo-player-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            position: relative;
            z-index: 10;
        }

        .echo-player-username {
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .echo-player-header-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .echo-player-menu-btn {
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: #fff;
            font-size: 24px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: rotate(90deg);
            font-weight: bold;
        }

        .echo-player-menu-btn:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .echo-menu-dropdown {
            position: absolute;
            top: 70px;
            right: 20px;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 12px;
            padding: 8px 0;
            min-width: 150px;
            z-index: 10002;
            display: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        .echo-menu-dropdown.active {
            display: block;
        }

        .echo-menu-item {
            width: 100%;
            padding: 12px 20px;
            background: none;
            border: none;
            color: #fff;
            text-align: left;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
        }

        .echo-menu-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .echo-menu-item:first-child {
            border-radius: 12px 12px 0 0;
        }

        .echo-menu-item:last-child {
            border-radius: 0 0 12px 12px;
        }

        .echo-player-close {
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: #fff;
            font-size: 24px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .echo-progress-bar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.2);
            z-index: 10;
        }

        .echo-progress-fill {
            height: 100%;
            background: #fff;
            transition: width 0.1s linear;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .echo-player-waveform {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 5;
            padding: 40px;
            cursor: pointer;
        }

        .echo-dynamic-waveform {
            width: 100%;
            max-width: 600px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .echo-dynamic-bar {
            flex: 1;
            min-width: 6px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 3px;
            transition: height 0.15s ease;
            box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
        }

        .echo-player-reactions {
            display: flex;
            justify-content: center;
            gap: 20px;
            padding: 30px 20px;
            position: relative;
            z-index: 10;
        }

        .echo-reaction-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .echo-reaction-btn:hover {
            transform: scale(1.1);
            background: rgba(0, 0, 0, 0.7);
        }

        .echo-reaction-btn:active {
            transform: scale(0.95);
        }

        .echo-voice-vibe-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1d9bf0 0%, #1a8cd8 100%);
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(29, 155, 240, 0.4);
        }

        .echo-voice-vibe-btn.recording {
            background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        /* Light Mode Echoes */
        body.light-mode .echo-reel {
            background: transparent;
            border-bottom-color: #ddd;
        }

        body.light-mode .echo-bubble.no-echo {
            background: #ddd;
        }

        body.light-mode .echo-bubble.no-echo .echo-bubble-avatar {
            border-color: #fff;
        }

        .screen {
            display: none;
        }

        .screen.active {
            display: block;
        }

        /* Right Sidebar */
        /* Right Sidebar Wrapper */
        .right-sidebar-wrapper {
            position: relative;
            width: 280px;
        }

        .right-sidebar {
            width: 100%;
            display: none;
            flex-direction: column;
            gap: 16px;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0 4px;
            max-height: calc(100vh - 100px);
            -webkit-overflow-scrolling: touch;
        }

        .right-sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .right-sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .right-sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .right-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        @media (min-width: 1100px) {
            .right-sidebar-wrapper {
                display: block;
            }
            .right-sidebar {
                display: flex;
            }
        }

        /* Plus Button */
        .search-plus-btn {
            position: absolute;
            right: -45px;
            top: 0;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            font-size: 24px;
            font-weight: 300;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            z-index: 100;
        }

        .search-plus-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: scale(1.05);
        }

        .search-plus-btn.hidden {
            display: none;
        }

        /* Widget Menu Container */
        .widget-menu-container {
            position: relative;
            z-index: 10000;
        }

        /* Widget Menu Dropdown */
        .widget-menu-dropdown {
            position: absolute;
            right: -45px;
            top: 45px;
            width: 200px;
            background: #111116 !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
            backdrop-filter: blur(20px);
            z-index: 99999 !important;
            animation: slideDownMenu 0.2s ease-out;
            overflow: hidden;
            pointer-events: auto !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

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


        .widget-menu-items {
            max-height: 300px;
            overflow-y: auto;
            pointer-events: auto !important;
            position: relative;
            z-index: 100000;
        }

        .widget-menu-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: #fff;
            pointer-events: auto !important;
            position: relative;
            z-index: 10001;
        }

        .widget-menu-item:last-child {
            border-bottom: none;
        }

        .widget-menu-item:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .widget-menu-icon {
            font-size: 16px;
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

        .widget-menu-text {
            flex: 1;
            font-size: 13px;
            font-weight: 500;
        }

        .widget-menu-chevron {
            color: rgba(255, 255, 255, 0.4);
            font-size: 18px;
            margin-left: 8px;
        }

        body.light-mode .widget-menu-dropdown {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.15);
            opacity: 1 !important;
        }


        body.light-mode .widget-menu-item {
            color: #000;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.light-mode .widget-menu-item:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        body.light-mode .widget-menu-chevron {
            color: rgba(0, 0, 0, 0.4);
        }

        /* Widget Content Styles */
        .widget-content {
            padding: 8px 0;
        }

        .widget-empty {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            text-align: center;
            padding: 20px 0;
        }

        body.light-mode .widget-empty {
            color: rgba(0, 0, 0, 0.4);
        }

        /* All Widgets Animation */
        .search-widget,
        .activity-widget,
        .profile-widget,
        .insights-widget,
        .feeds-widget {
            animation: slideInWidget 0.3s ease-out;
        }

        /* Mini Profile Widget Styles */
        .mini-profile-container {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.02);
        }

        .mini-profile-banner {
            width: 100%;
            height: 80px;
            position: relative;
        }

        .mini-profile-content {
            position: relative;
            padding: 0 12px 12px 12px;
            margin-top: -30px;
        }

        .mini-profile-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 3px solid #111116;
            position: relative;
            z-index: 2;
            margin-bottom: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .mini-profile-info {
            margin-top: 4px;
        }

        .mini-profile-name {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
        }

        .mini-profile-handle {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
        }

        .mini-profile-bio {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.5;
            margin-top: 12px;
            word-wrap: break-word;
        }

        .mini-profile-stats {
            display: flex;
            gap: 16px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mini-stat {
            flex: 1;
            text-align: center;
        }

        .mini-profile-link {
            display: block;
            text-align: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mini-profile-link:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        body.light-mode .mini-profile-container {
            background: rgba(0, 0, 0, 0.02);
        }

        body.light-mode .mini-profile-avatar {
            border-color: #ffffff;
        }

        body.light-mode .mini-profile-handle {
            color: rgba(0, 0, 0, 0.5);
        }

        body.light-mode .mini-profile-bio {
            color: rgba(0, 0, 0, 0.7);
        }

        body.light-mode .mini-profile-stats {
            border-top-color: rgba(0, 0, 0, 0.1);
        }

        body.light-mode .mini-stat div:first-child {
            color: #000;
        }

        body.light-mode .mini-stat div:last-child {
            color: rgba(0, 0, 0, 0.5);
        }

        body.light-mode .mini-profile-link {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
            color: rgba(0, 0, 0, 0.9);
        }

        body.light-mode .mini-profile-link:hover {
            background: rgba(0, 0, 0, 0.08);
        }

        @keyframes slideInWidget {
            from {
                opacity: 0;
                transform: translateX(10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .search-widget-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .search-widget-close {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 18px;
            cursor: pointer;
            padding: 4px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
            line-height: 1;
        }

        .search-widget-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }

        .search-widget-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .search-widget-input {
            width: 100%;
            padding: 10px 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #fff;
            font-size: 12px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
        }

        .search-widget-input:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .search-widget-results {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 8px;
        }

        .search-widget-empty {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            text-align: center;
            padding: 20px 0;
        }

        .search-widget-result-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            cursor: pointer;
            transition: background 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-widget-result-item:last-child {
            border-bottom: none;
        }

        .search-widget-result-item:hover {
            background: rgba(255, 255, 255, 0.05);
            margin: 0 -8px;
            padding: 8px;
            border-radius: 8px;
        }

        .search-widget-result-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .search-widget-result-info {
            flex: 1;
            min-width: 0;
        }

        .search-widget-result-name {
            font-size: 12px;
            font-weight: 500;
            color: #fff;
            margin-bottom: 2px;
        }

        .search-widget-result-meta {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
        }

        @media (max-width: 1100px) {
            .search-plus-btn {
                display: none;
            }
        }

        /* Modernized feed overrides */
        .main-wrapper {
            background: rgba(15, 15, 19, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
        }

        body.light-mode .main-wrapper {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        }

        .sidebar,
        .right-sidebar {
            background: rgba(17, 17, 22, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            padding: 18px;
            box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
        }

        body.light-mode .sidebar,
        body.light-mode .right-sidebar {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
        }

        .composer {
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
        }

        body.light-mode .composer {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.06);
        }

        .composer-input {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        body.light-mode .composer-input {
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.08);
            color: #111;
        }

        .post {
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(8, 8, 12, 0.85);
            padding: 20px;
            border-radius: 24px;
            margin-bottom: 18px;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
        }

        .post:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }

        body.light-mode .post {
            border: 1px solid rgba(0, 0, 0, 0.05);
            background: #fff;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        }

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

        .post-handle {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.55);
        }

        body.light-mode .post-handle {
            color: rgba(0, 0, 0, 0.55);
        }

        .post-title {
            font-size: 15px;
            color: #e6e7eb;
            line-height: 1.6;
            margin-top: 8px;
        }

        body.light-mode .post-title {
            color: #1a1a1f;
        }

        .post-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.45);
            margin-top: 10px;
        }

        body.light-mode .post-meta {
            color: rgba(0, 0, 0, 0.5);
        }

        .action-btn {
            gap: 6px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            padding: 6px 12px;
            border-radius: 999px;
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        body.light-mode .action-btn {
            color: rgba(0, 0, 0, 0.6);
        }

        body.light-mode .action-btn:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #000;
        }

        .widget {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 18px;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
        }

        body.light-mode .widget {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
        }

        .widget-title {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        /* ============================================
           RESPONSIVE DESIGN - MOBILE & TABLET SUPPORT
           ============================================ */

        /* Mobile First - Small phones (up to 480px) */
        @media (max-width: 480px) {
            * {
                -webkit-font-smoothing: antialiased !important;
                -moz-osx-font-smoothing: grayscale !important;
                text-rendering: optimizeLegibility !important;
            }

            html, body {
                -webkit-text-size-adjust: none !important;
                text-size-adjust: none !important;
            }

            body {
                font-size: 13px;
            }

            .top-bar {
                padding: 8px 8px;
                height: 48px;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1000;
                -webkit-transform: translateZ(0);
                transform: translateZ(0);
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .logo {
                font-size: 18px;
                margin-left: 40px;
                flex: 1;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .top-links {
                gap: 4px;
                font-size: 0;
                display: flex;
                align-items: center;
            }

            .top-links a {
                display: none; /* Hide text links on very small screens */
            }

            .top-icon {
                font-size: 18px;
                padding: 6px;
                min-width: 32px;
                min-height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .theme-toggle {
                padding: 6px 10px;
                font-size: 10px;
                min-height: 32px;
                white-space: nowrap;
            }

            .mobile-menu-btn {
                display: block !important;
                position: absolute;
                left: 8px;
                top: 50%;
                transform: translateY(-50%);
                background: none;
                border: none;
                color: #fff;
                font-size: 20px;
                padding: 4px 8px;
                cursor: pointer;
                z-index: 100;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
                user-select: none;
                -webkit-user-select: none;
                -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
            }

            .main-wrapper {
                flex-direction: row;
                width: 100%;
                margin: 0;
                border: none;
                margin-top: 48px;
            }

            .sidebar {
                display: none !important; /* Hide sidebar by default on mobile */
                width: 100%;
                border-right: none;
                border-bottom: 1px solid #333;
                padding: 10px;
            }

            .main-content {
                width: 100% !important;
                flex: none !important;
                border-right: none;
                border-left: none;
                height: calc(100vh - 48px) !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                position: relative;
                padding: 0 8px;
            }

            #mainFeed {
                height: auto !important;
                overflow-y: visible !important;
            }

            .screen {
                height: 100%;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .right-sidebar {
                display: none !important; /* Always hide on mobile */
            }

            .right-sidebar-wrapper {
                display: none !important; /* Hide entire right sidebar wrapper on mobile */
            }

            .search-plus-btn {
                display: none !important; /* Hide search plus button on mobile */
            }

            .search-widget {
                display: none !important; /* Hide search widget on mobile */
            }

            /* Show sidebar when active */
            .sidebar.mobile-active {
                display: block !important;
                position: fixed;
                top: 48px;
                left: 0;
                width: 80%;
                max-width: 320px;
                bottom: 0;
                z-index: 999;
                background: #1a1a1a;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                box-shadow: 4px 0 20px rgba(0,0,0,0.8);
                animation: slideIn 0.3s ease-out;
                border-right: 2px solid #333;
                touch-action: pan-y;
            }

            /* Improve sidebar content visibility on mobile */
            .sidebar.mobile-active {
                padding: 20px !important;
            }

            .sidebar.mobile-active .profile-box {
                background: #1a1a1a !important;
                border: 2px solid #555 !important;
                margin-bottom: 15px;
                padding: 15px !important;
            }

            .sidebar.mobile-active .circles-box {
                background: #1a1a1a !important;
                border: 2px solid #555 !important;
                margin-bottom: 15px;
                padding: 15px !important;
            }

            .sidebar.mobile-active .profile-name,
            .sidebar.mobile-active .box-title {
                color: #fff !important;
                font-weight: bold !important;
                font-size: 14px !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            .sidebar.mobile-active .profile-link,
            .sidebar.mobile-active .circle-item {
                color: #ddd !important;
                visibility: visible !important;
                opacity: 1 !important;
                font-size: 13px !important;
            }

            .sidebar.mobile-active .profile-link a {
                color: #5ca3ff !important;
                text-decoration: underline;
            }

            .sidebar.mobile-active .circle-item {
                padding: 14px 16px;
                margin: 6px 0;
                border-radius: 8px;
                transition: background 0.2s;
                font-size: 14px;
                min-height: 44px;
                display: flex;
                align-items: center;
                cursor: pointer;
                -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
            }

            .sidebar.mobile-active .circle-item:hover,
            .sidebar.mobile-active .circle-item:active {
                background: #333 !important;
            }

            .sidebar.mobile-active .profile-pic {
                border: 3px solid #555 !important;
                width: 80px !important;
                height: 80px !important;
            }

            @keyframes slideIn {
                from {
                    transform: translateX(-100%);
                }
                to {
                    transform: translateX(0);
                }
            }

            /* Overlay when sidebar is open - REMOVED BACKDROP-FILTER */
            body::after {
                content: '';
                position: fixed;
                top: 56px;
                left: 320px; /* Only cover area not under sidebar */
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.6);
                z-index: 998;
                display: none;
                pointer-events: none;
            }

            body.menu-open::after {
                display: block;
                pointer-events: auto;
            }

            /* Light mode overlay */
            body.light-mode.menu-open::after {
                background: rgba(255, 255, 255, 0.7);
            }

            body.light-mode .sidebar.mobile-active {
                background: #f9f9f9;
                border-right: 1px solid #ddd;
            }

            body.light-mode .sidebar.mobile-active .profile-box {
                background: #fff !important;
                border: 1px solid #ddd !important;
                margin-bottom: 15px;
            }

            body.light-mode .sidebar.mobile-active .circles-box {
                background: #fff !important;
                border: 1px solid #ddd !important;
                margin-bottom: 15px;
            }

            body.light-mode .sidebar.mobile-active .profile-name,
            body.light-mode .sidebar.mobile-active .box-title {
                color: #000 !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            body.light-mode .sidebar.mobile-active .profile-link,
            body.light-mode .sidebar.mobile-active .circle-item {
                color: #333 !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            body.light-mode .sidebar.mobile-active .circle-item:hover {
                background: #f0f0f0 !important;
            }

            body.light-mode .sidebar.mobile-active .profile-pic {
                border: 2px solid #ddd !important;
            }

            body.light-mode .mobile-menu-btn {
                color: #000;
            }

            .tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding: 0 10px;
            }

            .tab {
                font-size: 13px;
                padding: 12px 16px;
                min-width: 90px;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .composer {
                padding: 16px;
                margin: 10px;
                border-radius: 16px;
            }

            .composer-title {
                font-size: 12px;
            }

            .record-button {
                padding: 12px 24px;
                font-size: 13px;
                min-height: 44px;
                border-radius: 999px;
            }

            .post {
                padding: 16px;
                margin: 10px;
                border-radius: 16px;
            }

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

            .post-username {
                font-size: 12px;
            }

            .post-handle {
                font-size: 10px;
            }

            .post-title {
                font-size: 14px;
                line-height: 1.5;
                margin: 10px 0;
            }

            .post-meta {
                font-size: 10px;
            }

            .audio-box {
                padding: 12px;
                margin: 12px 0;
            }

            .post-actions {
                padding: 12px 0;
            }

            .post-actions button,
            .post-actions .action-btn {
                min-width: 44px;
                min-height: 44px;
                padding: 10px 14px;
                font-size: 14px;
            }

            /* Make all interactive elements touch-friendly */
            button, .btn, .action-btn, .tab, .circle-item {
                -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
                touch-action: manipulation;
            }

            .audio-box {
                padding: 12px;
                margin: 10px 0;
                border-radius: 10px;
            }

            .audio-controls {
                gap: 10px;
            }

            .play-button {
                width: 44px;
                height: 44px;
                font-size: 16px;
                min-width: 44px;
                min-height: 44px;
            }

            .waveform {
                height: 44px;
                padding: 6px 10px;
            }

            .audio-duration {
                font-size: 11px;
                padding-left: 54px;
            }

            .post-actions {
                padding: 12px 0;
            }

            .post-actions button,
            .post-actions .action-btn {
                min-width: 44px;
                min-height: 44px;
                padding: 8px 12px;
                font-size: 14px;
            }

            .action-btn {
                font-size: 13px;
                padding: 10px 14px;
                min-width: 44px;
                min-height: 44px;
            }

            .action-icon {
                font-size: 12px;
            }

            .widget {
                margin: 8px;
                padding: 10px;
            }

            .widget-title {
                font-size: 11px;
                padding: 8px;
            }

            /* Settings page mobile */
            .settings-card {
                margin-bottom: 16px;
            }

            .settings-card-header {
                padding: 14px 16px;
            }

            .settings-card-header h3 {
                font-size: 13px;
            }

            .settings-item {
                padding: 14px 16px;
            }

            .settings-item-label {
                font-size: 12px;
            }

            .settings-item-description {
                font-size: 10px;
            }

            .settings-action {
                padding: 14px 16px;
                font-size: 12px;
            }

            .settings-save-btn {
                padding: 10px 24px;
                font-size: 12px;
                width: 100%;
            }

            /* Profile page mobile */
            .profile-banner-container {
                height: 180px;
            }

            .profile-header {
                margin-bottom: 16px;
            }

            .profile-avatar-container {
                margin-top: -60px;
            }

            .profile-large-pic {
                width: 120px;
                height: 120px;
                border-width: 4px;
            }

            .profile-username {
                font-size: 20px;
            }

            .profile-handle {
                font-size: 13px;
            }

            .profile-bio {
                font-size: 13px;
                padding: 0 16px;
            }

            .profile-stats {
                gap: 20px;
                padding: 16px;
            }

            .profile-stat-value {
                font-size: 18px;
            }

            .profile-stat-label {
                font-size: 11px;
            }

            .profile-actions {
                padding: 0 16px 16px;
                flex-direction: column;
            }

            .profile-btn {
                width: 100%;
                padding: 12px 20px;
                font-size: 14px;
            }

            #otherUserButtons {
                flex-direction: column;
                width: 100%;
            }

            .profile-circles {
                padding: 0 16px 16px;
                gap: 8px;
            }

            .circle-tag {
                font-size: 11px;
                padding: 5px 12px;
            }

            /* Explore page mobile */
            .explore-grid {
                grid-template-columns: 1fr; /* Single column on mobile */
            }

            .explore-card {
                padding: 10px;
            }

            /* Analytics page mobile */
            #analytics .settings-card {
                margin: 8px;
            }

            #analytics > div {
                padding: 12px !important;
            }

            #analytics .analytics-stat-card {
                padding: 16px !important;
            }

            #analytics .analytics-stat-card div[style*="font-size: 36px"] {
                font-size: 28px !important;
            }

            #analytics div[style*="grid-template-columns: repeat"] {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }

            /* Bookmarks page mobile */
            #bookmarks > div {
                padding: 12px !important;
            }

            #bookmarks div[style*="padding: 60px"] {
                padding: 40px 20px !important;
            }

            #bookmarks div[style*="font-size: 48px"] {
                font-size: 36px !important;
            }

            /* Notifications panel mobile */
            .notifications-panel,
            .messages-panel {
                width: 100%;
                right: 0;
                left: 0;
                top: 56px;
                max-height: 70vh;
                z-index: 10000 !important;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                border: none;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
                transition: transform 0.3s ease-out, opacity 0.3s ease-out;
                transform: translateY(-100%);
                opacity: 0;
            }
            
            /* Ensure panels don't interfere with page when closed */
            .notifications-panel:not(.active),
            .messages-panel:not(.active) {
                display: block !important;
                pointer-events: none !important;
                transform: translateY(-100%);
                opacity: 0;
            }
            
            /* When panels are open, make them accessible */
            .notifications-panel.active,
            .messages-panel.active {
                display: block !important;
                pointer-events: auto !important;
                transform: translateY(0);
                opacity: 1;
            }

            /* Post options modal mobile */
            .post-options-modal {
                width: 90%;
                max-width: 300px;
            }

            /* Record screen mobile */
            .record-container {
                padding: 20px;
                margin: 10px;
            }

            .mic-icon {
                width: 80px;
                height: 80px;
                font-size: 35px;
            }

            .timer {
                font-size: 24px;
            }
        }

        /* Tablets and medium phones (481px to 768px) */
        @media (min-width: 481px) and (max-width: 768px) {
            * {
                -webkit-font-smoothing: antialiased !important;
                -moz-osx-font-smoothing: grayscale !important;
                text-rendering: optimizeLegibility !important;
            }

            html, body {
                -webkit-text-size-adjust: none !important;
                text-size-adjust: none !important;
            }

            .top-bar {
                padding: 10px 12px;
                height: 50px;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1000;
                -webkit-transform: translateZ(0);
                transform: translateZ(0);
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .logo {
                font-size: 20px;
                margin-left: 45px;
                flex: 1;
            }

            .mobile-menu-btn {
                display: block !important;
                position: absolute;
                left: 8px;
                top: 50%;
                transform: translateY(-50%);
                background: none;
                border: none;
                color: #fff;
                font-size: 22px;
                padding: 4px 8px;
                cursor: pointer;
                z-index: 100;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
                user-select: none;
                -webkit-user-select: none;
                -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
            }

            .main-wrapper {
                flex-direction: row;
                width: 100%;
                margin-top: 50px;
            }

            .sidebar {
                display: none !important;
                width: 100%;
                border-right: none;
                border-bottom: 1px solid #333;
            }

            .sidebar.mobile-active {
                display: block !important;
                position: fixed;
                top: 50px;
                left: 0;
                width: 60%;
                max-width: 400px;
                bottom: 0;
                z-index: 999;
                background: #0a0a0a;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                box-shadow: 4px 0 12px rgba(0,0,0,0.5);
                animation: slideIn 0.3s ease-out;
                touch-action: pan-y;
            }

            .main-content {
                width: 100% !important;
                flex: none !important;
                border-right: none;
                border-left: none;
                height: calc(100vh - 50px) !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                padding: 0 12px;
            }

            .right-sidebar {
                display: none !important;
            }

            .right-sidebar-wrapper {
                display: none !important; /* Hide entire right sidebar wrapper on tablets */
            }

            .search-plus-btn {
                display: none !important; /* Hide search plus button on tablets */
            }

            .search-widget {
                display: none !important; /* Hide search widget on tablets */
            }

            .post {
                padding: 12px;
                margin-bottom: 12px;
            }

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

            .post-username {
                font-size: 13px;
            }

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

            .explore-grid {
                grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
            }

            .notifications-panel,
            .messages-panel {
                width: 350px;
            }
        }

        /* Small desktops and large tablets (769px to 1099px) */
        @media (min-width: 769px) and (max-width: 1099px) {
            .main-wrapper {
                width: 95%;
            }

            .sidebar {
                width: 220px;
            }

            .main-content {
                flex: 1;
            }

            .right-sidebar {
                display: none; /* Hide right sidebar on medium screens */
            }

            .explore-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Landscape mode on phones */
        @media (max-height: 500px) and (orientation: landscape) {
            .top-bar {
                height: 35px;
                padding: 6px 10px;
            }

            .logo {
                font-size: 18px;
            }

            .sidebar {
                display: none; /* Hide sidebar in landscape on small screens */
            }

            .main-content {
                width: 100%;
            }
        }

        /* iPhone X and newer (with notch) */
        @media only screen 
        and (device-width: 375px) 
        and (device-height: 812px) 
        and (-webkit-device-pixel-ratio: 3) {
            .top-bar {
                padding-top: env(safe-area-inset-top, 10px);
            }

            body {
                padding-bottom: env(safe-area-inset-bottom, 0px);
            }
        }

        /* iPad and tablets in portrait */
        @media only screen 
        and (min-device-width: 768px) 
        and (max-device-width: 1024px) 
        and (orientation: portrait) {
            .main-wrapper {
                width: 95%;
            }

            .sidebar {
                width: 250px;
            }

            .right-sidebar {
                display: none;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .action-btn,
            .btn,
            .btn-secondary,
            .circle-item,
            .tab {
                min-height: 44px; /* Apple's recommended touch target size */
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .post-menu {
                min-width: 44px;
                min-height: 44px;
            }

            .play-button {
                min-width: 44px;
                min-height: 44px;
            }

            /* Disable hover effects on touch devices */
            .post:hover,
            .action-btn:hover,
            .tab:hover,
            .circle-item:hover {
                background: inherit;
            }

            /* Better tap feedback */
            button,
            a,
            .action-btn,
            .tab,
            .circle-item {
                -webkit-tap-highlight-color: rgba(29, 155, 240, 0.2);
            }

            /* Smooth scrolling on touch */
            .main-content,
            .sidebar,
            .right-sidebar,
            #mainFeed {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }

            /* Improve input focus on mobile */
            input[type="text"],
            input[type="email"],
            input[type="password"],
            textarea {
                font-size: 16px; /* Prevents zoom on iOS */
                -webkit-appearance: none;
                appearance: none;
            }
        }

        /* Prevent zoom on input focus for iOS */
        @supports (-webkit-touch-callout: none) {
            input,
            textarea,
            select {
                font-size: 16px !important;
            }
        }

        /* Handle keyboard appearance on mobile */
        @media (max-width: 768px) {
            input:focus,
            textarea:focus {
                position: relative;
                z-index: 1000;
            }

            /* Adjust layout when keyboard is visible */
            .main-wrapper {
                height: 100vh;
                height: -webkit-fill-available;
            }
        }

        .widget {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 18px;
            border-radius: 18px;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
        }

        body.light-mode .widget {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
        }

        .widget-title {
            font-weight: 600;
            font-size: 13px;
            margin-bottom: 12px;
            color: #fff;
            text-transform: none;
        }


        .user-suggestion {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .user-suggestion:hover {
            background: #1a1a1a;
        }

        .user-suggestion:last-child {
            border-bottom: none;
        }

        .suggestion-avatar {
            width: 32px;
            height: 32px;
            background: #666;
            border: 1px solid #fff;
            margin-right: 8px;
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
        }

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

        .suggestion-name {
            font-size: 11px;
            font-weight: bold;
            margin-bottom: 1px;
            color: #fff;
        }

        .suggestion-meta {
            font-size: 10px;
            color: #999;
        }

        .suggestion-btn {
            background: #fff;
            color: #000;
            border: 1px solid #fff;
            padding: 3px 10px;
            font-size: 10px;
            cursor: pointer;
            font-weight: bold;
            flex-shrink: 0;
        }

        .suggestion-btn:hover {
            background: #ddd;
        }

        .trending-item {
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 12px;
            cursor: pointer;
        }

        .trending-item:hover {
            background: rgba(255, 255, 255, 0.04);
        }

        .trending-item:last-child {
            border-bottom: none;
        }

        .trending-circle {
            font-weight: 600;
            margin-bottom: 2px;
            color: #fff;
            font-size: 13px;
        }

        .trending-stat {
            color: rgba(255, 255, 255, 0.6);
            font-size: 11px;
        }

        .online-indicator {
            width: 8px;
            height: 8px;
            background: #fff;
            display: inline-block;
            margin-right: 5px;
            border: 1px solid #fff;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Force sharp text rendering on all elements */
        div, span, p, a, button, input, textarea, label, h1, h2, h3, h4, h5, h6 {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        /* Additional iOS-specific fixes */
        @supports (-webkit-touch-callout: none) {
            * {
                -webkit-font-smoothing: antialiased !important;
                -webkit-text-size-adjust: none !important;
            }
        }
    