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

        :root {
            /* Primary Brand Colors */
            --primary: #14F195;
            --primary-dark: #0FD67E;
            --primary-light: #5FFAB8;
            --secondary: #9945FF;
            --secondary-dark: #7B3BD1;
            --secondary-light: #B87FFF;
            --accent: #4A9EFF;
            --accent-dark: #3B7FCC;
            --accent-light: #7BB8FF;

            /* Backgrounds - Dark Theme */
            --bg-main: #0A0A0B;
            --bg-card: #12121A;
            --bg-elevated: #1A1A28;
            --bg-input: #0F0F15;
            --bg-hover: #1E1E2E;

            /* Text Colors */
            --text-primary: #FFFFFF;
            --text-secondary: #A8B2D1;
            --text-tertiary: #6B7788;
            --text-muted: #4A5568;

            /* Border Colors */
            --border: #1F1F2E;
            --border-light: #2A2A3E;
            --border-focus: #4A9EFF;

            /* Status Colors */
            --success: #14F195;
            --warning: #FFA500;
            --error: #FF4D6A;
            --info: #4A9EFF;

            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #14F195 0%, #4A9EFF 100%);
            --gradient-secondary: linear-gradient(135deg, #9945FF 0%, #4A9EFF 100%);
            --gradient-card: linear-gradient(135deg, rgba(20, 241, 149, 0.05) 0%, rgba(74, 158, 255, 0.05) 100%);

            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
            --shadow-glow: 0 0 20px rgba(20, 241, 149, 0.3);
            --shadow-blue: 0 4px 20px rgba(74, 158, 255, 0.3);
            --shadow-purple: 0 4px 20px rgba(153, 69, 255, 0.3);
        }

        /* Light mode colors */
        body.light-mode {
            --primary: #0FD67E;
            --primary-dark: #0AA862;
            --primary-light: #14F195;
            --secondary: #7B3BD1;
            --secondary-dark: #6329B0;
            --secondary-light: #9945FF;
            --accent: #3B7FCC;
            --accent-dark: #2E6AA8;
            --accent-light: #4A9EFF;

            --bg-main: #F5F7FA;
            --bg-card: #FFFFFF;
            --bg-elevated: #FFFFFF;
            --bg-input: #F0F2F5;
            --bg-hover: #E8EBF0;

            --text-primary: #0A0A0B;
            --text-secondary: #4A5568;
            --text-tertiary: #6B7788;
            --text-muted: #A8B2D1;

            --border: #E2E8F0;
            --border-light: #EDF2F7;
            --border-focus: #4A9EFF;

            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
            --shadow-glow: 0 0 20px rgba(20, 241, 149, 0.15);
            --shadow-blue: 0 4px 20px rgba(74, 158, 255, 0.15);
            --shadow-purple: 0 4px 20px rgba(153, 69, 255, 0.15);
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            overflow-x: hidden;
            transition: all 0.3s ease;
            padding-top: 40px;
            line-height: 1.6;
        }

        /* Crypto Price Ticker */
        .crypto-ticker {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            overflow: hidden;
            z-index: 1000;
            box-shadow: var(--shadow-sm);
        }

        .ticker-track {
            display: flex;
            width: fit-content;
            animation: scroll 60s linear infinite;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        .ticker-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 30px;
            height: 40px;
            white-space: nowrap;
            border-right: 1px solid var(--border);
        }

        .ticker-symbol {
            font-weight: 800;
            font-size: 0.9em;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
        }

        .ticker-price {
            font-weight: 600;
            font-size: 0.85em;
            color: var(--text-secondary);
            font-family: 'Space Mono', monospace;
        }

        .ticker-change {
            font-weight: 700;
            font-size: 0.8em;
            font-family: 'Space Mono', monospace;
        }

        .ticker-change.positive {
            color: #10B981;
        }

        .ticker-change.negative {
            color: #FF4D4D;
        }

        /* Light mode border enhancements */
        body.light-mode .post-card,
        body.light-mode .create-post,
        body.light-mode .screen-btn,
        body.light-mode .theme-toggle-btn,
        body.light-mode .search-input,
        body.light-mode .post-title-input,
        body.light-mode .post-textarea,
        body.light-mode .media-btn,
        body.light-mode .conversation-item,
        body.light-mode .chat-area,
        body.light-mode .profile-header,
        body.light-mode .profile-settings,
        body.light-mode .stat-item,
        body.light-mode .verification-card,
        body.light-mode .leaderboard-header,
        body.light-mode .leaderboard-table,
        body.light-mode .chatroom-header,
        body.light-mode .chatroom-main,
        body.light-mode .voice-header,
        body.light-mode .voice-stage,
        body.light-mode .speaker-card,
        body.light-mode .listener-card,
        body.light-mode .active-spaces-list,
        body.light-mode .space-item,
        body.light-mode .form-input,
        body.light-mode .form-textarea,
        body.light-mode .conversations-list {
            border-color: #000000 !important;
        }

        body.light-mode .post-card {
            border-width: 2px;
        }

        /* Main Content Area */
        .main-container {
            padding: 20px;
            max-width: 1600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Top Header */
        .top-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px 0;
        }

        .logo {
            font-family: 'Archivo Black', sans-serif;
            font-size: 2.5em;
            color: var(--text-primary);
            letter-spacing: -1px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            font-size: 1.2em;
            filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
        }

        .header-actions {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .header-link {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 1em;
            transition: color 0.3s;
            position: relative;
        }

        .header-link:hover {
            color: var(--primary);
        }

        .header-icon-btn {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 1.2em;
            cursor: pointer;
            transition: all 0.3s;
        }

        .header-icon-btn:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(20, 241, 149, 0.2);
        }

        .icon-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--error);
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.6em;
            font-weight: 700;
            font-family: 'Space Mono', monospace;
        }

        .header-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }

        .header-link:hover::after {
            width: 100%;
        }

        .theme-toggle-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px 16px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Montserrat', sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .theme-toggle-btn:hover {
            border-color: var(--accent);
            transform: translateY(-1px);
        }

        .connect-wallet-btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 12px;
            font-weight: 800;
            font-size: 0.95em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            box-shadow: var(--shadow-glow);
        }

        .connect-wallet-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 12px 32px rgba(20, 241, 149, 0.4);
        }

        /* Screen Switcher */
        .screen-switcher {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .screen-btn {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid transparent;
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9em;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
        }

        .screen-btn:hover {
            color: var(--primary);
            background: var(--bg-hover);
            border-color: var(--border-light);
        }

        .screen-btn.active {
            background: var(--gradient-primary);
            color: white;
            border-color: transparent;
            box-shadow: var(--shadow-glow);
        }

        .screen {
            display: none;
        }

        .screen.active {
            display: block;
            animation: fadeIn 0.4s ease;
        }

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

        /* Search Bar */
        .search-container {
            max-width: 800px;
            margin: 0 auto 30px auto;
            position: relative;
        }

        .search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-icon {
            position: absolute;
            left: 18px;
            font-size: 1.2em;
            pointer-events: none;
            z-index: 1;
        }

        .search-input {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 25px;
            padding: 14px 50px 14px 50px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95em;
            transition: all 0.3s;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(20, 241, 149, 0.2);
        }

        .search-clear-btn {
            position: absolute;
            right: 18px;
            background: none;
            border: none;
            color: var(--text-tertiary);
            font-size: 1.2em;
            cursor: pointer;
            padding: 5px;
            transition: color 0.2s;
        }

        .search-clear-btn:hover {
            color: var(--text-primary);
        }

        .search-results {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            right: 0;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 100;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }

        .search-results::-webkit-scrollbar {
            width: 6px;
        }

        .search-results::-webkit-scrollbar-track {
            background: var(--bg-card);
        }

        .search-results::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        .search-result-item {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: background 0.2s;
        }

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

        .search-result-item:hover {
            background: var(--bg-card);
        }

        .search-result-user {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .search-result-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1em;
        }

        .search-result-info {
            flex: 1;
        }

        .search-result-name {
            font-weight: 700;
            font-size: 0.95em;
            margin-bottom: 2px;
        }

        .search-result-meta {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .search-no-results {
            padding: 30px 20px;
            text-align: center;
            color: var(--text-tertiary);
        }
        .search-section-label {
            padding: 6px 16px 4px;
            font-size: 0.72em;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-tertiary);
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border);
        }
        .search-result-post { display: flex; flex-direction: column; gap: 4px; }
        .search-result-post-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8em; color: var(--text-tertiary); }
        .search-result-author { font-weight: 600; color: var(--primary); }
        .search-result-topic-badge { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; font-size: 0.85em; }
        .search-result-time { margin-left: auto; }
        .search-result-preview { font-size: 0.88em; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .search-topic-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.15em; flex-shrink: 0; }

        /* Feed Page */

        .verified-badge {
            background: var(--accent);
            color: #FFFFFF;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8em;
            font-weight: 700;
        }

        .thread-time {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

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

        /* ── MISSING / SUPPLEMENTAL CLASSES ── */

        /* Search user results */
        .search-user-avatar {
            width: 40px; height: 40px; border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            color: var(--dark); font-weight: 800; font-size: 1.1em;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .search-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .search-user-name { display: flex; align-items: center; gap: 6px; }
        .search-username { font-weight: 700; font-size: 0.95em; color: var(--text-primary); }
        .search-user-stats { font-size: 0.8em; color: var(--text-tertiary); }

        /* Messages empty state */
        .messages-empty-fullscreen {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; padding: 60px 20px; gap: 12px;
        }
        .empty-icon-large { font-size: 3em; }
        .empty-title-large { font-size: 1.3em; font-weight: 800; color: var(--text-primary); }
        .empty-desc-large { font-size: 0.9em; color: var(--text-tertiary); text-align: center; max-width: 280px; }

        /* Conversation user details */
        .conversation-user-details { display: flex; flex-direction: column; gap: 2px; }

        /* Voice room space stats */
        .space-stats {
            display: flex; gap: 16px; align-items: center;
            font-size: 0.85em; color: var(--text-tertiary);
        }

        /* Verification trust items */
        .trust-text { font-size: 0.78em; color: var(--text-tertiary); font-weight: 600; margin-top: 2px; }

        /* Verification disclaimer */
        .verification-disclaimer {
            font-size: 0.78em; color: var(--text-tertiary);
            line-height: 1.5; text-align: center; padding: 0 10px;
        }

        /* Modal title */
        .modal-title {
            font-size: 1.15em; font-weight: 800; color: var(--text-primary); margin: 0 0 16px 0;
        }

        /* Media preview in post composer */
        .media-preview-container {
            position: relative; display: inline-block; max-width: 100%;
        }
        .media-remove-btn {
            position: absolute; top: 6px; right: 6px;
            background: rgba(0,0,0,0.6); color: #fff; border: none;
            width: 24px; height: 24px; border-radius: 50%;
            cursor: pointer; font-size: 0.85em; display: flex;
            align-items: center; justify-content: center;
            transition: background 0.2s;
        }
        .media-remove-btn:hover { background: #ff4444; }

        /* Comment edit actions */
        .comment-edit-actions {
            display: flex; gap: 8px; margin-top: 6px;
        }

        /* Posts Sort Header and Buttons */
        .posts-sort-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 30px 0 20px 0;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--border);
        }

        .posts-section-title {
            font-size: 1.4em;
            font-weight: 800;
            margin: 0;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .posts-sort-buttons {
            display: flex;
            gap: 6px;
            background: var(--bg-secondary);
            padding: 4px;
            border-radius: 10px;
            border: 1px solid var(--border);
        }

        .post-sort-btn {
            background: transparent;
            border: none;
            color: var(--text-tertiary);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9em;
            font-weight: 600;
        }

        .post-sort-btn.active {
            background: var(--primary);
            color: var(--dark);
        }

        .post-sort-btn:not(.active):hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }

        /* Post Action Bar */
        .post-action-bar {
            display: flex;
            gap: 6px;
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            flex-wrap: wrap;
        }

        .post-action-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .post-action-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(20, 241, 149, 0.07);
        }

        .post-action-btn.vote-up.active {
            background: rgba(20, 241, 149, 0.12);
            border-color: var(--primary);
            color: var(--primary);
        }

        .post-action-btn.comment-btn {
        }

        /* Comment actions row */
        .comment-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 2px;
        }

        .comment-upvote-btn {
            background: none;
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--text-tertiary);
            font-size: 0.78em;
            font-weight: 700;
            padding: 3px 10px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .comment-upvote-btn:hover,
        .comment-upvote-btn.active {
            background: rgba(20, 241, 149, 0.12);
            border-color: var(--primary);
            color: var(--primary);
        }

        /* Comments Section */
        .post-comments-section {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .post-comment {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .comment-nested {
            padding-left: 36px;
        }

        .comment-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            color: var(--dark);
            font-weight: 800;
            font-size: 0.85em;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }

        .comment-avatar.small {
            width: 28px;
            height: 28px;
            font-size: 0.75em;
        }

        .comment-body {
            flex: 1;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .comment-username {
            font-weight: 700;
            font-size: 0.88em;
            color: var(--text-primary);
        }

        .comment-time {
            font-size: 0.75em;
            color: var(--text-tertiary);
            margin-left: auto;
            font-family: 'Space Mono', monospace;
        }

        .comment-text {
            font-size: 0.9em;
            color: var(--text-primary);
            line-height: 1.4;
        }

        .comment-reply-quote {
            background: var(--bg-card);
            border-left: 3px solid var(--primary);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            color: var(--text-tertiary);
            display: flex;
            gap: 5px;
            align-items: center;
        }

        .quote-icon { color: var(--primary); }
        .quote-user { font-weight: 700; color: var(--text-secondary); }
        .quote-text  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        .comment-reply-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            font-size: 0.8em;
            font-weight: 600;
            cursor: pointer;
            padding: 2px 0;
            width: fit-content;
            transition: color 0.2s;
        }

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

        /* Reply / Comment Input Boxes */
        .post-reply-input-box {
            background: linear-gradient(135deg, rgba(74,158,255,0.07), rgba(20,241,149,0.07));
            border: 1.5px solid var(--primary);
            border-radius: 12px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-left: 44px;
        }

        .reply-input-quote {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.82em;
            color: var(--text-secondary);
        }

        .reply-input-quote .quote-icon { color: var(--primary); }
        .reply-input-quote .quote-user { font-weight: 700; color: var(--primary); flex: 1; }

        .reply-input-cancel {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 1em;
            padding: 0 2px;
            transition: color 0.2s;
        }

        .reply-input-cancel:hover { color: #ff4444; }

        .reply-input-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .reply-input-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            color: var(--dark);
            font-weight: 800;
            font-size: 0.8em;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .reply-input-field {
            flex: 1;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 8px 14px;
            color: var(--text-primary);
            font-size: 0.88em;
            outline: none;
            transition: border-color 0.2s;
        }

        .reply-input-field:focus { border-color: var(--primary); }
        .reply-input-field::placeholder { color: var(--text-tertiary); }

        .reply-input-send {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary);
            border: none;
            color: var(--dark);
            font-size: 1em;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .reply-input-send:hover {
            background: var(--accent);
            transform: scale(1.1);
        }

        /* Reply type badge - shows whether replying to a comment or a reply */
        .reply-type-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.72em;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 20px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .reply-type-badge.badge-comment {
            background: rgba(74, 158, 255, 0.15);
            color: var(--accent);
            border: 1px solid rgba(74, 158, 255, 0.3);
        }
        .reply-type-badge.badge-reply {
            background: rgba(153, 69, 255, 0.15);
            color: var(--secondary-light);
            border: 1px solid rgba(153, 69, 255, 0.3);
        }
        .reply-input-quote {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            background: rgba(255,255,255,0.04);
            border-radius: 8px 8px 0 0;
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
        }
        .comment-nested-level2 {
            margin-left: 52px;
        }

        /* New comment box at bottom of post */
        .post-new-comment-box {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 8px;
            border-top: 1px solid var(--border);
            margin-top: 4px;
        }

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

        /* Feed Posts Grid - REDESIGNED */
        .feed-posts-grid {
            display: grid;
            gap: 24px;
            margin-top: 30px;
        }

        .feed-post-card {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        }

        .feed-post-card:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 28px rgba(20, 241, 149, 0.2);
        }

        .feed-post-border-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
        }

        .feed-post-content {
            padding: 24px;
        }

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

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

        .feed-user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }

        .feed-user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .feed-user-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .feed-username {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .feed-username .username-link {
            font-weight: 700;
            color: var(--text-primary);
            cursor: pointer;
            transition: color 0.2s;
        }

        .feed-username .username-link:hover {
            color: var(--primary);
        }

        .feed-post-time {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .feed-post-topic-section {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .feed-topic-tag {
            background: rgba(20, 241, 149, 0.1);
            color: var(--primary);
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 0.85em;
            font-weight: 600;
            border: 1px solid var(--primary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .feed-topic-tag:hover {
            background: rgba(20, 241, 149, 0.2);
            transform: scale(1.05);
        }

        .feed-topic-tag.bitcoin {
            background: rgba(247, 147, 26, 0.1);
            color: #F79316;
            border-color: #F79316;
        }

        .feed-topic-tag.ethereum {
            background: rgba(98, 126, 234, 0.1);
            color: #627EEA;
            border-color: #627EEA;
        }

        .feed-topic-tag.solana {
            background: rgba(220, 31, 255, 0.1);
            color: #DC1FFF;
            border-color: #DC1FFF;
        }

        .feed-post-options {
            background: none;
            border: none;
            color: var(--text-tertiary);
            font-size: 1.5em;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .feed-post-options:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }

        .feed-post-title {
            font-size: 1.2em;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .feed-post-text {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 16px;
            font-size: 0.95em;
        }

        .feed-post-media {
            margin: 0 -24px 16px -24px;
            overflow: hidden;
        }

        .feed-media-image {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s;
        }

        .feed-media-image:hover {
            transform: scale(1.02);
        }

        .feed-post-stats {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-top: 16px;
            border-top: 2px solid var(--border);
        }

        .feed-vote-box {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-secondary);
            padding: 6px 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
        }

        .feed-vote-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            font-size: 1em;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .feed-vote-btn.up:hover {
            background: rgba(20, 241, 149, 0.1);
            color: var(--primary);
        }

        .feed-vote-btn.down:hover {
            background: rgba(255, 68, 68, 0.1);
            color: #ff4444;
        }

        .feed-vote-count {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            font-size: 0.9em;
            min-width: 50px;
            text-align: center;
        }

        .feed-vote-count.positive {
            color: var(--primary);
        }

        .feed-vote-count.negative {
            color: #ff4444;
        }



        .feed-action-btn.bookmark:hover {
            color: var(--primary);
        }

        .feed-comments-section {
            padding: 20px 24px;
            background: var(--bg-secondary);
            border-top: 2px solid var(--border);
        }

        /* Following Screen Header */
        .following-header-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .following-title {
            font-size: 1.5em;
            font-weight: 800;
            margin: 0;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .following-count {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
            background: var(--bg-secondary);
            padding: 6px 12px;
            border-radius: 20px;
        }

        /* Repost Banner */



        .repost-text .username-link {
            color: var(--accent);
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s;
        }

        .repost-text .username-link:hover {
            color: var(--primary);
        }

        /* Video Container in Feed */
        .feed-video-container {
            width: 100%;
            background: #000;
        }

        .feed-media-video {
            width: 100%;
            height: auto;
            display: block;
        }

        .create-post {
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(20, 241, 149, 0.08) 100%);
            border: 2px solid transparent;
            background-clip: padding-box;
            border-image: linear-gradient(135deg, rgba(74, 158, 255, 0.3), rgba(20, 241, 149, 0.3)) 1;
            border-radius: 16px;
            padding: 28px;
            margin-bottom: 30px;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .create-post::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
            border-radius: 16px 16px 0 0;
        }

        .create-post:hover {
            box-shadow: 0 6px 30px rgba(74, 158, 255, 0.2);
            transform: translateY(-2px);
        }

        .privacy-toggle {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            user-select: none;
        }

        .privacy-toggle input[type="checkbox"] {
            display: none;
        }

        .toggle-slider {
            width: 50px;
            height: 26px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 26px;
            position: relative;
            transition: all 0.3s;
            cursor: pointer;
        }

        .toggle-slider::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            background: var(--text-tertiary);
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: all 0.3s;
            pointer-events: none;
        }

        .privacy-toggle input[type="checkbox"]:checked + .toggle-slider {
            background: var(--secondary);
            border-color: var(--secondary);
        }

        .privacy-toggle input[type="checkbox"]:checked + .toggle-slider::after {
            background: white;
            transform: translateX(24px);
        }

        .toggle-label {
            font-weight: 600;
            font-size: 0.95em;
            color: var(--text-primary);
        }

        .post-title-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(74, 158, 255, 0.2);
            border-radius: 12px;
            padding: 15px 18px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1em;
            font-weight: 600;
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }

        .post-title-input:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.1);
        }

        .post-title-input::placeholder {
            font-weight: 400;
            color: var(--text-tertiary);
        }

        .post-textarea {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(74, 158, 255, 0.2);
            border-radius: 12px;
            padding: 15px 18px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 1em;
            resize: vertical;
            min-height: 120px;
            margin-bottom: 15px;
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        .post-textarea:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.1);
        }

        .post-textarea::placeholder {
            color: #9945FF;
            opacity: 0.6;
        }

        body.light-mode .post-textarea::placeholder {
            color: #7c2de8;
            opacity: 0.7;
        }

        .post-link-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(74, 158, 255, 0.2);
            border-radius: 12px;
            padding: 12px 18px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95em;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .post-link-input:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(74, 158, 255, 0.05);
            box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
        }

        .post-link-input::placeholder {
            color: var(--text-tertiary);
        }

        .post-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        .media-upload-section {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .media-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(74, 158, 255, 0.3);
            color: var(--text-primary);
            padding: 10px 18px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .media-btn:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(20, 241, 149, 0.2);
        }

        .media-icon { font-size: 1.2em; }

        /* ── GIF Picker ─────────────────────────────────────── */
        .gif-picker-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 3000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.15s ease;
        }
        .gif-picker {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 18px;
            width: min(480px, 95vw);
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }
        .gif-picker-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }
        .gif-picker-header h3 {
            margin: 0;
            font-size: 1em;
            font-weight: 700;
            color: var(--text-primary);
            flex: 1;
        }
        .gif-search-input {
            flex: 1;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            border-radius: 20px;
            padding: 8px 14px;
            font-size: 0.88em;
            outline: none;
            transition: border-color 0.2s;
        }
        .gif-search-input:focus { border-color: var(--primary); }
        .gif-search-input::placeholder { color: var(--text-tertiary); }
        .gif-close-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.3em;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            line-height: 1;
        }
        .gif-close-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
        .gif-categories {
            display: flex;
            gap: 8px;
            padding: 10px 16px 0;
            overflow-x: auto;
            flex-shrink: 0;
            scrollbar-width: none;
        }
        .gif-categories::-webkit-scrollbar { display: none; }
        .gif-cat-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            border-radius: 20px;
            padding: 5px 12px;
            font-size: 0.78em;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
            font-weight: 600;
        }
        .gif-cat-btn:hover, .gif-cat-btn.active {
            background: var(--primary);
            color: #000;
            border-color: var(--primary);
        }
        .gif-grid-wrap {
            flex: 1;
            overflow-y: auto;
            padding: 10px 12px 12px;
            scrollbar-width: thin;
            scrollbar-color: var(--border) transparent;
        }
        .gif-grid {
            display: columns;
            column-count: 3;
            column-gap: 6px;
        }
        .gif-grid-item {
            break-inside: avoid;
            margin-bottom: 6px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.15s, opacity 0.15s;
            display: block;
        }
        .gif-grid-item:hover { transform: scale(1.03); opacity: 0.92; }
        .gif-grid-item img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 10px;
        }
        .gif-loading, .gif-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-secondary);
            font-size: 0.9em;
        }
        .gif-spinner {
            width: 28px; height: 28px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            margin: 0 auto 12px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .gif-attribution {
            padding: 6px 12px;
            text-align: right;
            font-size: 0.7em;
            color: var(--text-tertiary);
            border-top: 1px solid var(--border);
            flex-shrink: 0;
        }
        /* GIF in reply box */
        .reply-gif-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            border-radius: 8px;
            padding: 5px 9px;
            font-size: 0.78em;
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.03em;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .reply-gif-btn:hover { border-color: var(--primary); color: var(--primary); }
        .reply-gif-preview {
            width: 100%;
            max-height: 180px;
            object-fit: contain;
            border-radius: 10px;
            margin-top: 6px;
            cursor: pointer;
            display: none;
        }
        .reply-gif-preview.active { display: block; }

        .post-hint {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8em;
            font-weight: 700;
            font-family: 'Space Mono', monospace;
            padding: 6px 14px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(153, 69, 255, 0.12) 0%, rgba(20, 241, 149, 0.12) 100%);
            border: 1px solid rgba(153, 69, 255, 0.35);
            background-clip: padding-box;
            color: transparent;
            -webkit-background-clip: text;
            background-image: linear-gradient(90deg, #9945FF 0%, #14F195 100%);
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        /* ── GIF Picker ──────────────────────────────────────── */
        #gifPickerOverlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.65);
            z-index: 9000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.15s ease;
        }
        .gif-picker {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            width: min(460px, 96vw);
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 64px rgba(0,0,0,0.6);
        }
        .gif-picker-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 14px 10px;
            flex-shrink: 0;
        }
        .gif-picker-header h3 {
            margin: 0;
            font-size: 0.95em;
            font-weight: 700;
            color: var(--primary);
        }
        .gif-search-wrap {
            flex: 1;
            position: relative;
        }
        .gif-search-wrap::before {
            content: '🔍';
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.85em;
            pointer-events: none;
        }
        .gif-search-input {
            width: 100%;
            box-sizing: border-box;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            border-radius: 20px;
            padding: 8px 12px 8px 32px;
            font-size: 0.88em;
            outline: none;
            transition: border-color 0.2s;
        }
        .gif-search-input:focus { border-color: var(--primary); }
        .gif-search-input::placeholder { color: var(--text-tertiary); }
        .gif-close-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            font-size: 1.1em;
            cursor: pointer;
            padding: 5px 9px;
            border-radius: 10px;
            line-height: 1;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        .gif-close-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }
        .gif-categories {
            display: flex;
            gap: 7px;
            padding: 0 14px 10px;
            overflow-x: auto;
            flex-shrink: 0;
            scrollbar-width: none;
        }
        .gif-categories::-webkit-scrollbar { display: none; }
        .gif-cat-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            border-radius: 16px;
            padding: 4px 12px;
            font-size: 0.78em;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.18s;
            flex-shrink: 0;
        }
        .gif-cat-btn:hover { border-color: var(--primary); color: var(--primary); }
        .gif-cat-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #000;
        }
        .gif-grid-wrap {
            flex: 1;
            overflow-y: auto;
            padding: 0 10px 10px;
            scrollbar-width: thin;
            scrollbar-color: var(--border) transparent;
        }
        .gif-grid {
            columns: 3;
            column-gap: 6px;
        }
        .gif-item {
            break-inside: avoid;
            margin-bottom: 6px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            display: block;
            position: relative;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .gif-item:hover {
            transform: scale(1.03);
            box-shadow: 0 4px 16px rgba(20,241,149,0.25);
            z-index: 1;
        }
        .gif-item img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 10px;
        }
        .gif-status {
            text-align: center;
            padding: 36px 20px;
            color: var(--text-secondary);
            font-size: 0.9em;
        }
        .gif-spinner {
            width: 26px; height: 26px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            margin: 0 auto 12px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .gif-attribution {
            padding: 6px 14px;
            font-size: 0.68em;
            color: var(--text-tertiary);
            border-top: 1px solid var(--border);
            flex-shrink: 0;
            text-align: right;
        }
        /* GIF in reply row */
        .reply-gif-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            border-radius: 8px;
            padding: 5px 8px;
            font-size: 0.72em;
            font-weight: 800;
            letter-spacing: 0.05em;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.18s;
        }
        .reply-gif-btn:hover { border-color: var(--primary); color: var(--primary); }
        .reply-gif-preview {
            width: 100%;
            max-height: 160px;
            object-fit: cover;
            border-radius: 10px;
            margin-top: 6px;
            cursor: pointer;
            display: none;
            border: 1px solid var(--border);
        }
        .reply-gif-preview.active { display: block; }
        /* GIF badge on posted comments */
        .comment-gif {
            width: 100%;
            max-width: 280px;
            border-radius: 10px;
            margin-top: 8px;
            display: block;
        }

        /* Topic Selector */
        .topic-selector {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
            position: relative;
        }

        .topic-pick-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(153, 69, 255, 0.3);
            color: var(--text-primary);
            padding: 10px 18px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9em;
            cursor: pointer;
            font-family: 'Montserrat', sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .topic-pick-btn:hover {
            border-color: var(--secondary);
            background: rgba(153, 69, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(153, 69, 255, 0.2);
        }

        .topic-pick-icon {
            font-size: 1.1em;
        }

        .topic-pick-arrow {
            color: var(--text-tertiary);
            font-size: 0.8em;
            transition: transform 0.2s;
        }

        .topic-pick-btn.open .topic-pick-arrow {
            transform: rotate(180deg);
        }

        .topic-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            width: 320px;
            max-height: 340px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            z-index: 100;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }

        .topic-dropdown.open {
            display: flex;
            flex-direction: column;
        }

        .topic-search-wrap {
            padding: 12px;
            border-bottom: 1px solid var(--border);
        }

        .topic-search {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 10px 14px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9em;
        }

        .topic-search:focus {
            outline: none;
            border-color: var(--primary);
        }

        .topic-list {
            overflow-y: auto;
            flex: 1;
            max-height: 270px;
        }

        .topic-list::-webkit-scrollbar {
            width: 6px;
        }

        .topic-list::-webkit-scrollbar-track {
            background: var(--bg-card);
        }

        .topic-list::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        .topic-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 16px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid var(--border);
        }

        .topic-option:last-child {
            border-bottom: none;
        }

        .topic-option:hover {
            background: rgba(20, 241, 149, 0.07);
        }

        .topic-rank {
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
            font-size: 0.8em;
            min-width: 28px;
            text-align: right;
        }

        .topic-name {
            font-weight: 600;
            font-size: 0.92em;
            flex: 1;
        }

        .topic-symbol {
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
            font-size: 0.82em;
        }

        /* Topic tag in create post (selected state) */
        #chosenTopicTag {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .post-topic-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(153, 69, 255, 0.12);
            border: 1px solid rgba(153, 69, 255, 0.35);
            color: var(--secondary);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.82em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .post-topic-tag:hover {
            background: rgba(153, 69, 255, 0.2);
            border-color: var(--secondary);
            transform: translateY(-1px);
        }

        .topic-clear {
            cursor: pointer;
            color: var(--text-tertiary);
            font-size: 0.85em;
            transition: color 0.2s;
        }

        .topic-clear:hover {
            color: var(--error);
        }

        .media-preview {
            margin-top: 15px;
            display: none;
        }

        .media-preview.active {
            display: block;
        }

        .preview-container {
            position: relative;
            display: inline-block;
        }

        .preview-image,
        .preview-video {
            max-width: 100%;
            max-height: 300px;
            border-radius: 12px;
            border: 1px solid var(--border);
        }

        .remove-media-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--error);
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-weight: 700;
            font-size: 1.2em;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }

        .remove-media-btn:hover {
            transform: scale(1.1);
        }

        .post-media {
            margin: 15px 0;
        }

        .post-image {
            width: 100%;
            border-radius: 12px;
            border: 1px solid var(--border);
            margin-bottom: 10px;
        }

        .video-container {
            width: 100%;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            margin-bottom: 10px;
        }

        .post-video {
            width: 100%;
            display: block;
        }

        .post-btn {
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            color: var(--dark);
            border: none;
            padding: 12px 32px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        .post-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .post-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
        }

        .post-btn:hover::before {
            left: 100%;
        }

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

        /* Repost indicator */

        .repost-indicator {
            color: var(--text-tertiary);
            font-size: 0.9em;
            font-weight: 600;
        }

        .repost-indicator .username-link {
            color: var(--primary);
            font-weight: 700;
        }

        .post-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
        }

        .post-card:hover {
            border-color: var(--border-light);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

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

        .post-header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .post-edit-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 0.9em;
            font-weight: 600;
            padding: 6px 12px;
            transition: all 0.2s ease;
            font-family: 'Montserrat', sans-serif;
            border-radius: 12px;
        }

        .post-edit-btn:hover {
            color: var(--warning);
            background: rgba(255, 165, 0, 0.12);
            transform: translateY(-1px);
        }

        .post-options-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 1.4em;
            font-weight: 700;
            padding: 4px 8px;
            transition: all 0.2s ease;
            font-family: 'Montserrat', sans-serif;
            border-radius: 8px;
            line-height: 1;
        }

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

        .post-edit-box {
            margin-bottom: 20px;
            padding: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
        }

        .post-title-edit {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 15px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2em;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .post-title-edit:focus {
            outline: none;
            border-color: var(--primary);
        }

        .post-content-edit {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 15px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 1em;
            resize: vertical;
            min-height: 120px;
            margin-bottom: 15px;
        }

        .post-content-edit:focus {
            outline: none;
            border-color: var(--primary);
        }

        .post-edit-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .user-info {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1em;
            background-size: cover;
            background-position: center;
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .username {
            font-weight: 700;
            font-size: 1em;
            margin-bottom: 2px;
        }

        .username-link {
            color: var(--primary);
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 700;
        }

        .username-link:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }

        .post-title {
            font-size: 1.4em;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .post-content {
            color: var(--text-primary);
            line-height: 1.6;
            margin-bottom: 20px;
            font-size: 1em;
        }

        .post-engagement {
            display: flex;
            gap: 25px;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }


        .vote-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 1.2em;
            padding: 0 5px;
            transition: color 0.2s;
        }

        .vote-btn:hover {
            color: var(--primary);
        }

        .vote-count {
            color: var(--primary);
            font-weight: 700;
            font-family: 'Space Mono', monospace;
            min-width: 35px;
            text-align: center;
        }

        .comment-toggle {
            cursor: pointer;
            transition: color 0.3s;
        }

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

        .repost-btn {
            cursor: pointer;
            transition: color 0.3s;
        }

        .repost-btn:hover {
            color: var(--primary);
        }

        .pin-btn {
            cursor: pointer;
            transition: all 0.3s;
        }

        .pin-btn:hover {
            color: #FFA500;
        }

        .pin-btn.pinned {
            color: #FFA500;
            font-weight: 700;
        }

        /* Pinned Post Section */
        .pinned-post-section {
            margin-bottom: 30px;
        }

        .pinned-post-section .post-card {
            border: 2px solid #FFA500;
            background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(255, 165, 0, 0.02) 100%);
            position: relative;
        }

        .pinned-post-section .post-card::before {
            content: "📌 PINNED";
            position: absolute;
            top: 10px;
            right: 10px;
            background: #FFA500;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 700;
            font-family: 'Space Mono', monospace;
        }

        /* Comments Section */
        .comments-section {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }




        .write-comment-input:focus {
            outline: none;
            border-color: var(--accent);
        }


        .comment-submit-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9em;
        }

        .comment-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
        }


        .top-comments-label {
            font-weight: 700;
            font-size: 0.9em;
            color: var(--primary);
        }



        .comment-avatar {
            width: 35px;
            height: 35px;
            min-width: 35px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9em;
            background-size: cover;
            background-position: center;
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .comment-content {
            flex: 1;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            flex-wrap: wrap;
        }

        .comment-username {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.9em;
        }

        .comment-time {
            font-size: 0.8em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .comment-text {
            color: var(--text-primary);
            line-height: 1.5;
            margin-bottom: 8px;
            font-size: 0.95em;
        }

        .comment-mention {
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
        }

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


        .comment-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .comment-reply-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 0.85em;
            font-weight: 600;
            padding: 4px 8px;
            transition: color 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .comment-reply-btn:hover {
            color: var(--accent);
        }


        .reply-input {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 10px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9em;
            resize: vertical;
            min-height: 60px;
            margin-bottom: 10px;
        }

        .reply-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .reply-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        /* Nested Replies */
        .replies-container {
            margin-left: 30px;
            margin-top: 12px;
            border-left: 2px solid var(--border);
            padding-left: 16px;
        }



        .reply-item .comment-avatar {
            width: 32px;
            height: 32px;
            min-width: 32px;
        }

        .reply-item .comment-text {
            font-size: 0.9em;
        }

        .reply-to-indicator {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }

        .reply-arrow {
            color: var(--accent);
            font-size: 0.9em;
            font-weight: 700;
        }

        .reply-to-username {
            color: var(--accent);
            font-size: 0.85em;
            font-weight: 700;
        }

        /* Nested reply containers get progressively lighter border */
        .replies-container .replies-container {
            border-left-color: rgba(255, 255, 255, 0.05);
            margin-left: 24px;
        }

        .replies-container .replies-container .replies-container {
            border-left-color: rgba(255, 255, 255, 0.03);
            margin-left: 20px;
        }

        .reply-submit-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .reply-submit-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
        }

        .reply-cancel-btn {
            background: var(--bg-card);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 8px 20px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .reply-cancel-btn:hover {
            border-color: var(--text-primary);
            color: var(--text-primary);
        }

        .replies-section {
            margin-top: 15px;
            margin-left: 30px;
            padding-left: 15px;
            border-left: 2px solid var(--border);
        }


        .reply-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9em;
            flex-shrink: 0;
        }

        .reply-content {
            flex: 1;
        }

        .reply-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            flex-wrap: wrap;
        }

        .reply-username {
            font-weight: 700;
            font-size: 0.85em;
        }

        .reply-time {
            color: var(--text-tertiary);
            font-size: 0.75em;
        }

        .reply-text {
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 6px;
            font-size: 0.9em;
        }

        .reply-votes {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .reply-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        /* Edit functionality */
        .edit-btn {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 0.85em;
            font-weight: 600;
            padding: 4px 8px;
            transition: color 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .edit-btn:hover {
            color: #FFA500;
        }

        .edit-box {
            margin-top: 12px;
            padding: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
        }

        .edit-input {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 10px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9em;
            resize: vertical;
            min-height: 60px;
            margin-bottom: 10px;
        }

        .edit-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .edit-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .edit-save-btn {
            background: #FFA500;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .edit-save-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
        }

        .edit-cancel-btn {
            background: var(--bg-card);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 8px 20px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .edit-cancel-btn:hover {
            border-color: var(--text-primary);
            color: var(--text-primary);
        }


        .view-all-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9em;
            transition: opacity 0.3s;
        }

        .view-all-link:hover {
            opacity: 0.8;
        }

        /* Messages Screen */
        .messages-container {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .conversations-list {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            max-height: 80vh;
            overflow-y: auto;
        }

        .conversation-item {
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: background 0.2s;
            border: 1px solid transparent;
        }

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

        .conversation-item.active {
            background: var(--bg-card);
            border-color: var(--primary);
        }

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

        .conversation-name {
            font-weight: 700;
            font-size: 0.95em;
        }

        .conversation-time {
            font-size: 0.8em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .conversation-preview {
            font-size: 0.85em;
            color: var(--text-tertiary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .unread-indicator {
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            display: inline-block;
            margin-left: 8px;
        }

        .chat-area {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 25px;
            display: flex;
            flex-direction: column;
            min-height: 80vh;
        }

        .chat-header {
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border);
            margin-bottom: 20px;
        }

        .chat-title {
            font-size: 1.3em;
            font-weight: 700;
        }

        .messages-area {
            flex: 1;
            overflow-y: auto;
            padding: 20px 0;
        }

        .message {
            margin-bottom: 20px;
            display: flex;
            gap: 12px;
        }

        .message-content {
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 12px 16px;
            border-radius: 12px;
            max-width: 70%;
        }

        .message.sent {
            justify-content: flex-end;
        }

        .message.sent .message-content {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            color: var(--dark);
            border: none;
        }

        .message-time {
            font-size: 0.75em;
            color: var(--text-tertiary);
            margin-top: 5px;
            font-family: 'Space Mono', monospace;
        }

        .message-input-area {
            display: flex;
            gap: 12px;
            padding-top: 20px;
            border-top: 2px solid var(--border);
        }

        .message-input {
            flex: 1;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 16px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95em;
        }

        .message-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .send-btn {
            background: var(--accent);
            color: var(--dark);
            border: none;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s;
            font-family: 'Montserrat', sans-serif;
        }

        .send-btn:hover {
            transform: translateY(-2px);
        }

        /* Profile Page */
        .profile-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Profile Compact Card - NEW DESIGN */
        .profile-compact-card {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            overflow: visible;
            transition: all 0.3s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        }

        .profile-compact-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(20, 241, 149, 0.15);
        }

        .profile-card-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
        }

        .profile-compact-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .profile-left-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .profile-avatar-compact {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8em;
            font-weight: 800;
            color: var(--dark);
            flex-shrink: 0;
        }

        .profile-name-section {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .profile-username-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .profile-username-text {
            font-size: 1.3em;
            font-weight: 800;
            color: var(--text-primary);
        }

        .verified-badge-compact {
            background: var(--primary);
            color: var(--dark);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7em;
            font-weight: 800;
        }

        .profile-rank-badge {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: var(--dark);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 700;
            display: inline-block;
        }

        .follow-btn-compact {
            background: var(--primary);
            color: var(--dark);
            border: none;
            padding: 10px 24px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.95em;
        }

        .follow-btn-compact:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(20, 241, 149, 0.4);
        }

        .profile-stats-compact {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin-bottom: 12px;
        }

        .stat-compact {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .stat-compact:hover {
            transform: translateY(-2px);
        }

        .stat-compact-value {
            font-size: 1.3em;
            font-weight: 800;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
        }

        .stat-compact-label {
            font-size: 0.75em;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-divider-compact {
            width: 1px;
            height: 30px;
            background: var(--border);
        }

        .profile-bio-compact {
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 12px;
            font-size: 0.9em;
        }

        .profile-meta-compact {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 12px;
        }

        .meta-item {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

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

        .action-btn-compact {
            flex: 1;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 0.9em;
        }

        .action-btn-compact:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            transform: translateY(-2px);
        }

        .action-btn-compact:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            transform: translateY(-2px);
        }

        .action-btn-voice {
            background: linear-gradient(135deg, rgba(20,241,149,0.12), rgba(153,69,255,0.12));
            border-color: rgba(20,241,149,0.3) !important;
            color: var(--primary) !important;
        }
        .action-btn-voice:hover {
            background: linear-gradient(135deg, rgba(20,241,149,0.2), rgba(153,69,255,0.2)) !important;
            border-color: var(--primary) !important;
        }

        /* Wallet address row */
        .profile-wallet-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 14px;
            padding: 10px 14px;
            background: linear-gradient(135deg, rgba(153,69,255,0.08) 0%, rgba(20,241,149,0.08) 100%);
            border: 1px solid rgba(153,69,255,0.3);
            border-radius: 12px;
            font-size: 0.82em;
        }
        .wallet-row-icon {
            font-size: 1.1em;
            flex-shrink: 0;
            background: linear-gradient(90deg, #9945FF 0%, #14F195 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .wallet-row-address {
            flex: 1;
            font-family: 'Space Mono', monospace;
            font-size: 0.9em;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            letter-spacing: 0.03em;
        }
        .wallet-row-copy {
            background: rgba(20,241,149,0.08);
            border: 1px solid rgba(20,241,149,0.25);
            color: var(--primary);
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 1em;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .wallet-row-copy:hover { background: rgba(20,241,149,0.18); border-color: var(--primary); transform: scale(1.05); }

        /* Profile Voice Chat Card */
        .profile-voice-card {
            background: var(--bg-card);
            border: 1px solid rgba(20,241,149,0.2);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, var(--bg-card) 60%, rgba(20,241,149,0.04));
        }
        .voice-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }
        .voice-card-icon {
            font-size: 1.6em;
            background: linear-gradient(135deg, rgba(20,241,149,0.15), rgba(153,69,255,0.15));
            border-radius: 10px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .voice-card-title { font-weight: 700; font-size: 0.95em; color: var(--text-primary); display: block; }
        .voice-card-subtitle { font-size: 0.78em; color: var(--text-secondary); display: block; margin-top: 2px; }
        .voice-card-form { display: flex; flex-direction: column; gap: 10px; }
        .voice-card-input, .voice-card-select {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 0.88em;
            width: 100%;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        .voice-card-input:focus, .voice-card-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        .voice-card-select option { background: var(--bg-secondary); }
        .voice-card-launch-btn {
            background: linear-gradient(135deg, var(--primary), #9945ff);
            color: #000;
            border: none;
            border-radius: 10px;
            padding: 11px;
            font-weight: 700;
            font-size: 0.9em;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            transition: all 0.2s;
        }
        .voice-card-launch-btn:hover { opacity: 0.9; transform: translateY(-1px); }
        .voice-card-launch-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        /* Earnings Compact Card */
        .earnings-compact-card {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 20px;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        }

        .earnings-compact-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(20, 241, 149, 0.15);
        }

        .earnings-compact-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #FFD700 0%, var(--primary) 100%);
        }

        .earnings-compact-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .earnings-compact-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .earnings-info-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .earnings-label-compact {
            font-size: 0.9em;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .earnings-amount-compact {
            font-size: 2em;
            font-weight: 800;
            background: linear-gradient(135deg, #FFD700 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Space Mono', monospace;
        }

        .claim-btn-compact {
            background: linear-gradient(135deg, var(--accent), var(--primary));
            border: none;
            color: var(--dark);
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9em;
            white-space: nowrap;
        }

        .claim-btn-compact:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(20, 241, 149, 0.4);
        }

        .earnings-stats-compact {
            display: flex;
            gap: 12px;
        }

        .earning-stat-mini {
            flex: 1;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: all 0.2s;
        }

        .earning-stat-mini:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            transform: translateY(-2px);
        }

        .stat-mini-icon {
            font-size: 1.2em;
        }

        .stat-mini-value {
            font-size: 1.1em;
            font-weight: 800;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
        }

        .profile-header {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 40px;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }

        .profile-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            opacity: 0.1;
        }

        /* Settings button below bio */
        .settings-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px 20px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9em;
            cursor: pointer;
            font-family: 'Montserrat', sans-serif;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .settings-btn:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.1);
        }

        .profile-info {
            position: relative;
            display: flex;
            gap: 30px;
            align-items: flex-start;
        }

        .profile-avatar-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3em;
            font-weight: 700;
            border: 4px solid var(--bg-card);
            position: relative;
            overflow: hidden;
        }

        .profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .profile-details {
            flex: 1;
        }

        .profile-name {
            font-size: 2em;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .follow-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 2;
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 10px 28px;
            border-radius: 24px;
            font-weight: 700;
            font-size: 0.95em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            white-space: nowrap;
            box-shadow: var(--shadow-glow);
        }

        .follow-btn:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 24px rgba(20, 241, 149, 0.4);
        }

        .follow-btn.following {
            background: var(--bg-card);
            color: var(--primary);
            border: 1px solid var(--primary);
            box-shadow: none;
        }

        /* Followers/Following Stats Section */
        .profile-follow-stats {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 15px 0;
            padding: 12px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
        }

        .follow-stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            transition: all 0.2s;
            padding: 4px 12px;
            border-radius: 6px;
        }

        .follow-stat-item:hover {
            background: var(--bg-card);
            transform: translateY(-1px);
        }

        .follow-stat-value {
            font-size: 1.3em;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Space Mono', monospace;
        }

        .follow-stat-label {
            font-size: 0.75em;
            color: var(--text-tertiary);
            font-weight: 600;
        }

        .follow-stat-divider {
            width: 1px;
            height: 30px;
            background: var(--border);
        }


        .fees-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .fees-icon {
            font-size: 2.5em;
        }

        .fees-main {
            flex: 1;
        }

        .fees-label {
            font-size: 0.85em;
            color: var(--text-tertiary);
            margin-bottom: 5px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .fees-amount {
            font-size: 2.5em;
            font-weight: 800;
            color: var(--accent);
            font-family: 'Space Mono', monospace;
            line-height: 1;
            margin-bottom: 5px;
        }

        .fees-period {
            font-size: 0.85em;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .fees-stats-divider {
            height: 1px;
            background: var(--border);
            margin: 20px 0;
        }

        .fees-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .fees-stat-item {
            text-align: center;
            padding: 12px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s;
        }

        .fees-stat-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: var(--border);
            transform: translateY(-2px);
        }

        .fees-stat-value {
            font-size: 1.8em;
            font-weight: 800;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
            margin-bottom: 4px;
        }

        .fees-stat-label {
            font-size: 0.8em;
            color: var(--text-tertiary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

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

            .fees-amount {
                font-size: 2em;
            }
        }

        .fees-content {
            flex: 1;
        }

        .fees-breakdown {
            font-size: 0.85em;
            color: var(--text-secondary);
            font-family: 'Space Mono', monospace;
        }

        /* Location + website row */
        .profile-meta {
            display: flex;
            gap: 24px;
            margin-top: 50px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .profile-location,
        .profile-website,
        .profile-joined {
            color: var(--text-tertiary);
            font-size: 0.9em;
            font-weight: 600;
        }

        .profile-link {
            color: var(--primary);
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .profile-link:hover {
            opacity: 0.7;
        }

        /* Profile Bio Card - REDESIGNED */
        .profile-bio-card {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 20px;
            transition: all 0.3s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        }

        .profile-bio-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 158, 255, 0.2);
        }




        .bio-icon {
            font-size: 1.3em;
        }

        .bio-title {
            font-size: 1em;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bio-text {
            color: var(--text-secondary);
            line-height: 1.6;
            font-size: 0.95em;
        }

        /* Settings Button - REDESIGNED */


        .settings-icon {
            font-size: 1.2em;
        }

        /* Creator Earnings Card - REDESIGNED */


        .earnings-card-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #FFD700 0%, var(--primary) 100%);
        }

        .earnings-card-content {
            padding: 24px;
        }

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

        .earnings-title-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .earnings-icon {
            font-size: 2em;
        }

        .earnings-title-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .earnings-title {
            font-size: 1.1em;
            font-weight: 800;
            color: var(--text-primary);
        }

        .earnings-period {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .earnings-amount-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }

        .earnings-amount {
            font-size: 2.2em;
            font-weight: 800;
            background: linear-gradient(135deg, #FFD700 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Space Mono', monospace;
        }

        .earnings-claim-btn {
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            border: none;
            color: var(--dark);
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95em;
        }

        .earnings-claim-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(20, 241, 149, 0.4);
        }

        .earnings-separator {
            height: 2px;
            background: var(--border);
            margin-bottom: 20px;
        }

        .earnings-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .earnings-stat-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px 12px;
            text-align: center;
            transition: all 0.2s;
        }

        .earnings-stat-card:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            transform: translateY(-2px);
        }

        .earnings-stat-card .stat-icon {
            font-size: 1.5em;
            margin-bottom: 8px;
        }

        .earnings-stat-card .stat-value {
            font-size: 1.5em;
            font-weight: 800;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
            margin-bottom: 4px;
        }

        .earnings-stat-card .stat-label {
            font-size: 0.8em;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 20px;
        }

        .stat-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.2s;
        }

        .stat-item:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
        }

        .stat-value {
            font-size: 2em;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Space Mono', monospace;
        }

        .stat-label {
            color: var(--text-tertiary);
            font-size: 0.9em;
            margin-top: 5px;
        }

        /* ── Settings View ── */
        .profile-settings {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 35px;
            margin-bottom: 30px;
        }

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

        .settings-header-left {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .settings-title {
            font-size: 1.5em;
            font-weight: 800;
        }

        .privacy-lock-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            user-select: none;
            width: fit-content;
        }

        .privacy-lock-toggle:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(20, 241, 149, 0.2);
            transform: translateY(-2px);
        }

        .privacy-lock-toggle.locked {
            background: rgba(153, 69, 255, 0.1);
            border-color: var(--secondary);
        }

        .privacy-lock-toggle.locked:hover {
            border-color: var(--secondary);
            box-shadow: 0 4px 12px rgba(153, 69, 255, 0.3);
        }

        .lock-icon {
            font-size: 1.4em;
            transition: transform 0.3s;
        }

        .privacy-lock-toggle:active .lock-icon {
            transform: scale(0.9);
        }

        .lock-label {
            font-weight: 700;
            font-size: 0.95em;
            color: var(--text-primary);
        }

        .privacy-lock-toggle.locked .lock-label {
            color: var(--secondary);
        }

        .back-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px 20px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9em;
            cursor: pointer;
            font-family: 'Montserrat', sans-serif;
            transition: all 0.3s;
        }

        .back-btn:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.1);
        }

        /* Avatar row inside settings */
        .settings-avatar-row {
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 24px 0 30px 0;
            border-bottom: 1px solid var(--border);
            margin-bottom: 28px;
        }

        .settings-avatar {
            width: 90px;
            height: 90px;
            font-size: 2.4em;
            cursor: pointer;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .settings-avatar:hover {
            transform: scale(1.06);
            box-shadow: 0 0 20px rgba(20, 241, 149, 0.4);
        }

        .settings-avatar-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .settings-avatar-label {
            font-weight: 700;
            font-size: 0.95em;
        }

        .settings-avatar-hint {
            color: var(--text-tertiary);
            font-size: 0.85em;
        }

        .settings-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            font-weight: 600;
            font-size: 0.95em;
            color: var(--text-primary);
        }

        .form-hint {
            font-size: 0.85em;
            color: var(--text-tertiary);
            margin-top: 6px;
            line-height: 1.4;
        }

        .form-input {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 16px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95em;
            transition: border-color 0.3s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-textarea {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 16px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95em;
            min-height: 100px;
            resize: vertical;
            transition: border-color 0.3s;
        }

        .form-textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .privacy-section {
            margin-top: 20px;
        }

        .privacy-card {
            background: var(--bg-input);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            transition: all 0.3s ease;
        }

        .privacy-card:hover {
            border-color: var(--border-light);
            box-shadow: var(--shadow-sm);
        }

        .privacy-toggle-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .privacy-info {
            flex: 1;
        }

        .privacy-title {
            font-size: 1.05em;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .privacy-desc {
            font-size: 0.9em;
            color: var(--text-tertiary);
            line-height: 1.5;
        }

        .privacy-status {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: var(--bg-card);
            border-radius: 10px;
            border: 1px solid var(--border);
        }

        .status-icon {
            font-size: 1.3em;
        }

        .status-text {
            font-size: 0.9em;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .privacy-status.private {
            background: rgba(153, 69, 255, 0.1);
            border-color: var(--secondary);
        }

        .privacy-status.private .status-text {
            color: var(--secondary);
        }

        .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 10px;
        }

        .save-profile-btn {
            background: var(--accent);
            color: var(--dark);
            border: none;
            padding: 14px 32px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s;
            font-family: 'Montserrat', sans-serif;
            font-size: 1em;
        }

        .save-profile-btn:hover {
            transform: translateY(-2px);
        }

        .cancel-btn {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border);
            padding: 14px 32px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Montserrat', sans-serif;
            font-size: 1em;
        }

        .cancel-btn:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.1);
        }

        .profile-posts-section {
            margin-top: 30px;
        }

        .section-title {
            font-size: 1.3em;
            font-weight: 800;
            margin-bottom: 20px;
        }

        /* Recent Posts Section - REDESIGNED */
        .recent-posts-container {
            margin-top: 40px;
        }

        .recent-posts-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border);
        }

        .recent-posts-title {
            font-size: 1.5em;
            font-weight: 800;
            margin: 0;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .posts-count {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
            background: var(--bg-secondary);
            padding: 6px 12px;
            border-radius: 20px;
        }

        .profile-posts-grid {
            display: grid;
            gap: 20px;
        }

        .profile-post-card {
            position: relative;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .profile-post-card:hover {
            border-color: var(--primary);
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(20, 241, 149, 0.2);
        }

        .profile-post-border-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
        }

        .profile-post-content {
            padding: 20px;
        }

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

        .profile-post-topic {
            background: rgba(20, 241, 149, 0.1);
            color: var(--primary);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.85em;
            font-weight: 600;
            border: 1px solid var(--primary);
        }

        .profile-post-topic.bitcoin {
            background: rgba(247, 147, 26, 0.1);
            color: #F79316;
            border-color: #F79316;
        }

        .profile-post-topic.ethereum {
            background: rgba(98, 126, 234, 0.1);
            color: #627EEA;
            border-color: #627EEA;
        }

        .profile-post-topic.solana {
            background: rgba(220, 31, 255, 0.1);
            color: #DC1FFF;
            border-color: #DC1FFF;
        }

        .profile-post-time {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .profile-post-title {
            font-size: 1.1em;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .profile-post-text {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 15px;
            font-size: 0.95em;
        }

        .profile-post-stats {
            display: flex;
            align-items: center;
            gap: 20px;
            padding-top: 15px;
            border-top: 1px solid var(--border);
        }

        .profile-post-votes {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .vote-indicator {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            font-size: 0.9em;
            padding: 4px 10px;
            border-radius: 6px;
        }

        .vote-indicator.positive {
            background: rgba(20, 241, 149, 0.1);
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .vote-indicator.negative {
            background: rgba(255, 68, 68, 0.1);
            color: #ff4444;
            border: 1px solid #ff4444;
        }

        .profile-post-stat {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Verification Flow */
        .verification-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Hero Section */
        .verification-hero {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .verification-badge-icon {
            position: relative;
            display: inline-block;
            margin-bottom: 30px;
        }

        .badge-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(20, 241, 149, 0.3) 0%, transparent 70%);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
            50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
        }

        .badge-emoji {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 120px;
            height: 120px;
            background: var(--gradient-primary);
            border-radius: 50%;
            font-size: 4em;
            box-shadow: 0 8px 32px rgba(20, 241, 149, 0.4);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .verification-hero-title {
            font-size: 3.5em;
            font-weight: 800;
            margin-bottom: 15px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .verification-hero-subtitle {
            font-size: 1.3em;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Main Card */
        .verification-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 40px;
        }

        /* Benefits Grid */
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        @media (max-width: 768px) {
            .benefits-grid {
                grid-template-columns: 1fr;
            }
        }

        .benefit-item {
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 28px 24px;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 180px;
        }

        .benefit-item:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
            box-shadow: 0 8px 24px rgba(20, 241, 149, 0.2);
        }

        .benefit-icon {
            font-size: 3em;
            margin-bottom: 16px;
        }

        .benefit-title {
            font-size: 1.15em;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .benefit-desc {
            font-size: 0.95em;
            color: var(--text-tertiary);
            line-height: 1.5;
        }

        /* Pricing Section */
        .verification-pricing {
            background: linear-gradient(135deg, rgba(20, 241, 149, 0.08) 0%, rgba(74, 158, 255, 0.08) 100%);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 32px;
        }

        .pricing-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .pricing-label {
            font-size: 0.95em;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .pricing-amount {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .price-currency {
            font-size: 2em;
            font-weight: 800;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
        }

        .price-value {
            font-size: 5em;
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            font-family: 'Space Mono', monospace;
        }

        .price-period {
            font-size: 1.5em;
            color: var(--text-secondary);
            font-weight: 600;
            align-self: flex-end;
            margin-bottom: 8px;
        }

        .fee-breakdown {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .fee-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: var(--bg-card);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .fee-item:hover {
            transform: translateX(4px);
            box-shadow: var(--shadow-sm);
        }

        .fee-icon {
            font-size: 2em;
            flex-shrink: 0;
        }

        .fee-details {
            flex: 1;
        }

        .fee-label {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 1.05em;
            margin-bottom: 4px;
        }

        .fee-sublabel {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .fee-value {
            font-weight: 800;
            font-size: 1.4em;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
            flex-shrink: 0;
        }

        .fee-divider {
            height: 1px;
            background: var(--border);
            margin: 0 16px;
        }

        /* CTA Button */
        .verify-btn {
            width: 100%;
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 20px 40px;
            border-radius: 16px;
            font-weight: 800;
            font-size: 1.2em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            box-shadow: 0 8px 32px rgba(20, 241, 149, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 24px;
        }

        .verify-btn:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 48px rgba(20, 241, 149, 0.5);
        }

        .btn-icon {
            font-size: 1.3em;
        }

        .btn-arrow {
            font-size: 1.5em;
            transition: transform 0.3s ease;
        }

        .verify-btn:hover .btn-arrow {
            transform: translateX(8px);
        }

        /* Trust Indicators */
        .trust-indicators {
            display: flex;
            justify-content: center;
            gap: 32px;
            padding: 20px;
            background: var(--bg-input);
            border-radius: 12px;
        }

        .trust-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 0.95em;
        }

        .trust-icon {
            font-size: 1.3em;
        }

        /* Why Verify Section */
        .why-verify-section {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--shadow-md);
        }

        .why-verify-title {
            font-size: 2.5em;
            font-weight: 800;
            text-align: center;
            margin-bottom: 40px;
            background: var(--gradient-secondary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .why-verify-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .why-item {
            display: flex;
            gap: 20px;
            padding: 24px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 16px;
            transition: all 0.3s ease;
        }

        .why-item:hover {
            border-color: var(--secondary);
            box-shadow: 0 8px 24px rgba(153, 69, 255, 0.2);
            transform: translateY(-4px);
        }

        .why-number {
            font-size: 2.5em;
            font-weight: 800;
            background: var(--gradient-secondary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Space Mono', monospace;
            flex-shrink: 0;
            line-height: 1;
        }

        .why-content h3 {
            font-size: 1.2em;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .why-content p {
            font-size: 0.95em;
            color: var(--text-tertiary);
            line-height: 1.6;
        }

        /* Referral System */
        .referral-section {
            margin-top: 50px;
            padding-top: 50px;
            border-top: 2px solid var(--border);
        }

        .referral-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .referral-icon {
            font-size: 4em;
            margin-bottom: 15px;
        }

        .referral-title {
            font-size: 2.2em;
            font-weight: 800;
            margin-bottom: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .referral-subtitle {
            font-size: 1.1em;
            color: var(--text-secondary);
        }

        .referral-card {
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 35px;
        }

        .referral-earnings {
            text-align: center;
            padding: 30px;
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(20, 241, 149, 0.1) 100%);
            border-radius: 12px;
            margin-bottom: 30px;
        }

        .earnings-label {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }

        .earnings-amount {
            font-size: 3em;
            font-weight: 800;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
            margin-bottom: 5px;
        }

        .earnings-breakdown {
            font-size: 0.9em;
            color: var(--text-secondary);
        }

        .referral-link-section {
            margin-bottom: 30px;
        }

        .referral-label {
            display: block;
            font-size: 0.9em;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .referral-link-container {
            display: flex;
            gap: 10px;
        }

        .referral-link-input {
            flex: 1;
            background: var(--bg-secondary);
            border: 2px solid var(--border);
            border-radius: 10px;
            padding: 14px 18px;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
            font-size: 0.95em;
        }

        .referral-link-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .copy-link-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 14px 24px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .copy-link-btn:hover {
            background: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(20, 241, 149, 0.3);
        }

        .referral-share-section {
            margin-bottom: 30px;
        }

        .share-label {
            font-size: 0.9em;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .share-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .share-btn {
            background: var(--bg-secondary);
            border: 2px solid var(--border);
            padding: 12px 16px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--text-primary);
        }

        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .share-btn.twitter:hover {
            background: #1DA1F2;
            border-color: #1DA1F2;
            color: white;
        }

        .share-btn.telegram:hover {
            background: #0088cc;
            border-color: #0088cc;
            color: white;
        }

        .share-btn.discord:hover {
            background: #5865F2;
            border-color: #5865F2;
            color: white;
        }

        .share-icon {
            font-size: 1.2em;
        }

        .referral-how-it-works {
            margin-bottom: 30px;
            padding: 25px;
            background: var(--bg-secondary);
            border-radius: 12px;
        }

        .how-it-works-title {
            font-size: 1.3em;
            font-weight: 700;
            margin-bottom: 20px;
            text-align: center;
        }

        .referral-steps {
            display: grid;
            gap: 15px;
        }

        .referral-step {
            display: flex;
            gap: 15px;
            align-items: flex-start;
        }

        .step-number {
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.1em;
            flex-shrink: 0;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-weight: 700;
            font-size: 1em;
            margin-bottom: 4px;
        }

        .step-desc {
            font-size: 0.9em;
            color: var(--text-secondary);
        }

        .referral-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .ref-stat-item {
            text-align: center;
            padding: 20px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 10px;
            transition: all 0.3s;
        }

        .ref-stat-item:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        .ref-stat-value {
            font-size: 2em;
            font-weight: 800;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
            margin-bottom: 5px;
        }

        .ref-stat-label {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-weight: 600;
        }

        /* Claim Earnings Button */
        .claim-earnings-btn {
            margin-top: 20px;
            margin-left: auto;
            margin-right: auto;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: var(--dark);
            border: none;
            padding: 14px 32px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(20, 241, 149, 0.3);
        }

        .claim-earnings-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(20, 241, 149, 0.4);
        }

        .claim-btn-profile {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: var(--dark);
            border: none;
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9em;
            box-shadow: 0 4px 12px rgba(20, 241, 149, 0.3);
        }

        .claim-btn-profile:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(20, 241, 149, 0.4);
        }

        /* Claim Modal */
        .claim-modal {
            max-width: 550px;
        }

        .claim-summary {
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(20, 241, 149, 0.1) 100%);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            text-align: center;
        }

        .claim-amount-display {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .claim-label {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .claim-amount {
            font-size: 3em;
            font-weight: 800;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
        }

        .claim-method-section {
            margin-bottom: 25px;
        }

        .claim-section-label {
            display: block;
            font-size: 0.9em;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .payment-methods {
            display: grid;
            gap: 12px;
        }

        .payment-method-card {
            display: block;
            position: relative;
            cursor: pointer;
        }

        .payment-method-card input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .method-content {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 10px;
            transition: all 0.3s;
        }

        .payment-method-card input[type="radio"]:checked + .method-content {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
        }

        .method-icon {
            font-size: 2em;
        }

        .method-info {
            flex: 1;
        }

        .method-name {
            font-weight: 700;
            font-size: 1em;
            margin-bottom: 3px;
        }

        .method-desc {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .wallet-address-section {
            margin-bottom: 25px;
        }

        .wallet-address-input {
            width: 100%;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 10px;
            padding: 12px 16px;
            color: var(--text-primary);
            font-family: 'Space Mono', monospace;
            font-size: 0.9em;
            margin-bottom: 8px;
        }

        .wallet-address-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .wallet-hint {
            font-size: 0.8em;
            color: var(--text-tertiary);
        }

        .claim-breakdown {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 20px;
        }

        .breakdown-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 0.95em;
        }

        .breakdown-row.total {
            font-weight: 700;
            font-size: 1.1em;
            color: var(--primary);
        }

        .breakdown-divider {
            height: 1px;
            background: var(--border);
            margin: 10px 0;
        }

        /* Solana Claim Styles */
        .claim-sol-amount {
            font-size: 1.2em;
            color: var(--accent);
            font-weight: 600;
            font-family: 'Space Mono', monospace;
            margin-top: 5px;
        }

        .wallet-connection-section {
            margin-bottom: 25px;
        }

        .wallet-status {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .wallet-status-icon {
            font-size: 2em;
        }

        .wallet-status-text {
            flex: 1;
        }

        .wallet-status-label {
            font-weight: 700;
            font-size: 1em;
            margin-bottom: 3px;
        }

        .wallet-status-desc {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .connect-wallet-claim-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            color: var(--dark);
            border: none;
            padding: 14px 24px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(20, 241, 149, 0.3);
        }

        .connect-wallet-claim-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(20, 241, 149, 0.4);
        }

        .wallet-icon {
            font-size: 1.2em;
        }

        .connected-wallet-info {
            padding: 15px;
            background: rgba(20, 241, 149, 0.1);
            border: 2px solid var(--primary);
            border-radius: 10px;
        }

        .wallet-connected-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
        }

        .wallet-badge-icon {
            font-size: 1.2em;
        }

        .wallet-address-display {
            font-family: 'Space Mono', monospace;
            font-size: 0.85em;
            color: var(--text-secondary);
            word-break: break-all;
        }

        .solana-network-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            background: rgba(153, 69, 255, 0.1);
            border: 1px solid rgba(153, 69, 255, 0.3);
            border-radius: 10px;
            margin-bottom: 25px;
        }

        .network-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            font-size: 0.95em;
        }

        .network-icon {
            font-size: 1.3em;
        }

        .network-desc {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .claim-disclaimer {
            display: flex;
            gap: 10px;
            padding: 12px;
            background: rgba(74, 158, 255, 0.1);
            border-left: 3px solid var(--accent);
            border-radius: 6px;
            margin-top: 20px;
        }

        .disclaimer-icon {
            font-size: 1.2em;
            flex-shrink: 0;
        }

        .disclaimer-text {
            font-size: 0.85em;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* Profile Setup / Registration Modal */
        .profile-setup-modal {
            max-width: 520px;
        }

        .profile-setup-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .profile-setup-header .setup-icon {
            font-size: 3em;
            margin-bottom: 8px;
        }

        .profile-setup-header .setup-title {
            font-size: 1.3em;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .profile-setup-header .setup-subtitle {
            font-size: 0.9em;
            color: var(--text-secondary);
        }

        .profile-setup-wallet-badge {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: rgba(20, 241, 149, 0.08);
            border: 1px solid rgba(20, 241, 149, 0.25);
            border-radius: 10px;
            margin-bottom: 24px;
            font-family: 'Space Mono', monospace;
            font-size: 0.85em;
            color: var(--primary);
        }

        .profile-setup-wallet-badge .badge-icon {
            font-size: 1.3em;
        }

        .profile-setup-form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .setup-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .setup-field label {
            font-weight: 700;
            font-size: 0.9em;
            color: var(--text-primary);
        }

        .setup-field label .optional-tag {
            font-weight: 400;
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .setup-field input {
            padding: 12px 16px;
            border-radius: 10px;
            border: 2px solid var(--border);
            background: var(--bg-input);
            color: var(--text-primary);
            font-size: 1em;
            font-family: inherit;
            transition: border-color 0.2s;
        }

        .setup-field input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .setup-field .field-hint {
            font-size: 0.8em;
            color: var(--text-tertiary);
        }

        .setup-field .field-error {
            font-size: 0.8em;
            color: var(--error);
            display: none;
        }

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

        .setup-actions .btn-skip {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            border: 2px solid var(--border);
            background: transparent;
            color: var(--text-secondary);
            font-weight: 700;
            font-size: 0.95em;
            cursor: pointer;
            transition: all 0.2s;
        }

        .setup-actions .btn-skip:hover {
            border-color: var(--text-tertiary);
            color: var(--text-primary);
        }

        .setup-actions .btn-save-profile {
            flex: 2;
            padding: 12px;
            border-radius: 10px;
            border: none;
            background: var(--gradient-primary);
            color: #0A0A0B;
            font-weight: 800;
            font-size: 0.95em;
            cursor: pointer;
            transition: all 0.2s;
        }

        .setup-actions .btn-save-profile:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(20, 241, 149, 0.3);
        }

        .setup-actions .btn-save-profile:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Wallet Connection Modal */
        .wallet-modal {
            max-width: 500px;
        }

        .wallet-intro {
            text-align: center;
            margin-bottom: 25px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .wallet-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .wallet-option-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 18px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
        }

        .wallet-option-card:hover {
            border-color: var(--primary);
            transform: translateX(4px);
            background: rgba(20, 241, 149, 0.05);
        }

        .wallet-option-icon {
            font-size: 2.5em;
        }

        .wallet-option-info {
            flex: 1;
            text-align: left;
        }

        .wallet-option-name {
            font-weight: 700;
            font-size: 1.1em;
            margin-bottom: 3px;
        }

        .wallet-option-desc {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .wallet-option-arrow {
            font-size: 1.5em;
            color: var(--text-tertiary);
        }

        .wallet-help {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px;
            background: rgba(74, 158, 255, 0.1);
            border-radius: 10px;
            margin-top: 20px;
        }

        .help-icon {
            font-size: 1.3em;
        }

        .help-text {
            font-size: 0.9em;
            color: var(--text-secondary);
        }

        .help-link {
            color: var(--accent);
            font-weight: 600;
            text-decoration: none;
        }

        .help-link:hover {
            text-decoration: underline;
        }

        /* Verification Payment Modal */
        .verification-payment-modal {
            max-width: 550px;
        }

        .verification-payment-summary {
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(20, 241, 149, 0.1) 100%);
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            margin-bottom: 25px;
        }

        .payment-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }

        .payment-amount-display {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .payment-label {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .payment-amount {
            font-size: 3em;
            font-weight: 800;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
        }

        .payment-sol {
            font-size: 1.2em;
            color: var(--accent);
            font-weight: 600;
            font-family: 'Space Mono', monospace;
        }

        .connected-wallet-section {
            padding: 15px;
            background: rgba(20, 241, 149, 0.1);
            border: 2px solid var(--primary);
            border-radius: 10px;
            margin-bottom: 25px;
        }

        .fee-breakdown-verification {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .breakdown-title {
            font-size: 1em;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .verification-benefits-quick {
            padding: 15px;
            background: rgba(20, 241, 149, 0.05);
            border-left: 3px solid var(--primary);
            border-radius: 6px;
            margin-bottom: 20px;
        }

        .quick-benefit {
            font-size: 0.9em;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .quick-benefit:last-child {
            margin-bottom: 0;
        }

        /* Wallet Button States */
        .connect-wallet-btn {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .connect-wallet-btn.connected {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
        }

        @media (max-width: 768px) {
            .share-buttons {
                grid-template-columns: 1fr;
            }

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

            .referral-card {
                padding: 20px;
            }

            .earnings-amount {
                font-size: 2.2em;
            }

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

            .verification-hero-title {
                font-size: 1.6em;
            }

            .why-verify-grid {
                grid-template-columns: 1fr;
            }

            .referral-link-container {
                flex-direction: column;
            }

            .copy-link-btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* Legacy styles removal */
        .tier-benefits {
            display: none;
        }

        /* Messages Screen */
        /* Messages Fullscreen Container */
        .messages-fullscreen-container {
            width: 100%;
            max-width: 100%;
            height: calc(100vh - 120px);
            display: flex;
            flex-direction: column;
            padding: 0;
            margin: 0;
        }

        /* Search Section */
        .messages-search-section {
            padding: 20px 30px;
            background: var(--bg-card);
            border-bottom: 2px solid var(--border);
        }

        .messages-main-title {
            font-size: 2em;
            font-weight: 800;
            margin-bottom: 20px;
        }

        /* Clickable Search Bar */
        .messages-search-clickable {
            background: linear-gradient(135deg, rgba(20, 241, 149, 0.1), rgba(74, 158, 255, 0.1));
            border: 2px solid var(--primary);
            border-radius: 16px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 20px rgba(20, 241, 149, 0.2);
        }

        .messages-search-clickable:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 30px rgba(20, 241, 149, 0.3);
            border-color: #14F195;
        }

        .search-header-row {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .search-icon-large {
            font-size: 2.5em;
            flex-shrink: 0;
        }

        .search-text-area {
            flex: 1;
        }

        .search-main-text {
            font-size: 1.2em;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .search-sub-text {
            font-size: 0.9em;
            color: var(--text-tertiary);
        }

        .search-action-icon {
            font-size: 2em;
            color: var(--primary);
            font-weight: 700;
        }

        /* Expanded Search Input Area */
        .messages-search-input-area {
            margin-top: 15px;
            background: var(--bg-secondary);
            border: 2px solid var(--primary);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(20, 241, 149, 0.2);
        }

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

        .search-input-title {
            font-size: 1.1em;
            font-weight: 700;
            color: var(--primary);
        }

        .close-search-input-btn {
            background: none;
            border: none;
            font-size: 1.5em;
            color: var(--text-tertiary);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .close-search-input-btn:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }

        .search-input-box {
            position: relative;
            margin-bottom: 15px;
        }

        .search-icon-small {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.3em;
            pointer-events: none;
        }

        .message-search-field {
            width: 100%;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 10px;
            padding: 14px 20px 14px 50px;
            color: var(--text-primary);
            font-size: 1em;
            transition: all 0.3s;
        }

        .message-search-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.1);
        }

        .search-live-results {
            max-height: 400px;
            overflow-y: auto;
        }

        .search-hint {
            text-align: center;
            padding: 20px;
            color: var(--text-tertiary);
            font-size: 0.9em;
        }

        .search-user-result {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .search-user-result:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
            transform: translateX(4px);
        }

        .search-user-result:last-child {
            margin-bottom: 0;
        }

        /* Messages List Section */
        .messages-list-section {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }

        .messages-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .list-section-title {
            font-size: 1.2em;
            font-weight: 700;
            margin: 0;
        }

        .conversation-count {
            font-size: 0.9em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .message-threads-fullscreen {
            padding: 10px 20px;
        }

        .messages-content {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        /* User Search Box */
        .message-threads {
            display: flex;
            flex-direction: column;
        }

        .message-thread-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

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

        .message-thread-card:hover {
            background: var(--bg-hover);
        }

        .thread-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.3em;
            color: var(--dark);
            flex-shrink: 0;
        }

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

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

        .thread-name {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .thread-username {
            font-weight: 700;
            font-size: 1em;
        }

        .thread-timestamp {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .thread-preview-text {
            font-size: 0.9em;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .thread-unread-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--accent);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 700;
            font-family: 'Space Mono', monospace;
        }

        .messages-empty {
            text-align: center;
            padding: 80px 40px;
        }

        .empty-icon {
            font-size: 4em;
            margin-bottom: 20px;
        }

        .empty-title {
            font-size: 1.5em;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .empty-desc {
            color: var(--text-secondary);
            margin-bottom: 25px;
            line-height: 1.6;
        }

        /* Message Conversation */
        .conversation-container {
            max-width: 900px;
            margin: 0 auto;
            height: calc(100vh - 100px);
            display: flex;
            flex-direction: column;
        }

        .conversation-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px 12px 0 0;
        }

        .back-btn {
            background: none;
            border: none;
            font-size: 1.2em;
            cursor: pointer;
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.2s;
        }

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

        .conversation-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .conversation-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: var(--dark);
            font-size: 1.2em;
        }

        .conversation-username {
            font-weight: 700;
            font-size: 1.1em;
        }

        .conversation-status {
            font-size: 0.85em;
            color: var(--primary);
        }

        .conversation-options-btn {
            background: none;
            border: none;
            font-size: 1.5em;
            cursor: pointer;
            color: var(--text-tertiary);
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .conversation-options-btn:hover {
            background: var(--bg-hover);
        }

        .conversation-messages {
            flex: 1;
            overflow-y: auto;
            padding: 30px;
            background: var(--bg-card);
            border-left: 1px solid var(--border);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .message-bubble {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 16px;
            position: relative;
        }

        .message-bubble.sent {
            align-self: flex-end;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            color: var(--dark);
            border-bottom-right-radius: 4px;
        }

        .message-bubble.received {
            align-self: flex-start;
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-bottom-left-radius: 4px;
        }

        .message-content {
            font-size: 0.95em;
            line-height: 1.5;
            margin-bottom: 4px;
        }

        .message-time {
            font-size: 0.75em;
            opacity: 0.7;
            text-align: right;
        }

        .conversation-input-container {
            display: flex;
            gap: 12px;
            padding: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 0 0 12px 12px;
            border-top: none;
        }

        .conversation-input {
            flex: 1;
            background: var(--bg-secondary);
            border: 2px solid var(--border);
            border-radius: 24px;
            padding: 12px 20px;
            color: var(--text-primary);
            font-size: 0.95em;
            resize: none;
            max-height: 120px;
        }

        .conversation-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .send-message-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            border: none;
            cursor: pointer;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .send-message-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(20, 241, 149, 0.4);
        }

        /* Settings */
        .settings-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .settings-header {
            margin-bottom: 30px;
        }

        .settings-title {
            font-size: 2em;
            font-weight: 800;
        }

        .settings-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .settings-section {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .settings-section-title {
            padding: 15px 20px;
            font-weight: 700;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-tertiary);
            background: var(--bg-secondary);
        }

        .settings-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 18px 20px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }

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

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

        .settings-item-icon {
            font-size: 1.5em;
            width: 40px;
            text-align: center;
        }

        .settings-item-info {
            flex: 1;
        }

        .settings-item-label {
            font-weight: 600;
            margin-bottom: 3px;
        }

        .settings-item-desc {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .settings-item-arrow {
            font-size: 1.2em;
            color: var(--text-tertiary);
        }

        .settings-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 28px;
        }

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

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-secondary);
            border: 2px solid var(--border);
            transition: 0.3s;
            border-radius: 28px;
        }

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

        input:checked + .toggle-slider {
            background-color: var(--primary);
            border-color: var(--primary);
        }

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

        /* Comment Delete Button */
        .comment-delete-btn {
            background: none;
            border: none;
            color: #ff4444;
            font-size: 0.9em;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .comment-delete-btn:hover {
            background: rgba(255, 68, 68, 0.1);
        }

        /* Leaderboard */
        .leaderboard-container {
            max-width: 1000px;
            margin: 0 auto;
        }

        .leaderboard-header {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            text-align: center;
        }

        .leaderboard-title {
            font-size: 2em;
            font-weight: 800;
            margin-bottom: 15px;
        }

        .leaderboard-meta {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
        }

        .pool-info {
            font-size: 1.3em;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .pool-amount {
            font-size: 1.3em;
            font-weight: 800;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
        }

        .total-competitors {
            font-size: 1.3em;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .competitor-count {
            font-weight: 800;
            color: var(--accent);
            font-family: 'Space Mono', monospace;
        }

        .scoring-explanation {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 25px 30px;
            margin: 30px 0;
            text-align: center;
        }

        .scoring-title {
            font-size: 1.3em;
            font-weight: 800;
            margin-bottom: 15px;
            color: var(--text-primary);
        }

        .scoring-formula {
            font-size: 1em;
            color: var(--text-tertiary);
            margin-bottom: 15px;
        }

        .scoring-factors {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .factor {
            background: var(--bg-card);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9em;
            border: 1px solid var(--border);
        }

        .scoring-note {
            font-size: 0.9em;
            color: var(--accent);
            font-weight: 600;
            font-style: italic;
        }

        .leader-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .leader-stats {
            font-size: 0.85em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .leader-score {
            font-weight: 700;
            font-family: 'Space Mono', monospace;
            color: var(--accent);
        }

        .leaderboard-table {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .table-header {
            display: grid;
            grid-template-columns: 80px 1fr 150px 150px;
            gap: 20px;
            padding: 20px 30px;
            background: var(--bg-card);
            font-weight: 700;
            border-bottom: 2px solid var(--border);
        }

        .leaderboard-row {
            display: grid;
            grid-template-columns: 80px 1fr 150px 150px;
            gap: 20px;
            padding: 25px 30px;
            border-bottom: 1px solid var(--border);
            transition: background 0.2s;
            align-items: center;
        }

        .leaderboard-row:hover {
            background: var(--bg-card);
        }

        .leaderboard-row:last-child {
            border-bottom: none;
        }

        .rank {
            font-weight: 800;
            font-size: 1.2em;
            font-family: 'Space Mono', monospace;
        }

        .rank-1 {
            color: #FFD700;
        }

        .rank-2 {
            color: #C0C0C0;
        }

        .rank-3 {
            color: #CD7F32;
        }

        .leader-user {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .leader-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2em;
        }

        .leader-name {
            font-weight: 700;
            font-size: 1em;
        }

        .time-spent {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            color: var(--primary);
        }

        .estimated-payout {
            font-family: 'Space Mono', monospace;
            font-weight: 800;
            font-size: 1.1em;
            color: var(--primary);
        }

        /* Pagination */
        .pagination-container {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px 30px;
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .pagination-info {
            font-size: 0.95em;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .pagination-info span {
            color: var(--primary);
            font-weight: 800;
            font-family: 'Space Mono', monospace;
        }

        .pagination-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .pagination-btn {
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 700;
            font-size: 1.1em;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            min-width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pagination-btn:hover:not(:disabled) {
            background: var(--bg-hover);
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }

        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .pagination-numbers {
            display: flex;
            gap: 6px;
        }

        .pagination-page {
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Space Mono', monospace;
        }

        .pagination-page:hover {
            background: var(--bg-hover);
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-2px);
        }

        .pagination-page.active {
            background: var(--gradient-primary);
            color: white;
            border-color: transparent;
            box-shadow: var(--shadow-glow);
        }

        .pagination-ellipsis {
            padding: 10px 8px;
            color: var(--text-tertiary);
            font-weight: 700;
        }

        .pagination-jump {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.95em;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .pagination-jump input {
            width: 70px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 10px 12px;
            border-radius: 8px;
            font-weight: 600;
            font-family: 'Space Mono', monospace;
            text-align: center;
            transition: all 0.3s ease;
        }

        .pagination-jump input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(20, 241, 149, 0.1);
        }

        @media (max-width: 768px) {
            .pagination-container {
                flex-direction: column;
                text-align: center;
            }

            .pagination-info,
            .pagination-jump {
                width: 100%;
                justify-content: center;
            }
        }

        /* Chat Room */
        /* Chat Room - Compact Redesign */
        .chatroom-redesign {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 120px);
            max-width: 900px;
            margin: 0 auto;
        }

        .chat-header-compact {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 16px 16px 0 0;
            border-bottom: none;
        }

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

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



        .chat-sort-btn.active {
            background: var(--primary);
            color: var(--dark);
        }


        .sort-icon {
            font-size: 1em;
        }

        .chat-room-icon {
            font-size: 1.8em;
        }

        .chat-header-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .chat-room-title {
            font-size: 1.1em;
            font-weight: 800;
            color: var(--text-primary);
        }

        .chat-room-subtitle {
            font-size: 0.8em;
            color: var(--text-tertiary);
        }

        .chat-online-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(20, 241, 149, 0.1);
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid var(--primary);
        }

        .online-indicator {
            font-size: 0.8em;
        }

        .online-count {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            color: var(--primary);
            font-size: 0.9em;
        }

        .chat-messages-area {
            flex: 1;
            overflow-y: auto;
            padding: 12px;
            background: var(--bg-card);
            border-left: 2px solid var(--border);
            border-right: 2px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .chat-msg-compact {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: 10px;
            transition: all 0.2s;
        }

        .chat-msg-compact:hover {
            background: var(--bg-secondary);
        }

        .msg-reply-btn {
            flex-shrink: 0;
            background: var(--primary);
            border: 2px solid var(--primary);
            color: var(--dark);
            width: 34px;
            height: 34px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(20, 241, 149, 0.3);
        }

        .msg-reply-btn:hover {
            background: var(--accent);
            border-color: var(--accent);
            transform: scale(1.12);
            box-shadow: 0 4px 12px rgba(20, 241, 149, 0.5);
        }

        .reply-btn-icon {
            font-size: 1em;
        }

        .msg-avatar-mini {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: var(--dark);
            flex-shrink: 0;
            font-size: 0.9em;
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }

        .msg-avatar-mini.anon {
            background: linear-gradient(135deg, #666, #999);
        }

        .msg-content-compact {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .msg-header-compact {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .msg-username {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 0.9em;
        }

        .verified-mini {
            background: var(--primary);
            color: var(--dark);
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6em;
            font-weight: 800;
        }

        .anon-mini {
            background: var(--bg-secondary);
            color: var(--text-tertiary);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.65em;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .msg-time {
            font-size: 0.75em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
            margin-left: auto;
        }

        .msg-reply-mini {
            background: var(--bg-secondary);
            border-left: 3px solid var(--primary);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            color: var(--text-tertiary);
            display: flex;
            gap: 4px;
            align-items: center;
        }

        .reply-icon-mini {
            color: var(--primary);
        }

        .reply-to-mini {
            font-weight: 600;
            color: var(--text-secondary);
        }

        .reply-text-mini {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex: 1;
        }

        .msg-text {
            color: var(--text-primary);
            line-height: 1.4;
            font-size: 0.95em;
        }

        .chat-send-compact {
            padding: 12px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 0 0 16px 16px;
            border-top: none;
        }

        /* Reply Preview in Send Box */
        .chat-reply-active,

        .reply-active-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .reply-active-header {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85em;
        }

        .reply-active-icon {
            color: var(--primary);
            font-size: 1.1em;
        }

        .reply-active-label {
            color: var(--text-tertiary);
            font-weight: 600;
        }

        .reply-active-username {
            color: var(--primary);
            font-weight: 700;
        }

        .reply-active-text {
            color: var(--text-secondary);
            font-size: 0.85em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding-left: 22px;
        }

        .reply-cancel-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-tertiary);
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.1em;
        }

        .reply-cancel-btn:hover {
            background: rgba(255, 68, 68, 0.1);
            border-color: #ff4444;
            color: #ff4444;
        }

        .send-box-wrapper {
            display: flex;
            gap: 10px;
            background: var(--bg-secondary);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 8px;
            transition: all 0.3s;
        }

        .send-box-wrapper:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.1);
        }

        .chat-input-compact {
            flex: 1;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 0.95em;
            outline: none;
            padding: 6px 8px;
        }

        .chat-input-compact::placeholder {
            color: var(--text-tertiary);
        }

        .send-btn-compact {
            background: linear-gradient(135deg, var(--accent), var(--primary));
            border: none;
            color: var(--dark);
            width: 40px;
            height: 40px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .send-btn-compact:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(20, 241, 149, 0.4);
        }

        .send-icon {
            font-size: 1.1em;
        }




        .online-users {
            font-size: 1em;
            font-weight: 600;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-card);
            padding: 8px 16px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }


        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            background: var(--bg-main);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-message {
            display: flex;
            gap: 10px;
            padding: 10px 16px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            transition: all 0.2s;
            animation: slideIn 0.3s ease;
            position: relative;
        }

        .chat-message:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 12px rgba(74, 158, 255, 0.15);
        }

        .chat-message:hover .chat-reply-btn {
            opacity: 1;
        }

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

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

        .chat-avatar {
            width: 36px;
            height: 36px;
            min-width: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9em;
            border: 1px solid var(--border);
        }

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

        .chat-user-line {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .chat-username {
            font-weight: 700;
            font-size: 0.9em;
            color: var(--primary);
        }

        .chat-timestamp {
            font-size: 0.75em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        .chat-text {
            color: var(--text-secondary);
            line-height: 1.5;
            font-size: 0.9em;
        }

        .chat-reply-btn {
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-tertiary);
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.75em;
            cursor: pointer;
            opacity: 0;
            transition: all 0.2s;
            font-weight: 600;
        }

        .chat-reply-btn:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .chat-message-actions {
            position: absolute;
            top: 8px;
            right: 12px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .chat-message:hover .chat-message-actions {
            opacity: 1;
        }

        .chat-edit-btn {
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-tertiary);
            padding: 4px 8px;
            border-radius: 8px;
            font-size: 0.75em;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

        .chat-edit-btn:hover {
            background: var(--warning);
            color: white;
            border-color: var(--warning);
        }

        .chat-edit-box {
            margin-top: 10px;
            padding: 10px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        .chat-edit-input {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 8px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9em;
            resize: vertical;
            min-height: 60px;
            margin-bottom: 8px;
        }

        .chat-edit-input:focus {
            outline: none;
            border-color: var(--warning);
        }

        .chat-edit-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .chat-save-btn {
            background: var(--warning);
            color: white;
            border: none;
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 0.85em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .chat-save-btn:hover {
            background: var(--warning);
            opacity: 0.8;
            transform: translateY(-1px);
        }

        .chat-cancel-btn {
            background: var(--bg-card);
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 0.85em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .chat-cancel-btn:hover {
            background: var(--error);
            color: white;
            border-color: var(--error);
        }

        .chat-reply-preview {
            background: var(--bg-input);
            border-left: 3px solid var(--accent);
            padding: 6px 10px;
            border-radius: 6px;
            margin-bottom: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .chat-reply-preview:hover {
            background: var(--bg-hover);
        }

        .chat-reply-header {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 3px;
        }

        .chat-reply-icon {
            font-size: 0.7em;
            color: var(--accent);
        }

        .chat-reply-to {
            font-size: 0.75em;
            font-weight: 700;
            color: var(--accent);
        }

        .chat-reply-text {
            font-size: 0.8em;
            color: var(--text-tertiary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-style: italic;
        }

        .chat-input-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 20px 25px;
            background: var(--bg-card);
            border-top: 2px solid var(--border);
        }

        .chat-input {
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px 18px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95em;
            transition: border-color 0.2s;
            resize: vertical;
            min-height: 60px;
            max-height: 200px;
            line-height: 1.5;
            overflow-y: auto;
        }

        .chat-input:focus {
            outline: none;
            border-color: var(--accent);
        }




        .chat-reply-preview-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }

        .chat-reply-preview-content {
            flex: 1;
        }

        .chat-reply-preview-label {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }

        .chat-reply-cancel {
            background: transparent;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 1.1em;
            padding: 0 4px;
            transition: color 0.2s;
            flex-shrink: 0;
        }

        .chat-reply-cancel:hover {
            color: var(--error);
        }

        /* User List (Followers/Following Modals) */
        .user-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .modal-search-wrap { padding: 0 0 16px 0; position: relative; }
        .modal-search-input { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 10px 36px 10px 14px; color: var(--text-primary); font-size: 0.9em; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
        .modal-search-input:focus { border-color: var(--primary); }
        .modal-search-input::placeholder { color: var(--text-tertiary); }
        .modal-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); pointer-events: none; margin-top: -8px; }
        .modal-no-results { text-align: center; color: var(--text-tertiary); padding: 30px 0; font-size: 0.9em; }
        .user-list-name.username-link { cursor: pointer; transition: color 0.15s; }
        .user-list-name.username-link:hover { color: var(--primary); }

        .user-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            transition: all 0.2s;
        }

        .user-list-item:hover {
            border-color: var(--primary);
            transform: translateX(4px);
        }

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

        .user-list-name {
            font-weight: 700;
            font-size: 0.95em;
            margin-bottom: 4px;
        }

        .user-list-meta {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .btn-follow-small {
            background: var(--accent);
            color: white;
            border: none;
            padding: 6px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-follow-small:hover {
            transform: scale(1.05);
        }

        .btn-follow-small.active {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        /* Side Panels (Notifications & Messages) */
        .side-panel {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            z-index: 10000;
            display: flex;
        }

        .panel-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .panel-content {
            position: relative;
            width: 400px;
            max-width: 90vw;
            background: var(--bg-secondary);
            margin-left: auto;
            display: flex;
            flex-direction: column;
            animation: slideInRight 0.3s ease;
        }

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

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

        .panel-header h3 {
            font-size: 1.3em;
            font-weight: 800;
        }

        .panel-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5em;
            cursor: pointer;
            transition: color 0.2s;
        }

        .panel-close:hover {
            color: var(--error);
        }

        .panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        /* Notifications */
        .notification-item {
            display: flex;
            gap: 12px;
            padding: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .notification-item:hover {
            border-color: var(--accent);
            transform: translateX(4px);
        }

        .notif-preview {
            font-size: 0.82em;
            color: var(--text-tertiary);
            font-style: italic;
            margin: 3px 0 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 220px;
        }

        .notification-item.unread {
            background: rgba(74, 158, 255, 0.05);
            border-color: var(--accent);
        }

        .notif-icon {
            font-size: 1.5em;
        }

        .notif-content {
            flex: 1;
        }

        .notif-text {
            font-size: 0.9em;
            margin-bottom: 4px;
            line-height: 1.4;
        }

        .notif-time {
            font-size: 0.8em;
            color: var(--text-tertiary);
            font-family: 'Space Mono', monospace;
        }

        /* Messages */
        .message-thread {
            display: flex;
            gap: 12px;
            padding: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .message-thread:hover {
            border-color: var(--primary);
            transform: translateX(4px);
        }

        .thread-content {
            flex: 1;
        }

        .thread-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .thread-preview {
            font-size: 0.9em;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .unread-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: var(--accent);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75em;
            font-weight: 700;
        }

        /* Context Menu (Post Options) */
        .context-menu {
            position: fixed;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            z-index: 10000;
            min-width: 200px;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
        }

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

        .menu-icon {
            font-size: 1.2em;
        }

        /* Voice Chat */
        /* Voice Chat - Start Section */
        .start-voice-section {
            margin-bottom: 30px;
        }

        .start-voice-btn {
            width: 100%;
            background: var(--gradient-primary);
            border: none;
            border-radius: 16px;
            padding: 24px 32px;
            display: flex;
            align-items: center;
            gap: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-glow);
        }

        .start-voice-btn:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 32px rgba(20, 241, 149, 0.4);
        }

        .start-voice-icon {
            font-size: 3em;
            line-height: 1;
        }

        .start-voice-text {
            flex: 1;
            text-align: left;
        }

        .start-voice-title {
            font-size: 1.5em;
            font-weight: 800;
            color: white;
            margin-bottom: 4px;
        }

        .start-voice-subtitle {
            font-size: 0.95em;
            color: rgba(255, 255, 255, 0.85);
        }

        .start-voice-arrow {
            font-size: 2em;
            color: white;
            transition: transform 0.3s ease;
        }

        .start-voice-btn:hover .start-voice-arrow {
            transform: translateX(8px);
        }

        /* Voice Chat Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
        }

        .modal-content {
            position: relative;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-lg);
            animation: modalSlideIn 0.3s ease;
        }

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

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

        .modal-header h2 {
            font-size: 1.5em;
            font-weight: 800;
            margin: 0;
        }

        .modal-close {
            background: var(--bg-hover);
            border: none;
            color: var(--text-tertiary);
            font-size: 1.5em;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: var(--error);
            color: white;
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 24px 28px;
        }

        .modal-footer {
            padding: 20px 28px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-primary);
            font-size: 0.95em;
        }

        .form-input,
        .form-textarea,
        .form-select {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 16px;
            color: var(--text-primary);
            font-family: 'Montserrat', sans-serif;
            font-size: 1em;
            transition: all 0.3s ease;
        }

        .form-input:focus,
        .form-textarea:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(20, 241, 149, 0.1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .form-select {
            cursor: pointer;
        }

        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .radio-option:hover {
            border-color: var(--border-light);
            background: var(--bg-hover);
        }

        .radio-option input[type="radio"] {
            width: 20px;
            height: 20px;
            margin: 0;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .radio-option input[type="radio"]:checked + .radio-label {
            color: var(--primary);
        }

        .radio-label {
            flex: 1;
        }

        .radio-title {
            font-weight: 600;
            font-size: 1em;
            margin-bottom: 4px;
        }

        .radio-desc {
            font-size: 0.85em;
            color: var(--text-tertiary);
        }

        .voice-settings-toggle {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
            padding: 16px;
            background: var(--bg-input);
            border-radius: 12px;
        }

        .voice-settings-toggle label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 0.95em;
            color: var(--text-secondary);
            transition: color 0.2s;
        }

        .voice-settings-toggle label:hover {
            color: var(--text-primary);
        }

        .voice-settings-toggle input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .btn-cancel {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
        }

        .btn-cancel:hover {
            border-color: var(--error);
            color: var(--error);
            background: rgba(255, 77, 106, 0.1);
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            box-shadow: var(--shadow-glow);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1em;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(20, 241, 149, 0.4);
        }

        /* Create Voice Chat Page */
        .create-voice-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }

        .create-voice-header {
            margin-bottom: 40px;
        }

        .back-to-voice-btn {
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 10px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95em;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            margin-bottom: 30px;
            display: inline-block;
        }

        .back-to-voice-btn:hover {
            background: var(--bg-hover);
            border-color: var(--primary);
            color: var(--primary);
            transform: translateX(-4px);
        }

        .create-voice-hero {
            text-align: center;
            padding: 40px 20px;
            background: var(--gradient-card);
            border-radius: 20px;
            border: 1px solid var(--border-light);
        }

        .create-voice-icon {
            font-size: 5em;
            margin-bottom: 20px;
            animation: float 3s ease-in-out infinite;
        }

        .create-voice-title {
            font-size: 3em;
            font-weight: 800;
            margin-bottom: 12px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .create-voice-subtitle {
            font-size: 1.2em;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .create-voice-form {
            margin-top: 40px;
        }

        .form-section {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 32px;
            margin-bottom: 24px;
            transition: all 0.3s ease;
        }

        .form-section:hover {
            border-color: var(--border-light);
            box-shadow: var(--shadow-sm);
        }

        .form-section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border);
        }

        .form-section-icon {
            font-size: 2em;
        }

        .form-section-title {
            font-size: 1.5em;
            font-weight: 800;
            color: var(--text-primary);
        }

        .required {
            color: var(--error);
            font-weight: 800;
        }

        .form-hint {
            font-size: 0.85em;
            color: var(--text-tertiary);
            margin-top: 8px;
            font-style: italic;
        }

        .radio-card {
            display: block;
            background: var(--bg-input);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .radio-card:hover {
            border-color: var(--border-light);
            background: var(--bg-hover);
            transform: translateX(4px);
        }

        .radio-card input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .radio-card input[type="radio"]:checked + .radio-content {
            border-color: var(--primary);
        }

        .radio-card input[type="radio"]:checked + .radio-content .radio-checkmark {
            opacity: 1;
            transform: scale(1);
        }

        .radio-content {
            display: flex;
            align-items: center;
            gap: 16px;
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 8px;
            transition: all 0.3s ease;
        }

        .radio-icon {
            font-size: 2.5em;
            flex-shrink: 0;
        }

        .radio-details {
            flex: 1;
        }

        .radio-title {
            font-size: 1.1em;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text-primary);
        }

        .radio-desc {
            font-size: 0.9em;
            color: var(--text-tertiary);
        }

        .radio-checkmark {
            font-size: 1.8em;
            color: var(--primary);
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
        }

        .schedule-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .schedule-card {
            background: var(--bg-input);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .schedule-card:hover {
            border-color: var(--accent);
            background: var(--bg-hover);
        }

        .schedule-card input[type="radio"] {
            display: none;
        }

        .schedule-card input[type="radio"]:checked + .schedule-content {
            color: var(--accent);
        }

        .schedule-card input[type="radio"]:checked ~ * {
            border-color: var(--accent);
        }

        .schedule-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .schedule-icon {
            font-size: 2.5em;
        }

        .schedule-text {
            font-weight: 700;
            font-size: 1.05em;
        }

        .feature-toggles {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .feature-toggle-card {
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .feature-toggle-card:hover {
            border-color: var(--border-light);
            background: var(--bg-hover);
        }

        .toggle-icon {
            font-size: 2em;
            flex-shrink: 0;
        }

        .toggle-info {
            flex: 1;
        }

        .toggle-title {
            font-size: 1.05em;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text-primary);
        }

        .toggle-desc {
            font-size: 0.9em;
            color: var(--text-tertiary);
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 56px;
            height: 30px;
            flex-shrink: 0;
        }

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

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-card);
            border: 2px solid var(--border);
            transition: 0.3s;
            border-radius: 30px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 2px;
            background: var(--text-tertiary);
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background: var(--primary);
            border-color: var(--primary);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
            background: white;
        }

        .form-actions-sticky {
            position: sticky;
            bottom: 0;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            margin-top: 32px;
            display: flex;
            gap: 16px;
            justify-content: flex-end;
            box-shadow: var(--shadow-lg);
            z-index: 10;
        }

        .btn-secondary-large {
            background: transparent;
            color: var(--text-secondary);
            border: 2px solid var(--border);
            padding: 16px 32px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
        }

        .btn-secondary-large:hover {
            border-color: var(--error);
            color: var(--error);
            background: rgba(255, 77, 106, 0.1);
        }

        .btn-primary-large {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 16px 36px;
            border-radius: 12px;
            font-weight: 800;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            box-shadow: var(--shadow-glow);
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .btn-primary-large:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 12px 40px rgba(20, 241, 149, 0.5);
        }

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

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

        @media (max-width: 768px) {
            .create-voice-title {
                font-size: 2em;
            }

            .form-section {
                padding: 20px;
            }

            .form-actions-sticky {
                flex-direction: column;
            }

            .btn-secondary-large,
            .btn-primary-large {
                width: 100%;
                justify-content: center;
            }

            .schedule-options {
                grid-template-columns: 1fr;
            }
        }

        .voice-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .voice-header {
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(20, 241, 149, 0.15) 100%);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 30px 35px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .space-info {
            flex: 1;
        }

        .space-title {
            font-size: 1.8em;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .space-host {
            color: var(--text-tertiary);
            font-size: 0.95em;
        }

        .host-name {
            color: var(--primary);
            font-weight: 700;
        }

        .listener-count {
            font-size: 1em;
            font-weight: 600;
            color: var(--primary);
            font-family: 'Space Mono', monospace;
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-card);
            padding: 8px 16px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

        .voice-stage {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 20px;
        }

        .stage-section {
            margin-bottom: 30px;
        }

        .stage-section:last-child {
            margin-bottom: 0;
        }

        .section-label {
            font-size: 1.1em;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-primary);
        }

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

        .speaker-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            transition: all 0.3s;
        }

        .speaker-card.host {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.05);
        }

        .speaker-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        .speaker-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2em;
            font-weight: 700;
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }

        .speaker-info {
            text-align: center;
        }

        .speaker-name {
            font-weight: 700;
            font-size: 1em;
            margin-bottom: 4px;
        }

        .speaker-badge {
            background: var(--accent);
            color: var(--dark);
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 0.75em;
            font-weight: 700;
        }

        .speaker-card.host .speaker-badge {
            background: var(--secondary);
            color: white;
        }

        .audio-indicator {
            display: flex;
            gap: 4px;
            align-items: center;
            height: 20px;
        }

        .audio-wave {
            width: 3px;
            background: var(--text-tertiary);
            border-radius: 2px;
            animation: none;
        }

        .audio-indicator.active .audio-wave {
            background: var(--accent);
        }

        .audio-indicator.active .audio-wave:nth-child(1) {
            height: 8px;
            animation: wave 0.8s ease-in-out infinite;
        }

        .audio-indicator.active .audio-wave:nth-child(2) {
            height: 16px;
            animation: wave 0.8s ease-in-out infinite 0.2s;
        }

        .audio-indicator.active .audio-wave:nth-child(3) {
            height: 12px;
            animation: wave 0.8s ease-in-out infinite 0.4s;
        }

        @keyframes wave {
            0%, 100% { height: 8px; }
            50% { height: 20px; }
        }

        .listeners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
        }

        .listener-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .listener-card:hover {
            border-color: var(--primary);
        }

        .listener-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3em;
            font-weight: 700;
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }

        .listener-name {
            font-size: 0.9em;
            font-weight: 600;
            text-align: center;
        }

        .voice-controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-bottom: 30px;
        }

        .voice-control-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 15px 30px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Montserrat', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            min-width: 180px;
        }

        .voice-control-btn:hover {
            transform: translateY(-2px);
        }

        .join-btn:hover {
            border-color: var(--primary);
            background: rgba(20, 241, 149, 0.1);
        }

        .leave-btn:hover {
            border-color: var(--error);
            background: rgba(255, 77, 77, 0.1);
        }

        .control-icon {
            font-size: 2em;
        }

        .control-label {
            font-size: 0.95em;
        }

        .active-spaces-list {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 30px;
        }

        .space-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }

        .space-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            transition: all 0.3s;
        }

        .space-item:hover {
            border-color: var(--primary);
        }

        .space-item-info {
            flex: 1;
        }

        .space-item-title {
            font-size: 1.1em;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .space-item-host {
            font-size: 0.9em;
            color: var(--text-tertiary);
        }

        .join-space-btn {
            background: var(--accent);
            color: var(--dark);
            border: none;
            padding: 10px 24px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9em;
        }

        .join-space-btn:hover {
            transform: translateY(-2px);
        }

        .create-space-btn {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            color: var(--dark);
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            font-weight: 800;
            font-size: 1.1em;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-family: 'Montserrat', sans-serif;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .create-space-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(153, 69, 255, 0.4);
        }

        @media (max-width: 768px) {
            body {
                padding-top: 36px;
                font-size: 15px;
            }

            .main-container {
                padding: 10px 8px;
            }

            .top-header {
                flex-direction: column;
                gap: 12px;
                align-items: center;
                text-align: center;
                padding: 12px 0;
                margin-bottom: 14px;
            }

            .logo {
                font-size: 1.6em;
            }

            .header-actions {
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
            }

            .header-icon-btn {
                padding: 8px 10px;
                font-size: 1.1em;
            }

            .theme-toggle-btn {
                padding: 8px 12px;
                font-size: 0.82em;
            }

            .connect-wallet-btn {
                padding: 10px 18px;
                font-size: 0.85em;
            }

            /* Screen navigation - horizontal scroll on mobile */
            .screen-switcher {
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 6px;
                margin-bottom: 16px;
                padding-bottom: 8px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                justify-content: flex-start;
            }

            .screen-switcher::-webkit-scrollbar {
                display: none;
            }

            .screen-btn {
                padding: 10px 16px;
                font-size: 0.82em;
                white-space: nowrap;
                flex-shrink: 0;
                border-radius: 10px;
            }

            /* Search */
            .search-container {
                margin: 0 0 16px 0;
            }

            .search-input {
                padding: 12px 42px 12px 42px;
                font-size: 0.9em;
            }

            /* Feed / Posts */
            .feed-container {
                padding: 0;
            }

            .create-post {
                padding: 16px;
                margin-bottom: 16px;
                border-radius: 12px;
            }

            .post-title-input {
                padding: 12px 14px;
                font-size: 1em;
            }

            .post-textarea {
                min-height: 80px;
                padding: 12px 14px;
                font-size: 0.95em;
            }

            .post-link-input {
                padding: 10px 14px;
                font-size: 0.9em;
            }

            .post-actions {
                flex-direction: column;
                gap: 10px;
            }

            .media-upload-section {
                width: 100%;
                justify-content: flex-start;
                gap: 8px;
            }

            .media-btn {
                padding: 8px 12px;
                font-size: 0.82em;
            }

            .post-btn {
                width: 100%;
                padding: 12px;
            }

            /* Post cards */
            .post-card {
                padding: 16px;
                margin-bottom: 12px;
                border-radius: 12px;
            }

            .post-card:hover {
                transform: none;
            }

            .post-title {
                font-size: 1.15em;
            }

            .post-content {
                font-size: 0.93em;
                margin-bottom: 14px;
            }

            .post-engagement {
                gap: 14px;
                padding-top: 12px;
                flex-wrap: wrap;
            }

            .avatar {
                width: 38px;
                height: 38px;
                font-size: 0.95em;
            }

            /* Profile */
            .profile-header {
                padding: 16px;
            }

            .profile-avatar {
                width: 70px;
                height: 70px;
                font-size: 1.4em;
            }

            .profile-display-name {
                font-size: 1.3em;
            }

            .profile-stats {
                gap: 12px;
            }

            .stat-item {
                padding: 12px 8px;
            }

            .stat-number {
                font-size: 1.2em;
            }

            .profile-meta {
                gap: 12px;
                margin-top: 30px;
            }

            .profile-bio-card {
                border-radius: 12px;
            }

            .earnings-amount {
                font-size: 1.6em;
            }

            /* Messages */
            .messages-container {
                grid-template-columns: 1fr;
            }

            .conversations-list {
                max-height: 300px;
            }

            .messages-fullscreen-container {
                height: calc(100vh - 80px);
            }

            .messages-search-section {
                padding: 12px 14px;
            }

            .messages-main-title {
                font-size: 1.4em;
            }

            /* Leaderboard */
            .table-header,
            .leaderboard-row {
                grid-template-columns: 40px 1fr 70px 70px;
                gap: 6px;
                padding: 12px 10px;
                font-size: 0.82em;
            }

            .leaderboard-header {
                padding: 20px 16px;
            }

            .leaderboard-title {
                font-size: 1.4em;
            }

            .leaderboard-meta {
                gap: 16px;
            }

            .pool-info,
            .total-competitors {
                font-size: 1em;
            }

            .scoring-explanation {
                padding: 16px;
            }

            .scoring-title {
                font-size: 1.1em;
            }

            .leader-avatar {
                width: 36px;
                height: 36px;
                font-size: 0.9em;
            }

            .verification-container {
                padding: 0 8px;
            }

            .verification-card {
                padding: 20px;
            }

            .fee-breakdown {
                padding: 16px;
            }

            /* Modals */
            .modal-content {
                margin: 10px;
                max-height: 90vh;
                border-radius: 14px;
            }

            /* Chat room */
            .chatroom-redesign {
                height: calc(100vh - 80px);
            }

            .chat-header-compact {
                padding: 12px 14px;
            }

            .chat-room-title {
                font-size: 0.95em;
            }

            /* Voice */
            .voice-header {
                padding: 16px;
                flex-direction: column;
                text-align: center;
            }

            .space-title {
                font-size: 1.3em;
            }

            .speakers-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .voice-controls {
                flex-wrap: wrap;
                gap: 10px;
            }

            .voice-control-btn {
                min-width: 120px;
                padding: 12px 16px;
                font-size: 0.85em;
            }

            .voice-stage {
                padding: 16px;
            }

            .listeners-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 10px;
            }

            .active-spaces-list {
                padding: 16px;
            }

            .space-item {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .join-space-btn {
                width: 100%;
                text-align: center;
            }

            /* Messages */
            .messages-search-section {
                padding: 14px 16px;
            }

            .search-icon-large {
                font-size: 1.8em;
            }

            .search-main-text {
                font-size: 1em;
            }

            /* Ticker */
            .crypto-ticker {
                height: 36px;
            }

            .ticker-item {
                padding: 0 16px;
                height: 36px;
                gap: 6px;
            }

            .ticker-symbol {
                font-size: 0.78em;
            }

            .ticker-price {
                font-size: 0.75em;
            }

            .ticker-change {
                font-size: 0.72em;
            }

            /* Topic dropdown */
            .topic-dropdown {
                width: calc(100vw - 40px);
                max-width: 320px;
            }

            /* Sort header */
            .posts-sort-header {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            /* Verification */
            .verification-pricing {
                padding: 20px;
            }

            .price-value {
                font-size: 3em;
            }

            /* GIF picker */
            .gif-picker {
                width: 96vw;
                max-height: 80vh;
            }

            .gif-grid {
                columns: 2;
            }

            /* Post image grid */
            .post-images-grid-2,
            .post-images-grid-3,
            .post-images-grid-4 {
                grid-template-columns: 1fr;
            }
        }

        /* Extra small devices */
        @media (max-width: 480px) {
            body {
                font-size: 14px;
            }

            .main-container {
                padding: 6px 4px;
            }

            .logo {
                font-size: 1.3em;
            }

            .header-actions {
                gap: 6px;
            }

            .screen-btn {
                padding: 8px 12px;
                font-size: 0.78em;
            }

            .post-card {
                padding: 12px;
            }

            .post-engagement {
                gap: 10px;
                font-size: 0.88em;
            }

            .table-header,
            .leaderboard-row {
                grid-template-columns: 30px 1fr 60px;
                font-size: 0.78em;
            }

            .estimated-payout {
                display: none;
            }

            .table-header div:nth-child(4) {
                display: none;
            }

            .pagination-numbers {
                gap: 3px;
            }

            .pagination-btn,
            .pagination-page {
                min-width: 36px;
                height: 36px;
                padding: 6px 10px;
                font-size: 0.9em;
            }

            .pagination-jump input {
                width: 55px;
                padding: 8px;
            }

            .speakers-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ═══════════════════════════════════════════════════════
           FLOATING ACTION BUTTON (FAB) - Post Creation
           ═══════════════════════════════════════════════════════ */
        .fab-create-post {
            position: fixed;
            bottom: 28px;
            right: 28px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--gradient-primary);
            border: none;
            color: #000;
            font-size: 1.8em;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 6px 24px rgba(20, 241, 149, 0.45), 0 2px 8px rgba(0,0,0,0.3);
            z-index: 900;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fab-create-post:hover {
            transform: scale(1.1) translateY(-4px);
            box-shadow: 0 10px 36px rgba(20, 241, 149, 0.55), 0 4px 12px rgba(0,0,0,0.3);
        }

        .fab-create-post:active {
            transform: scale(0.95);
        }

        @media (max-width: 768px) {
            .fab-create-post {
                bottom: 20px;
                right: 18px;
                width: 54px;
                height: 54px;
                font-size: 1.5em;
            }
        }

        /* ═══════════════════════════════════════════════════════
           CREATE POST MODAL (Full-screen on mobile)
           ═══════════════════════════════════════════════════════ */
        .create-post-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .create-post-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .create-post-modal {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px 24px 0 0;
            width: 100%;
            max-width: 680px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 0;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
        }

        .create-post-modal-overlay.active .create-post-modal {
            transform: translateY(0);
        }

        .create-post-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px 16px;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 1;
        }

        .create-post-modal-title {
            font-size: 1.2em;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .create-post-modal-close {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.2em;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .create-post-modal-close:hover {
            background: rgba(255, 77, 106, 0.15);
            color: var(--error);
            border-color: var(--error);
        }

        .create-post-modal-body {
            padding: 20px 24px 24px;
        }

        .create-post-modal-body .topic-selector {
            margin-bottom: 16px;
        }

        .create-post-modal-body .post-title-input,
        .create-post-modal-body .post-textarea,
        .create-post-modal-body .post-link-input {
            width: 100%;
            box-sizing: border-box;
        }

        .create-post-modal-body .post-actions {
            margin-top: 6px;
        }

        .create-post-modal-body .media-preview {
            margin-top: 12px;
        }

        @media (min-width: 769px) {
            .create-post-modal-overlay {
                align-items: center;
            }

            .create-post-modal {
                border-radius: 24px;
                max-height: 80vh;
                transform: translateY(40px) scale(0.95);
                opacity: 0;
            }

            .create-post-modal-overlay.active .create-post-modal {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        @media (max-width: 768px) {
            .create-post-modal {
                max-height: 95vh;
                border-radius: 20px 20px 0 0;
            }

            .create-post-modal-header {
                padding: 16px 18px 12px;
            }

            .create-post-modal-body {
                padding: 16px 18px 20px;
            }
        }

        /* ═══════════════════════════════════════════════════════
           TICKER - Loading & Error States
           ═══════════════════════════════════════════════════════ */
        .ticker-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-tertiary);
            font-size: 0.85em;
            gap: 8px;
            font-family: 'Space Mono', monospace;
        }

        .ticker-loading-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        .ticker-error {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-tertiary);
            font-size: 0.82em;
            gap: 8px;
            font-family: 'Space Mono', monospace;
        }

        .ticker-error-retry {
            background: none;
            border: 1px solid var(--border);
            color: var(--primary);
            padding: 2px 10px;
            border-radius: 8px;
            font-size: 0.85em;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }

        .ticker-error-retry:hover {
            background: rgba(20, 241, 149, 0.1);
            border-color: var(--primary);
        }

        .ticker-icon {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            vertical-align: middle;
            margin-right: 4px;
        }

        /* Web App Optimizations */
        * {
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Improve rendering performance */
        .screen {
            will-change: opacity, transform;
            contain: layout style paint;
        }

        /* Optimize animations */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Loading state */
        body.loading {
            cursor: wait;
        }

        /* Prevent text selection on UI elements */
        button,
        .screen-btn,
        .nav-btn,
        .username-link {
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }

        /* Optimize images */
        img {
            max-width: 100%;
            height: auto;
            image-rendering: -webkit-optimize-contrast;
        }

        /* Print styles */
        @media print {
            .screen-switcher,
            .crypto-ticker,
            button {
                display: none !important;
            }

            body {
                background: white;
                color: black;
            }
        }

        /* Focus visible for accessibility */
        *:focus-visible {
            outline: 3px solid var(--primary);
            outline-offset: 2px;
        }

        /* Loading spinner */
        .loading-spinner {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 4px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 9999;
        }

        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        body.loading .loading-spinner {
            display: block;
        }

        /* Read More / Show Less */
        .read-more-btn {
            background: none;
            border: none;
            color: var(--primary, #14F195);
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            padding: 0;
            margin-left: 4px;
            font-family: inherit;
        }
        .read-more-btn:hover {
            text-decoration: underline;
        }

        /* ── Post Dropdown Menu ──────────────────────────── */
        .post-dropdown-wrap {
            position: relative;
            margin-left: auto;
        }

        .post-dropdown-trigger {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.3em;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 6px;
            line-height: 1;
            transition: all 0.2s;
        }

        .post-dropdown-trigger:hover {
            background: var(--bg-hover, rgba(255,255,255,0.05));
            color: var(--text-primary);
        }

        .post-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 6px;
            min-width: 180px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
            z-index: 9999;
        }

        .post-dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.88em;
            font-weight: 600;
            color: var(--text-primary);
            transition: background 0.15s;
            white-space: nowrap;
        }

        .post-dropdown-item:hover {
            background: var(--bg-hover, rgba(255,255,255,0.05));
        }

        .post-dropdown-item.post-dropdown-danger {
            color: #ff5555;
        }

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

        /* ── Post Link CTA ───────────────────────────────── */
        .post-link-cta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 10px 0;
            padding: 10px 14px;
            background: rgba(20, 241, 149, 0.06);
            border: 1px solid rgba(20, 241, 149, 0.2);
            border-radius: 10px;
            text-decoration: none;
            transition: all 0.2s;
        }

        .post-link-cta:hover {
            background: rgba(20, 241, 149, 0.12);
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        .post-link-cta-icon {
            font-size: 1.2em;
        }

        .post-link-cta-text {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .post-link-cta-label {
            font-weight: 700;
            font-size: 0.85em;
            color: var(--primary);
        }

        .post-link-cta-domain {
            font-size: 0.78em;
            color: var(--text-tertiary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .post-link-cta-arrow {
            font-size: 1.1em;
            color: var(--primary);
            font-weight: 700;
        }

        /* ── Inline Post Edit ────────────────────────────── */
        .post-edit-inline {
            margin: 8px 0;
        }

        .post-edit-title-input,
        .post-edit-content-input {
            width: 100%;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            padding: 8px 12px;
            font-size: 0.9em;
            font-family: inherit;
            resize: vertical;
            box-sizing: border-box;
        }

        .post-edit-title-input {
            margin-bottom: 8px;
            font-weight: 600;
        }

        .post-edit-content-input:focus,
        .post-edit-title-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .post-edit-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            justify-content: flex-end;
        }

        .post-edit-save-btn {
            background: var(--primary);
            color: #000;
            border: none;
            padding: 6px 16px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.85em;
            cursor: pointer;
        }

        .post-edit-save-btn:hover {
            opacity: 0.9;
        }

        .post-edit-cancel-btn {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            padding: 6px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
        }

        .post-edit-cancel-btn:hover {
            border-color: var(--text-secondary);
        }
