            /* UNAPOLOGETIC. WORLD Brand Colors */
            :root {
                --primary-black: #000000;
                --accent-gold: #cfb53b;
                --text-white: #ffffff;
                --card-bg: #111111;
                --border-color: #1a1a1a;
                --muted-text: #666666;
                --error-color: #ff4444;
                --success-color: #44ff44;
            }

            /* Gold scrollbar for window */
            html,
            body {
                scrollbar-width: thin;
                scrollbar-color: #cfb53b transparent;
            }

            body::-webkit-scrollbar {
                width: 10px;
            }

            body::-webkit-scrollbar-track {
                background: transparent;
            }

            body::-webkit-scrollbar-thumb {
                background: #cfb53b;
                border-radius: 8px;
                border: 2px solid rgba(0, 0, 0, 0.3);
            }

            body::-webkit-scrollbar-thumb:hover {
                background: #e6c547;
            }

            /* Dark Theme - UNAPOLOGETIC. WORLD Brand Colors */
            [data-theme="dark"] {
                --primary-black: #000000;
                --accent-gold: #cfb53b;
                --text-white: #ffffff;
                --card-bg: #111111;
                --border-color: #1a1a1a;
                --muted-text: #666666;
                --error-color: #ff4444;
                --success-color: #44ff44;
            }

            /* Light Theme - UNAPOLOGETIC. WORLD Brand Colors */
            [data-theme="light"] {
                --primary-black: #ffffff;
                --accent-gold: #cfb53b;
                --text-white: #000000;
                --card-bg: #f8f8f8;
                --border-color: #e0e0e0;
                --muted-text: #333333;
                --error-color: #dc2626;
                --success-color: #16a34a;
            }

            /* Weird Theme (Colorful/Vibrant) */
            [data-theme="weird"] {
                --primary-black: #2d1b69;
                --accent-gold: #ffd700;
                --text-white: #00ffff;
                --card-bg: #4b0082;
                --border-color: #ff1493;
                --muted-text: #ffa500;
                --error-color: #ff6347;
                --success-color: #00ff7f;
            }

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

            html,
            body {
                font-family:
                    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                    sans-serif;
                background-color: var(--primary-black);
                color: var(--text-white);
                height: auto;
                min-height: 100dvh;
                margin: 0;
                padding: 0;
                overflow-x: hidden;
                overflow-y: auto;
                position: static;
                width: 100%;
            }

            .app-container {
                display: flex;
                flex-direction: column;
                min-height: 100dvh;
                width: 100%;
                max-width: 1100px;
                margin-inline: auto;
                position: relative;
            }

            /* Header */
            .header {
                flex: 0 0 auto;
                z-index: 40;
                background: var(--primary-black);
                position: sticky;
                top: 0;
                backdrop-filter: blur(8px);
                overflow: visible;
            }

            .header::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: var(--post-width, calc(100% - 32px));
                max-width: none;
                height: 4px;
                background: linear-gradient(90deg,
                        transparent 0%,
                        #ffd700 15%,
                        #9370db 35%,
                        #00ffff 50%,
                        #9370db 65%,
                        #ffd700 85%,
                        transparent 100%);
                border-radius: 3px;
                box-shadow:
                    0 0 10px rgba(255, 215, 0, 0.6),
                    0 0 20px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(0, 255, 255, 0.3);
                animation: neonPulse 2.5s ease-in-out infinite;
            }

            /* 🚀 GPU-OPTIMIZED: Removed expensive filter properties for smooth performance */
            @keyframes neonPulse {

                0%,
                100% {
                    opacity: 0.7;
                    transform: translateX(-50%) scaleX(1) scaleY(1);
                }

                33% {
                    opacity: 1;
                    transform: translateX(-50%) scaleX(1.01) scaleY(1.01);
                }

                66% {
                    opacity: 0.8;
                    transform: translateX(-50%) scaleX(0.99) scaleY(0.99);
                }
            }

            /* 🚀 GPU-OPTIMIZED Mobile: Removed expensive filter properties for smooth performance */
            @keyframes neonPulseMobile {

                0%,
                100% {
                    opacity: 0.7;
                    transform: scaleX(1) scaleY(1);
                }

                33% {
                    opacity: 1;
                    transform: scaleX(1.01) scaleY(1.01);
                }

                66% {
                    opacity: 0.8;
                    transform: scaleX(0.99) scaleY(0.99);
                }
            }

            .header-content {
                max-width: 768px;
                margin: 0 auto;
                padding: 4px 16px 8px 16px;
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: nowrap;
            }

            .settings-container {
                position: relative;
                flex-shrink: 0;
                margin-left: auto;
            }

            /* User Status Badge - Eye-catching design */
            .user-status-badge {
                position: relative;
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 6px 10px;
                background: linear-gradient(135deg, rgba(207, 181, 59, 0.15), rgba(138, 43, 226, 0.15));
                border: 2px solid var(--accent-gold);
                border-radius: 20px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 0 20px rgba(207, 181, 59, 0.3);
                backdrop-filter: blur(10px);
                flex-shrink: 0;
            }

            .user-status-badge:hover {
                transform: translateY(-2px);
                box-shadow: 0 0 30px rgba(207, 181, 59, 0.5);
                border-color: rgba(207, 181, 59, 0.8);
            }

            .user-badge-glow {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 100%;
                height: 100%;
                background: radial-gradient(circle, rgba(207, 181, 59, 0.3) 0%, transparent 70%);
                border-radius: 20px;
                animation: badgePulse 2s ease-in-out infinite;
                pointer-events: none;
            }

            @keyframes badgePulse {

                0%,
                100% {
                    opacity: 0.5;
                    transform: translate(-50%, -50%) scale(1);
                }

                50% {
                    opacity: 0.8;
                    transform: translate(-50%, -50%) scale(1.05);
                }
            }

            .user-badge-icon {
                font-size: 20px;
                z-index: 1;
                filter: drop-shadow(0 0 8px rgba(207, 181, 59, 0.6));
            }

            .user-badge-info {
                display: flex;
                flex-direction: column;
                gap: 2px;
                z-index: 1;
                overflow: hidden;
                min-width: 0;
            }

            .user-badge-name {
                font-size: 14px;
                font-weight: bold;
                color: var(--accent-gold);
                text-shadow: 0 0 10px rgba(207, 181, 59, 0.5);
                letter-spacing: 0.5px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .user-badge-status {
                font-size: 9px;
                color: var(--accent-cyan);
                text-transform: uppercase;
                letter-spacing: 1px;
                font-weight: 600;
            }

            /* Verified user styling */
            .user-status-badge.verified {
                border-color: var(--accent-gold);
                background: linear-gradient(135deg, rgba(207, 181, 59, 0.25), rgba(138, 43, 226, 0.2));
                box-shadow: 0 0 25px rgba(207, 181, 59, 0.4);
            }

            .user-status-badge.verified .user-badge-glow {
                background: radial-gradient(circle, rgba(207, 181, 59, 0.4) 0%, transparent 70%);
            }

            .user-status-badge.verified .user-badge-status {
                color: #00ff88;
            }

            /* Mobile responsive */
            @media (max-width: 768px) {
                .user-status-badge {
                    padding: 6px 10px;
                    gap: 6px;
                }

                .user-badge-icon {
                    font-size: 16px;
                }

                .user-badge-name {
                    font-size: 12px;
                }

                .user-badge-status {
                    font-size: 8px;
                }
            }

            .settings-button {
                background: var(--card-bg);
                border: none;
                color: var(--text-white);
                font-size: 20px;
                cursor: pointer;
                padding: 10px;
                border-radius: 8px;
                transition: all 0.2s ease;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            }

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

            .settings-menu {
                position: absolute;
                top: 100%;
                right: 0;
                background: var(--card-bg);
                border: none;
                border-radius: 8px;
                min-width: 140px;
                z-index: 1000;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            }

            .menu-item {
                display: block;
                width: 100%;
                padding: 12px 16px;
                background: none;
                border: none;
                color: var(--text-white);
                text-align: left;
                cursor: pointer;
                transition: background-color 0.2s ease;
                border-radius: 0;
            }

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

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

            .menu-item:only-child {
                border-radius: 8px;
            }

            .menu-item:hover {
                background: var(--border-color);
            }

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

            .logo-icon {
                height: 40px;
                max-width: 200px;
                object-fit: contain;
            }

            .logo-text {
                font-size: 20px;
                font-weight: bold;
                letter-spacing: -0.5px;
                /* Subtle animation options - uncomment one to try */

                /* Option 4: Breathing effect */
                animation: breathe 4s ease-in-out infinite;

                /* Option 2: Letter stagger effect - requires JS */
                /* overflow: hidden; */

                /* Option 3: Subtle shimmer */
                /* background: linear-gradient(
                90deg,
                var(--text-primary) 0%,
                var(--accent-gold) 50%,
                var(--text-primary) 100%
            );
            background-size: 200% auto;
            color: transparent;
            background-clip: text;
            -webkit-background-clip: text;
            animation: subtleShimmer 3s ease-in-out infinite; */
            }

            /* Animation keyframes */
            @keyframes fadeInFloat {
                0% {
                    opacity: 0;
                    transform: translateY(20px);
                }

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

            @keyframes gentleFloat {

                0%,
                100% {
                    transform: translateY(0);
                }

                50% {
                    transform: translateY(-3px);
                }
            }

            @keyframes subtleShimmer {
                0% {
                    background-position: -200% 0;
                }

                50% {
                    background-position: 200% 0;
                }

                100% {
                    background-position: -200% 0;
                }
            }

            @keyframes breathe {

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

                25% {
                    transform: translateY(-3px) scale(1.01);
                    opacity: 0.95;
                }

                50% {
                    transform: translateY(-6px) scale(1.03);
                    opacity: 1;
                }

                75% {
                    transform: translateY(-3px) scale(1.01);
                    opacity: 0.95;
                }
            }

            /* More dramatic floating animation for desktop */
            @keyframes breathe-desktop {

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

                50% {
                    transform: translateY(-8px) scale(1.02);
                    opacity: 1;
                }
            }

            /* Respect user motion preferences */
            @media (prefers-reduced-motion: reduce) {
                .logo-text {
                    animation: none !important;
                    opacity: 1 !important;
                    transform: none !important;
                }
            }

            .title-section {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
            }

            .intro-text {
                font-size: 10px;
                color: var(--text-secondary);
                margin: 2px 0 0 0;
                padding: 0;
                line-height: 1.2;
                max-width: 260px;
            }

            /* Desktop Header Layout - Horizontal and Impactful */
            @media (min-width: 1024px) {
                .header-content {
                    max-width: 1400px;
                    padding: 12px 32px 16px 32px;
                    justify-content: flex-start;
                    gap: 24px;
                }

                .title-section {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 12px;
                    flex: 1;
                }

                .settings-container {
                    position: static;
                    align-self: center;
                }

                .logo-text {
                    font-size: 48px;
                    font-weight: 900;
                    letter-spacing: -1px;
                    margin: 0;
                    white-space: nowrap;
                    animation: breathe-desktop 4s ease-in-out infinite;
                }

                .intro-text {
                    font-size: 16px;
                    line-height: 1.4;
                    width: fit-content;
                    max-width: 520px;
                    margin: 0;
                    opacity: 0.9;
                    text-transform: uppercase;
                    text-align: justify;
                    letter-spacing: 0.5px;
                }
            }

            /* Extra large screens - Even bigger impact */
            @media (min-width: 1400px) {
                .logo-text {
                    font-size: 64px;
                    letter-spacing: -2px;
                    animation: breathe-desktop 4s ease-in-out infinite;
                }

                .intro-text {
                    font-size: 18px;
                    width: fit-content;
                    max-width: 680px;
                    text-transform: uppercase;
                    text-align: justify;
                    letter-spacing: 0.5px;
                }

                .title-section {
                    gap: 16px;
                }
            }

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

            .user-stats {
                display: flex;
                align-items: center;
                gap: 12px;
                font-size: 12px;
                color: var(--muted-text);
            }

            .xp-bar {
                display: flex;
                align-items: center;
                gap: 4px;
            }

            .xp-progress {
                width: 40px;
                height: 4px;
                background: var(--border-color);
                border-radius: 2px;
                overflow: hidden;
            }

            .xp-progress-bar {
                height: 100%;
                background: var(--accent-gold);
                transition: width 0.3s ease;
            }

            .achievements-modal {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.8);
                z-index: 2000;
                display: none;
                align-items: center;
                justify-content: center;
                padding: 20px;
            }

            .achievements-modal.show {
                display: flex;
            }

            .achievements-content {
                background: var(--primary-black);
                border: 1px solid var(--border-color);
                border-radius: 12px;
                max-width: 500px;
                width: 100%;
                max-height: 80vh;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

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

            .achievements-header h3 {
                margin: 0;
                color: var(--accent-gold);
            }

            .close-button {
                background: none;
                border: none;
                color: #666666 !important;
                /* Fixed muted color */
                cursor: pointer;
                font-size: 18px;
                padding: 4px;
                transition: color 0.2s ease;
            }

            .close-button:hover {
                color: #CFB53B !important;
                /* Fixed UNAPOLOGETIC.WORLD Gold hover */
            }

            .achievements-body {
                padding: 20px;
                overflow-y: auto;
            }

            .stats-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 12px;
                margin-bottom: 24px;
            }

            .stat-card {
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 12px;
                text-align: center;
            }

            .stat-value {
                font-size: 20px;
                font-weight: bold;
                color: var(--accent-gold);
            }

            .stat-label {
                font-size: 12px;
                color: var(--muted-text);
                margin-top: 4px;
            }

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

            .achievement-card {
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 12px;
                opacity: 0.4;
                transition: all 0.2s ease;
            }

            .achievement-card.unlocked {
                opacity: 1;
                border-color: var(--accent-gold);
                background: linear-gradient(135deg,
                        rgba(207, 181, 59, 0.1),
                        rgba(184, 160, 46, 0.05));
            }

            .achievement-icon {
                font-size: 24px;
                margin-bottom: 8px;
                display: block;
            }

            .achievement-name {
                font-weight: bold;
                color: var(--text-white);
                margin-bottom: 4px;
            }

            .achievement-description {
                font-size: 12px;
                color: var(--muted-text);
                line-height: 1.3;
            }

            .achievement-unlocked-date {
                font-size: 10px;
                color: var(--accent-gold);
                margin-top: 4px;
            }

            /* Sound effects toggle */
            .sound-toggle {
                background: none;
                border: none;
                color: var(--accent-gold);
                cursor: pointer;
                font-size: 16px;
                padding: 4px;
                margin-left: 8px;
                transition: opacity 0.2s ease;
            }

            .sound-toggle:hover {
                opacity: 0.7;
            }

            .sound-toggle.muted {
                color: var(--muted-text);
            }

            /* YouTube Embed Styles */
            .post-embeds {
                margin: 12px 0 8px 0;
            }

            .yt-embed {
                position: relative;
                width: 100%;
                height: 0;
                padding-bottom: 56.25%;
                /* 16:9 aspect ratio */
                margin: 12px 0;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
                background: var(--card-bg);
            }

            .yt-embed iframe {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border: none;
                border-radius: 8px;
            }

            /* Mobile optimization */
            @media (max-width: 768px) {
                .yt-embed {
                    margin: 8px 0;
                    border-radius: 6px;
                }
            }

            /* Post Image Styles */
            .post-image-container {
                margin: 12px 0 8px 0;
                border-radius: 8px;
                overflow: hidden;
                background: var(--card-bg);
                position: relative;
                max-height: 500px;
                /* PREVENT LAYOUT SHIFTS FROM IMAGE LOADING */
                aspect-ratio: 16/9;
                min-height: 250px;
                /* FORCE CONTAINER TO RESPECT POST CARD WIDTH */
                max-width: 100%;
                width: 100%;
                box-sizing: border-box;
            }

            .post-image {
                width: 100%;
                height: 100%;
                display: block;
                border-radius: 8px;
                transition: all 0.3s ease;
                cursor: pointer;
                object-fit: cover;
                /* ENABLE PROPER IMAGE ORIENTATION FROM EXIF */
                image-orientation: from-image;
                -webkit-image-orientation: from-image;
                /* FORCE IMAGE TO STAY WITHIN CONTAINER BOUNDS */
                max-width: 100%;
                max-height: 100%;
                box-sizing: border-box;
            }

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

            /* Image loading state */
            .post-image-loading {
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                background: linear-gradient(90deg,
                        var(--card-bg) 0%,
                        var(--border-color) 50%,
                        var(--card-bg) 100%);
                background-size: 200% 100%;
                animation: shimmer 1.5s infinite;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--muted-text);
                font-size: 14px;
                position: relative;
            }

            .post-image-loading::after {
                content: "Loading image...";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            /* 🚀 GPU-OPTIMIZED: Using transform instead of background-position for better performance */
            @keyframes shimmer {
                0% {
                    transform: translateX(-200%);
                    opacity: 0.3;
                }

                50% {
                    opacity: 0.7;
                }

                100% {
                    transform: translateX(200%);
                    opacity: 0.3;
                }
            }

            /* Image error state */
            .post-image-error {
                width: 100%;
                height: 120px;
                background: var(--card-bg);
                border: 2px dashed var(--border-color);
                border-radius: 8px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                color: var(--muted-text);
                font-size: 14px;
                text-align: center;
                padding: 20px;
            }

            .post-image-error-icon {
                font-size: 24px;
                margin-bottom: 8px;
                opacity: 0.5;
            }

            /* Handle Claim Modal - UNAPOLOGETIC.WORLD Brand Colors (Fixed) */
            .handle-claim-container {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.8);
                z-index: 2500;
                display: none;
                align-items: center;
                justify-content: center;
                padding: 20px;
                backdrop-filter: blur(5px);
            }

            .handle-claim-container.show {
                display: flex;
            }

            .handle-claim-content {
                background: #000000 !important;
                border: 1px solid #CFB53B !important;
                border-radius: 12px;
                max-width: 500px;
                width: 100%;
                max-height: 80vh;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                box-shadow: 0 8px 32px rgba(207, 181, 59, 0.3);
                position: relative;
                z-index: 10000;
                backdrop-filter: none;
            }

            .handle-claim-header {
                padding: 24px 24px 16px 24px;
                border-bottom: 1px solid #CFB53B !important;
                /* Fixed Gold border */
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .handle-claim-header h3 {
                margin: 0;
                color: #CFB53B !important;
                /* Fixed UNAPOLOGETIC.WORLD Gold */
                font-size: 20px;
                font-weight: 600;
            }

            .handle-claim-body {
                padding: 24px;
                overflow-y: auto;
            }

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

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

            .form-label {
                color: #FFFFFF !important;
                /* Fixed UNAPOLOGETIC.WORLD White */
                font-size: 14px;
                font-weight: 500;
            }

            .form-input {
                background: #111111 !important;
                /* Fixed dark background */
                border: 1px solid #333333 !important;
                /* Fixed border */
                border-radius: 8px;
                padding: 12px 16px;
                color: #FFFFFF !important;
                /* Fixed UNAPOLOGETIC.WORLD White text */
                font-size: 14px;
                transition: all 0.2s ease;
            }

            .form-input:focus {
                outline: none;
                border-color: #CFB53B !important;
                /* Fixed UNAPOLOGETIC.WORLD Gold focus */
                box-shadow: 0 0 0 2px rgba(207, 181, 59, 0.2);
            }

            .form-input::placeholder {
                color: #666666 !important;
                /* Fixed muted color */
            }

            .availability-status {
                font-size: 13px;
                margin-top: 4px;
                min-height: 16px;
                display: flex;
                align-items: center;
                gap: 4px;
                position: relative;
                z-index: 9999;
                padding: 6px 10px;
                border-radius: 6px;
                font-weight: 600;
                backdrop-filter: none;
            }

            .availability-status.checking {
                color: #ffa500 !important;
                background: rgba(255, 165, 0, 0.15);
            }

            .availability-status.available {
                color: #00ff7f !important;
                background: rgba(0, 255, 127, 0.15);
                text-shadow: 0 0 8px rgba(0, 255, 127, 0.5);
            }

            .availability-status.taken {
                color: #ff4444 !important;
                background: rgba(255, 68, 68, 0.2);
                text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
            }

            .availability-status.error {
                color: #ff4444 !important;
                background: rgba(255, 68, 68, 0.2);
                text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
            }

            .claim-handle-btn {
                background: #CFB53B !important;
                /* Fixed UNAPOLOGETIC.WORLD Gold */
                color: #000000 !important;
                /* Fixed UNAPOLOGETIC.WORLD Black text */
                border: none;
                border-radius: 8px;
                padding: 12px 24px;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                min-height: 44px;
            }

            .claim-handle-btn:hover:not(:disabled) {
                background: #e6c547 !important;
                /* Fixed lighter gold hover */
                transform: translateY(-1px);
            }

            .claim-handle-btn:disabled {
                background: #666666 !important;
                /* Fixed disabled color */
                cursor: not-allowed;
                transform: none;
            }

            .loading-spinner {
                width: 16px;
                height: 16px;
                border: 2px solid var(--primary-black);
                border-top: 2px solid transparent;
                border-radius: 50%;
                animation: spin 1s linear infinite;
            }

            @keyframes spin {
                0% {
                    transform: rotate(0deg);
                }

                100% {
                    transform: rotate(360deg);
                }
            }

            .form-error {
                color: #ff4444 !important;
                font-size: 13px;
                margin-top: 4px;
                display: none;
                position: relative;
                z-index: 9999;
                padding: 6px 10px;
                border-radius: 6px;
                font-weight: 600;
                background: rgba(255, 68, 68, 0.2);
                text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
                backdrop-filter: none;
            }

            .form-error.show {
                display: block;
            }

            /* Screen reader only text */
            .sr-only {
                position: absolute;
                width: 1px;
                height: 1px;
                padding: 0;
                margin: -1px;
                overflow: hidden;
                clip: rect(0, 0, 0, 0);
                white-space: nowrap;
                border: 0;
            }

            /* Mobile optimization for handle claim modal */
            @media (max-width: 768px) {
                .handle-claim-content {
                    max-width: 95vw;
                    margin: 0 10px;
                }

                .handle-claim-header {
                    padding: 20px 20px 16px 20px;
                }

                .handle-claim-body {
                    padding: 20px;
                }

                .handle-claim-header h3 {
                    font-size: 18px;
                }
            }

            /* Image modal/lightbox for enlarged view */
            .image-modal {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.9);
                z-index: 3000;
                display: none;
                align-items: center;
                justify-content: center;
                padding: 20px;
                backdrop-filter: blur(5px);
            }

            .image-modal.show {
                display: flex;
            }

            .image-modal-content {
                max-width: 90vw;
                max-height: 90vh;
                border-radius: 8px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
                position: relative;
            }

            .image-modal-img {
                max-width: 90vw;
                max-height: 90vh;
                width: auto;
                height: auto;
                border-radius: 8px;
                display: block;
                object-fit: contain;
            }

            .image-modal-close {
                position: absolute;
                top: -10px;
                right: -10px;
                background: var(--accent-gold);
                color: var(--primary-black);
                border: none;
                border-radius: 50%;
                width: 30px;
                height: 30px;
                cursor: pointer;
                font-size: 16px;
                font-weight: bold;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
                transition: all 0.2s ease;
            }

            .image-modal-close:hover {
                transform: scale(1.1);
                background: var(--text-white);
            }

            /* Mobile optimization for images */
            @media (max-width: 768px) {
                .post-image-container {
                    margin: 8px 0;
                    border-radius: 6px;
                    max-height: 400px;
                }

                .post-image {
                    border-radius: 6px;
                    max-height: 400px;
                }

                .post-image:hover {
                    transform: none;
                    filter: none;
                }

                .image-modal-content {
                    max-width: 95vw;
                    max-height: 85vh;
                }

                .image-modal-close {
                    top: -15px;
                    right: -15px;
                    width: 35px;
                    height: 35px;
                    font-size: 18px;
                }
            }

            .live-indicator {
                display: flex;
                align-items: center;
                gap: 4px;
                color: var(--muted-text);
                font-size: 14px;
            }

            .live-dot {
                width: 8px;
                height: 8px;
                background: var(--accent-gold);
                border-radius: 50%;
                animation: pulse 2s infinite;
            }

            @keyframes pulse {

                0%,
                100% {
                    opacity: 1;
                }

                50% {
                    opacity: 0.5;
                }
            }

            .user-avatar {
                width: 32px;
                height: 32px;
                background: var(--card-bg);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--accent-gold);
                font-weight: 600;
                font-size: 14px;
            }

            /* Main Content */
            .main {
                flex: 1;
                overflow-y: visible;
                overflow-x: hidden;
                max-width: 768px;
                margin: 0 auto;
                padding: 16px 16px 180px 16px;
                width: 100%;
                position: relative;
            }

            .content-wrapper {
                flex: 1;
                display: flex;
                flex-direction: column;
            }

            /* Post Cards */
            .post-card {
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 12px;
                padding: 10px 12px;
                /* Instagram-style compact padding */
                margin: 8px 0;
                /* much tighter spacing between posts */
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            }

            /* Alternating post backgrounds for visual separation */
            .post-card:nth-child(even) {
                background: var(--card-bg);
                border: none;
            }

            .post-card:nth-child(odd) {
                border: none;
            }

            /* Dark theme alternating colors */
            [data-theme="dark"] .post-card:nth-child(even),
            [data-theme="weird"] .post-card:nth-child(even) {
                background: #1a1a1a;
                /* slightly lighter than default card-bg */
            }

            [data-theme="dark"] .post-card:nth-child(odd),
            [data-theme="weird"] .post-card:nth-child(odd) {
                background: var(--card-bg);
                /* default darker shade */
            }

            /* Light theme alternating colors */
            [data-theme="light"] .post-card:nth-child(even) {
                background: #ffffff;
                /* white background */
            }

            [data-theme="light"] .post-card:nth-child(odd) {
                background: var(--card-bg);
                /* light gray background */
            }

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

            .post-avatar {
                width: 28px;
                height: 28px;
                background: var(--card-bg);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--accent-gold);
                font-size: 12px;
                font-weight: 600;
                flex-shrink: 0;
            }

            .post-meta {
                flex: 1;
                min-width: 0;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .post-author {
                font-weight: 600;
                font-size: 15px;
                line-height: 1.2;
                color: #006A73;
                display: flex;
                align-items: center;
                gap: 4px;
            }

            .verified-badge {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-left: 4px;
                transition: all 0.2s ease;
            }

            .verified-badge:hover {
                transform: scale(1.1);
            }

            .verified-badge svg {
                filter: drop-shadow(0 1px 2px rgba(29, 161, 242, 0.3));
                transition: filter 0.2s ease;
            }

            .verified-badge:hover svg {
                filter: drop-shadow(0 2px 4px rgba(207, 181, 59, 0.5)) hue-rotate(20deg);
            }

            /* 📌 ADMIN FUNCTIONALITY: Pinned post and admin control styling */
            .pinned-badge {
                display: inline-flex;
                align-items: center;
                gap: 3px;
                margin-left: 8px;
                padding: 2px 6px;
                background: linear-gradient(135deg, var(--accent-gold), #ff6b35);
                color: #000;
                border-radius: 12px;
                font-size: 10px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                animation: subtle-glow 2s ease-in-out infinite alternate;
                box-shadow: 0 2px 4px rgba(207, 181, 59, 0.3);
            }

            .pinned-badge svg {
                width: 10px;
                height: 10px;
                fill: #000;
            }

            /* 🛡️ ADMIN BADGE: Premium gold-themed admin indicator */
            .admin-badge {
                display: inline-flex;
                align-items: center;
                gap: 3px;
                margin-left: 6px;
                padding: 3px 8px;
                background: linear-gradient(135deg, #cfb53b, #ffd700);
                color: #000;
                border-radius: 10px;
                font-size: 9px;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                box-shadow:
                    0 0 10px rgba(207, 181, 59, 0.5),
                    0 2px 4px rgba(0, 0, 0, 0.3),
                    inset 0 1px 1px rgba(255, 255, 255, 0.3);
                animation: adminGlow 3s ease-in-out infinite alternate;
                position: relative;
            }

            .admin-badge::before {
                content: '';
                position: absolute;
                top: -2px;
                left: -2px;
                right: -2px;
                bottom: -2px;
                background: linear-gradient(135deg, #cfb53b, #ffd700);
                border-radius: 12px;
                opacity: 0;
                z-index: -1;
                animation: adminPulse 3s ease-in-out infinite;
            }

            @keyframes adminGlow {

                0%,
                100% {
                    box-shadow:
                        0 0 10px rgba(207, 181, 59, 0.5),
                        0 2px 4px rgba(0, 0, 0, 0.3),
                        inset 0 1px 1px rgba(255, 255, 255, 0.3);
                }

                50% {
                    box-shadow:
                        0 0 20px rgba(207, 181, 59, 0.8),
                        0 0 30px rgba(255, 215, 0, 0.4),
                        0 2px 4px rgba(0, 0, 0, 0.3),
                        inset 0 1px 1px rgba(255, 255, 255, 0.5);
                }
            }

            @keyframes adminPulse {

                0%,
                100% {
                    opacity: 0;
                }

                50% {
                    opacity: 0.3;
                }
            }

            .admin-badge svg {
                width: 11px;
                height: 11px;
                fill: #000;
                filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
            }

            .admin-badge:hover {
                transform: scale(1.05);
                box-shadow:
                    0 0 20px rgba(207, 181, 59, 0.8),
                    0 0 30px rgba(255, 215, 0, 0.6),
                    0 4px 8px rgba(0, 0, 0, 0.4),
                    inset 0 1px 2px rgba(255, 255, 255, 0.5);
            }

            .pinned-post {
                border: 2px solid transparent;
                background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                    linear-gradient(135deg, var(--accent-gold), #ff6b35) border-box;
                border-radius: 12px;
                position: relative;
            }

            .pinned-post::before {
                content: '';
                position: absolute;
                top: -2px;
                left: -2px;
                right: -2px;
                bottom: -2px;
                background: linear-gradient(135deg, var(--accent-gold), #ff6b35);
                border-radius: 12px;
                z-index: -1;
                opacity: 0.1;
                animation: pin-pulse 3s ease-in-out infinite;
            }

            .edited-indicator {
                color: var(--muted-text);
                font-size: 12px;
                font-style: italic;
                opacity: 0.7;
                margin-left: 4px;
            }

            .pin-btn {
                background: linear-gradient(135deg, #4a5568, #2d3748) !important;
                color: var(--accent-gold) !important;
                border: 1px solid rgba(207, 181, 59, 0.3) !important;
                transition: all 0.3s ease !important;
            }

            .edit-btn {
                background: none !important;
                border: none !important;
                color: var(--muted-text) !important;
                transition: all 0.2s ease !important;
                padding: 4px !important;
                font-size: 16px !important;
            }

            .pin-btn:hover {
                background: linear-gradient(135deg, var(--accent-gold), #ff6b35) !important;
                color: #000 !important;
                transform: translateY(-2px) scale(1.05) !important;
                box-shadow: 0 4px 8px rgba(207, 181, 59, 0.4) !important;
            }

            .edit-btn:hover {
                color: var(--accent-gold) !important;
                transform: scale(1.2) !important;
            }

            .pin-btn[data-action="unpin"] {
                background: linear-gradient(135deg, var(--accent-gold), #ff6b35) !important;
                color: #000 !important;
            }

            .pin-btn[data-action="unpin"]:hover {
                background: linear-gradient(135deg, #4a5568, #2d3748) !important;
                color: var(--accent-gold) !important;
            }

            /* Star subscription button */
            .star-btn {
                background: transparent !important;
                color: rgba(207, 181, 59, 0.3) !important;
                border: none !important;
                transition: all 0.3s ease !important;
                font-size: 18px !important;
                -webkit-text-stroke: 1px rgba(207, 181, 59, 0.5);
            }

            .star-btn:hover {
                background: transparent !important;
                transform: translateY(-2px) scale(1.1) !important;
                color: rgba(207, 181, 59, 0.6) !important;
            }

            .star-btn.subscribed {
                color: var(--accent-gold) !important;
                background: transparent !important;
                border: none !important;
                -webkit-text-stroke: 0px;
            }

            .star-btn.subscribed:hover {
                background: transparent !important;
                filter: drop-shadow(0 2px 8px rgba(207, 181, 59, 0.5)) !important;
            }

            @keyframes pin-pulse {

                0%,
                100% {
                    opacity: 0.1;
                }

                50% {
                    opacity: 0.2;
                }
            }

            @keyframes subtle-glow {
                0% {
                    box-shadow: 0 2px 4px rgba(207, 181, 59, 0.3);
                }

                100% {
                    box-shadow: 0 2px 8px rgba(207, 181, 59, 0.5), 0 0 12px rgba(255, 107, 53, 0.3);
                }
            }

            /* ✏️ EDIT MODAL STYLING */
            .edit-modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(10px);
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 10000;
                animation: fadeIn 0.3s ease;
            }

            .edit-modal {
                background: var(--card-bg);
                border: 2px solid var(--accent-gold);
                border-radius: 16px;
                width: 90%;
                max-width: 600px;
                max-height: 80vh;
                overflow: hidden;
                animation: slideUp 0.3s ease;
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(207, 181, 59, 0.3);
            }

            .edit-modal-header {
                background: linear-gradient(135deg, var(--accent-gold), #ff6b35);
                color: #000;
                padding: 16px 20px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid rgba(207, 181, 59, 0.3);
            }

            .edit-modal-header h3 {
                margin: 0;
                font-size: 18px;
                font-weight: 700;
            }

            .close-edit-modal {
                background: none;
                border: none;
                font-size: 24px;
                color: #000;
                cursor: pointer;
                padding: 0;
                width: 30px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                transition: all 0.2s ease;
            }

            .close-edit-modal:hover {
                background: rgba(0, 0, 0, 0.1);
                transform: scale(1.1);
            }

            .edit-modal-body {
                padding: 20px;
                max-height: 60vh;
                overflow-y: auto;
            }

            .edit-form-group {
                margin-bottom: 20px;
            }

            .edit-form-group label {
                display: block;
                margin-bottom: 8px;
                color: var(--text-primary);
                font-weight: 600;
                font-size: 14px;
            }

            .edit-form-group input,
            .edit-form-group textarea {
                width: 100%;
                padding: 12px;
                border: 2px solid rgba(207, 181, 59, 0.3);
                border-radius: 8px;
                background: var(--input-bg, rgba(255, 255, 255, 0.05));
                color: var(--text-primary);
                font-family: inherit;
                font-size: 14px;
                transition: all 0.3s ease;
                resize: vertical;
            }

            .edit-form-group textarea {
                min-height: 120px;
                line-height: 1.5;
            }

            .edit-form-group input:focus,
            .edit-form-group textarea:focus {
                outline: none;
                border-color: var(--accent-gold);
                box-shadow: 0 0 0 3px rgba(207, 181, 59, 0.1);
                transform: translateY(-1px);
            }

            .edit-modal-footer {
                padding: 16px 20px;
                border-top: 1px solid rgba(207, 181, 59, 0.2);
                display: flex;
                gap: 12px;
                justify-content: flex-end;
                background: rgba(0, 0, 0, 0.2);
            }

            .cancel-edit-btn,
            .save-edit-btn {
                padding: 10px 20px;
                border: none;
                border-radius: 8px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                font-family: inherit;
            }

            .cancel-edit-btn {
                background: rgba(136, 136, 136, 0.2);
                color: var(--text-primary);
                border: 1px solid rgba(136, 136, 136, 0.5);
            }

            .cancel-edit-btn:hover {
                background: rgba(136, 136, 136, 0.3);
                transform: translateY(-1px);
            }

            .save-edit-btn {
                background: linear-gradient(135deg, var(--accent-gold), #ff6b35);
                color: #000;
                border: 1px solid transparent;
            }

            .save-edit-btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(207, 181, 59, 0.4);
            }

            @keyframes fadeIn {
                from {
                    opacity: 0;
                }

                to {
                    opacity: 1;
                }
            }

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

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

            .post-time {
                color: var(--muted-text);
                font-size: 12px;
                opacity: 0.85;
                flex-shrink: 0;
            }

            .post-text {
                color: #111111;
                font-size: 14px;
                line-height: 1.25;
                margin: 4px 0 6px;
                word-wrap: break-word;
                white-space: pre-wrap;
            }

            /* @Mention styling - UNAPOLOGETIC gold with glow effect */
            .mention {
                color: var(--accent-gold);
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                padding: 2px 4px;
                border-radius: 4px;
                background: linear-gradient(135deg, rgba(207, 181, 59, 0.1), rgba(139, 71, 137, 0.1));
                position: relative;
            }

            .mention:hover {
                color: #ffd700;
                background: linear-gradient(135deg, rgba(207, 181, 59, 0.2), rgba(139, 71, 137, 0.2));
                transform: translateY(-1px);
                text-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
            }

            .mention::before {
                content: '';
                position: absolute;
                top: -2px;
                left: -2px;
                right: -2px;
                bottom: -2px;
                background: linear-gradient(135deg, var(--accent-gold), #8B4789);
                border-radius: 4px;
                opacity: 0;
                z-index: -1;
                transition: opacity 0.3s ease;
            }

            .mention:hover::before {
                opacity: 0.3;
            }

            /* URL link styling */
            .post-link {
                color: #4A9EFF;
                text-decoration: underline;
                transition: all 0.2s ease;
                word-break: break-all;
            }

            .post-link:hover {
                color: #6BB6FF;
                text-decoration: none;
            }

            /* @Mention Autocomplete Dropdown */
            .mention-autocomplete {
                position: fixed;
                z-index: 10000;
                background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
                border: 2px solid var(--accent-gold);
                border-radius: 12px;
                padding: 8px 0;
                box-shadow: 0 8px 32px rgba(207, 181, 59, 0.3),
                    0 0 20px rgba(207, 181, 59, 0.2);
                backdrop-filter: blur(10px);
                max-height: 250px;
                overflow-y: auto;
                animation: dropdownSlideIn 0.2s ease;
            }

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

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

            .mention-item {
                padding: 10px 16px;
                cursor: pointer;
                color: var(--text-white);
                font-size: 14px;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                gap: 4px;
            }

            .mention-item:hover,
            .mention-item.selected {
                background: linear-gradient(135deg, rgba(207, 181, 59, 0.2), rgba(139, 71, 137, 0.2));
                color: var(--accent-gold);
            }

            .mention-item.selected {
                border-left: 3px solid var(--accent-gold);
                padding-left: 13px;
            }

            .mention-at {
                color: var(--accent-gold);
                font-weight: 700;
            }

            .mention-autocomplete::-webkit-scrollbar {
                width: 8px;
            }

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

            .mention-autocomplete::-webkit-scrollbar-thumb {
                background: linear-gradient(135deg, var(--accent-gold), #8B4789);
                border-radius: 4px;
            }

            .mention-autocomplete::-webkit-scrollbar-thumb:hover {
                background: linear-gradient(135deg, #ffd700, #9B47A9);
            }

            /* Post title styling */
            .post-title {
                color: var(--gold);
                font-size: 16px;
                font-weight: 600;
                margin: 8px 0 4px;
                word-wrap: break-word;
                line-height: 1.3;
            }

            /* Truncated state for long posts */
            .post-text.truncated {
                max-height: calc(1.35em * 4);
                overflow: hidden;
                position: relative;
            }

            /* Expanded state shows full text */
            .post-text.expanded {
                max-height: none;
                overflow: visible;
            }

            /* Show more/less button styles */
            .show-more-btn {
                background: none;
                border: none;
                color: #ff1493;
                cursor: pointer;
                font-size: 12px;
                font-weight: 600;
                padding: 4px 0;
                margin-top: 4px;
                text-decoration: none;
                transition: opacity 0.2s ease;
            }

            .show-more-btn:hover {
                opacity: 0.8;
            }

            /* Fade effect for truncated text */
            .post-text.truncated::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 1.35em;
                background: linear-gradient(transparent, var(--card-bg));
                pointer-events: none;
            }

            /* Remove fade effect for odd/even post cards in different themes */
            [data-theme="dark"] .post-card:nth-child(even) .post-text.truncated::after,
            [data-theme="weird"] .post-card:nth-child(even) .post-text.truncated::after {
                background: linear-gradient(transparent, #1a1a1a);
            }

            [data-theme="light"] .post-card:nth-child(even) .post-text.truncated::after {
                background: linear-gradient(transparent, #ffffff);
            }

            .post-actions {
                display: flex;
                align-items: center;
                gap: 4px;
                padding-top: 6px;
                flex-wrap: wrap;
            }

            .action-btn {
                display: flex;
                align-items: center;
                gap: 4px;
                background: none;
                border: none;
                color: var(--muted-text);
                font-size: 14px;
                cursor: pointer;
                transition: all 0.2s ease;
                padding: 4px;
            }

            .action-btn:hover {
                color: var(--accent-gold);
                transform: scale(1.05);
            }

            .action-btn:focus,
            .action-btn:active {
                outline: none;
                background: none !important;
                color: inherit !important;
                box-shadow: none !important;
                -webkit-tap-highlight-color: transparent;
            }

            .post-actions .comment-btn {
                background: none !important;
                color: inherit !important;
                white-space: nowrap !important;
            }

            .post-actions .comment-btn span {
                white-space: nowrap !important;
            }

            /* Reaction buttons container */
            .reaction-buttons {
                display: flex;
                gap: 1px;
                align-items: center;
            }

            /* Individual reaction buttons */
            .reaction {
                background: transparent;
                border: none;
                font-size: 18px;
                padding: 5px 6px;
                cursor: pointer;
                border-radius: 8px;
                transition: all 0.3s ease;
                opacity: 0.6;
                transform: scale(1);
                filter: grayscale(0.5);
                white-space: nowrap;
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }

            .reaction:hover {
                opacity: 1;
                transform: scale(1.2);
                filter: grayscale(0);
                box-shadow: 0 0 15px currentColor;
            }

            /* Active state for reactions */
            .reaction.active {
                opacity: 1;
                transform: scale(1.1);
                filter: grayscale(0);
                background: rgba(207, 181, 59, 0.1);
                box-shadow: 0 0 20px var(--accent-gold);
            }

            /* Simple hover colors for like/dislike */
            .reaction[data-action="like"]:hover {
                box-shadow: 0 0 15px #4CAF50;
            }

            .reaction[data-action="dislike"]:hover {
                box-shadow: 0 0 15px #ff6b6b;
            }

            .delete-btn {
                color: var(--muted-text);
            }

            .delete-btn:hover {
                color: #ff6b6b;
                transform: scale(1.05);
            }

            .action-btn:disabled {
                opacity: 0.5;
                cursor: not-allowed;
                transform: none !important;
            }

            /* Notifications Modal Styles */
            .notification-settings {
                background: #111;
                padding: 20px;
                border-radius: 8px;
                margin-bottom: 20px;
            }

            .setting-row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 20px;
            }

            .toggle-switch {
                position: relative;
                display: inline-block;
                width: 60px;
                height: 34px;
                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-color: #333;
                transition: .4s;
                border-radius: 34px;
            }

            .toggle-slider:before {
                position: absolute;
                content: "";
                height: 26px;
                width: 26px;
                left: 4px;
                bottom: 4px;
                background-color: white;
                transition: .4s;
                border-radius: 50%;
            }

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

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

            .subscribed-posts-list {
                max-height: 400px;
                overflow-y: auto;
                background: #0a0a0a;
                border-radius: 8px;
                padding: 15px;
            }

            .subscribed-post-item {
                background: #111;
                padding: 15px;
                border-radius: 8px;
                margin-bottom: 10px;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 15px;
            }

            .subscribed-post-info {
                flex: 1;
            }

            .subscribed-post-info strong {
                color: #cfb53b;
                display: block;
                margin-bottom: 5px;
            }

            .subscribed-post-info p {
                color: #ccc;
                font-size: 14px;
                line-height: 1.4;
            }

            .unsubscribe-btn {
                background: #333;
                color: white;
                border: none;
                padding: 8px 16px;
                border-radius: 4px;
                cursor: pointer;
                white-space: nowrap;
                font-size: 14px;
            }

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

            /* Post Composer */
            .composer {
                z-index: 30;
                padding: 8px;
                padding-bottom: max(8px, env(safe-area-inset-bottom));
                background: transparent;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                overflow-x: hidden;
                overflow-y: visible;
                transform: translateY(100%);
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                pointer-events: none;
                box-sizing: border-box;
                width: 100%;
                touch-action: none;
                -webkit-overflow-scrolling: auto;
                user-select: none;
                -webkit-user-select: none;
                -webkit-user-drag: none;
            }

            .composer.active {
                transform: translateY(0);
                pointer-events: auto;
                touch-action: manipulation;
                user-select: none;
                -webkit-user-select: none;
                -webkit-user-drag: none;
            }

            .composer::before {
                content: "";
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                width: var(--post-width, calc(100% - 32px));
                max-width: none;
                height: 4px;
                background: linear-gradient(90deg,
                        transparent 0%,
                        #ffd700 15%,
                        #9370db 35%,
                        #00ffff 50%,
                        #9370db 65%,
                        #ffd700 85%,
                        transparent 100%);
                border-radius: 3px;
                box-shadow:
                    0 0 10px rgba(255, 215, 0, 0.6),
                    0 0 20px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(0, 255, 255, 0.3);
                animation: neonPulse 2.5s ease-in-out infinite;
            }

            .composer-card {
                max-width: 768px;
                margin: 0 auto;
                background: var(--card-bg) !important;
                border-radius: 20px !important;
                padding: 10px;
                position: relative;
                transition: all 0.3s ease;
                z-index: 10;
                overflow-x: hidden;
                overflow-y: visible;
                box-sizing: border-box;
                width: 100%;
                touch-action: manipulation;
                -webkit-overflow-scrolling: auto;
                user-select: none;
                -webkit-user-select: none;
                -webkit-user-drag: none;

                /* Futuristic glowing border matching divider thickness exactly */
                border: 1px solid rgba(207, 181, 59, 0.2);
                box-shadow:
                    0 -4px 16px rgba(0, 0, 0, 0.2),
                    0 0 10px rgba(255, 215, 0, 0.6),
                    0 0 20px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(0, 255, 255, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);

                /* Subtle floating animation */
                animation: composerFloat 4s ease-in-out infinite;
            }

            @keyframes composerFloat {

                0%,
                100% {
                    transform: translateY(0px);
                    box-shadow:
                        0 -4px 16px rgba(0, 0, 0, 0.2),
                        0 0 10px rgba(255, 215, 0, 0.6),
                        0 0 20px rgba(147, 112, 219, 0.4),
                        0 0 30px rgba(0, 255, 255, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
                }

                50% {
                    transform: translateY(-2px);
                    box-shadow:
                        0 -6px 20px rgba(0, 0, 0, 0.25),
                        0 0 12px rgba(255, 215, 0, 0.7),
                        0 0 24px rgba(147, 112, 219, 0.5),
                        0 0 36px rgba(0, 255, 255, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.15);
                }
            }

            /* Enhanced hover effect */
            .composer-card:hover {
                transform: translateY(-3px);
                box-shadow:
                    0 -8px 24px rgba(0, 0, 0, 0.3),
                    0 0 15px rgba(255, 215, 0, 0.8),
                    0 0 30px rgba(147, 112, 219, 0.6),
                    0 0 45px rgba(0, 255, 255, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
                animation-play-state: paused;
            }

            /* Dark theme composer styling */
            [data-theme="dark"] .composer-card,
            [data-theme="weird"] .composer-card {
                background: linear-gradient(145deg, #1a1a1a, #111111) !important;
                border-radius: 20px !important;
                box-shadow:
                    0 -4px 16px rgba(0, 0, 0, 0.4),
                    0 0 10px rgba(255, 215, 0, 0.6),
                    0 0 20px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(0, 255, 255, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
            }

            [data-theme="dark"] .composer-card:hover,
            [data-theme="weird"] .composer-card:hover {
                box-shadow:
                    0 -8px 24px rgba(0, 0, 0, 0.5),
                    0 0 15px rgba(255, 215, 0, 0.8),
                    0 0 30px rgba(147, 112, 219, 0.6),
                    0 0 45px rgba(0, 255, 255, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }

            /* Light theme composer styling */
            [data-theme="light"] .composer-card {
                background: #ffffff !important;
                border-radius: 20px !important;
                box-shadow:
                    0 -4px 16px rgba(0, 0, 0, 0.1),
                    0 0 10px rgba(255, 215, 0, 0.5),
                    0 0 20px rgba(147, 112, 219, 0.3),
                    0 0 30px rgba(0, 255, 255, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
            }

            /* Composer Actions - Horizontal Button Layout */
            .composer-actions {
                display: flex;
                gap: 10px;
                align-items: center;
                flex-wrap: wrap;
                width: 100%;
                box-sizing: border-box;
                max-width: 100%;
            }

            [data-theme="light"] .composer-card:hover {
                box-shadow:
                    0 -8px 24px rgba(0, 0, 0, 0.15),
                    0 0 15px rgba(255, 215, 0, 0.7),
                    0 0 30px rgba(147, 112, 219, 0.5),
                    0 0 45px rgba(0, 255, 255, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9);
            }

            .composer-form {
                display: block;
                width: 100%;
                box-sizing: border-box;
                max-width: 100%;
            }

            .composer-avatar {
                width: 32px;
                height: 32px;
                background: var(--card-bg);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--accent-gold);
                font-weight: 600;
                font-size: 14px;
                flex-shrink: 0;
            }

            /* FORCE SPACE OPTIMIZATION - MAXIMUM SPECIFICITY */
            body .composer .composer-scrollable-container {
                max-height: 20vh !important;
                overflow-y: auto !important;
                display: flex;
                flex-direction: column;
                transition: max-height 0.3s ease;
            }

            .composer-scrollable-container {
                max-height: 20vh !important;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                transition: max-height 0.3s ease;
            }

            /* Expanded state for mobile when poll options are shown */
            body .composer.poll-expanded .composer-scrollable-container {
                max-height: 70vh !important;
            }

            .composer.poll-expanded .composer-scrollable-container {
                max-height: 70vh !important;
            }

            /* FORCE DESKTOP SPACE OPTIMIZATION */
            @media (min-width: 768px) {
                body .composer .composer-scrollable-container {
                    max-height: 30vh !important;
                    transition: max-height 0.3s ease;
                }

                .composer-scrollable-container {
                    max-height: 30vh !important;
                    transition: max-height 0.3s ease;
                }

                /* Expanded state when poll options are shown */
                body .composer.poll-expanded .composer-scrollable-container {
                    max-height: 90vh !important;
                }

                .composer.poll-expanded .composer-scrollable-container {
                    max-height: 90vh !important;
                }
            }

            .composer-input-area {
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 6px;
                flex: 1;
                box-sizing: border-box;
                max-width: 100%;
            }

            .composer-textarea {
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 12px;
                padding: 6px;
                color: var(--text-white);
                font-family: inherit;
                font-size: 16px;
                resize: none;
                outline: none;
                transition: all 0.3s ease;
                min-height: 40px;
                position: relative;
                width: 95%;
                box-sizing: border-box;
                max-width: 95%;
                touch-action: manipulation;
                overscroll-behavior: contain;
                user-select: text;
                -webkit-user-select: text;
                -webkit-user-drag: none;

                /* Subtle inner glow */
                box-shadow:
                    inset 0 1px 3px rgba(0, 0, 0, 0.1),
                    0 0 0 1px rgba(207, 181, 59, 0.1);
            }

            /* Dark theme textarea styling */
            [data-theme="dark"] .composer-textarea,
            [data-theme="weird"] .composer-textarea {
                background: #1a1a1a;
                border: 1px solid #333333;
                box-shadow:
                    inset 0 1px 3px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(207, 181, 59, 0.1);
            }

            [data-theme="dark"] .composer-textarea:focus,
            [data-theme="weird"] .composer-textarea:focus {
                box-shadow:
                    inset 0 1px 3px rgba(0, 0, 0, 0.3),
                    0 0 0 2px rgba(207, 181, 59, 0.3),
                    0 0 15px rgba(207, 181, 59, 0.2),
                    0 0 25px rgba(0, 255, 255, 0.1);
            }

            /* Light theme textarea styling */
            [data-theme="light"] .composer-textarea {
                background: #ffffff;
                border: 1px solid #e0e0e0;
                color: #000000 !important;
                box-shadow:
                    inset 0 1px 3px rgba(0, 0, 0, 0.05),
                    0 0 0 1px rgba(207, 181, 59, 0.15);
            }

            [data-theme="light"] .composer-textarea:focus {
                box-shadow:
                    inset 0 1px 3px rgba(0, 0, 0, 0.05),
                    0 0 0 2px rgba(207, 181, 59, 0.4),
                    0 0 15px rgba(207, 181, 59, 0.25),
                    0 0 25px rgba(0, 255, 255, 0.15);
            }

            /* Light theme comment input styling */
            [data-theme="light"] .comment-input {
                background: #ffffff !important;
                border: 1px solid #e0e0e0 !important;
                color: #000000 !important;
            }

            [data-theme="light"] .comment-input:focus {
                border: 1px solid var(--accent-gold) !important;
                box-shadow: 0 0 0 2px rgba(207, 181, 59, 0.2) !important;
            }

            .composer-textarea:focus {
                border-color: var(--accent-gold);
                transform: scale(1.01);
                box-shadow:
                    inset 0 1px 3px rgba(0, 0, 0, 0.1),
                    0 0 0 2px rgba(207, 181, 59, 0.3),
                    0 0 15px rgba(207, 181, 59, 0.2),
                    0 0 25px rgba(0, 255, 255, 0.1);
            }

            /* Better mobile keyboard handling */
            .composer-textarea:focus,
            .comment-input:focus {
                /* Prevent zoom on iOS */
                font-size: 16px;
                /* Scroll to keep the bottom content visible when keyboard appears */
                scroll-margin-bottom: 50px;
            }

            /* Prevent zoom on all inputs for mobile */
            input,
            textarea,
            select {
                font-size: 16px;
            }

            /* Smooth transitions */
            .content-wrapper {
                transition: all 0.3s ease;
            }

            /* Ensure content stays visible above composer when typing */
            @media screen and (max-height: 600px) {
                .main {
                    padding-bottom: 0;
                }
            }

            /* Additional mobile zoom prevention */
            @media screen and (max-width: 768px) {

                input,
                textarea,
                select {
                    font-size: 16px !important;
                    transform-origin: left top;
                }
            }

            .composer-textarea::placeholder {
                color: var(--muted-text);
            }

            /* Title Input Styles */
            .title-toggle-container {
                margin-bottom: 6px;
                opacity: 0;
                height: 0;
                overflow: hidden;
                transition: all 0.3s ease;
            }

            .title-toggle-container.visible {
                opacity: 1;
                height: auto;
                overflow: visible;
            }

            .title-toggle-btn {
                background: transparent;
                border: 1px dashed var(--accent-gold);
                color: var(--accent-gold);
                padding: 6px 12px;
                border-radius: 6px;
                font-size: 12px;
                cursor: pointer;
                transition: all 0.2s ease;
                font-family: inherit;
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }

            .title-toggle-btn:hover {
                background: rgba(207, 181, 59, 0.1);
                transform: translateY(-1px);
            }

            .title-toggle-btn.active {
                background: var(--accent-gold);
                color: var(--primary-black);
                border-style: solid;
            }

            .title-input-container {
                margin-bottom: 12px;
                animation: slideDown 0.3s ease-out;
            }

            .title-input {
                width: 100%;
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 10px 12px;
                color: var(--text-white);
                font-size: 16px;
                font-weight: 600;
                font-family: inherit;
                transition: all 0.2s ease;
                outline: none;
            }

            .title-input:focus {
                border-color: var(--accent-gold);
                box-shadow:
                    0 0 0 2px rgba(207, 181, 59, 0.2),
                    0 0 15px rgba(207, 181, 59, 0.1);
            }

            .title-input::placeholder {
                color: var(--muted-text);
                font-weight: normal;
            }

            /* Theme-specific title input styles */
            [data-theme="dark"] .title-input,
            [data-theme="weird"] .title-input {
                background: #1a1a1a;
                border: 1px solid #333333;
            }

            [data-theme="light"] .title-input {
                background: #ffffff;
                border: 1px solid #e0e0e0;
                color: #000000;
            }

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

                to {
                    opacity: 1;
                    transform: translateY(0);
                    max-height: 100px;
                }
            }

            /* Poll Styles */
            .poll-toggle-container {
                margin-bottom: 6px;
                opacity: 0;
                height: 0;
                overflow: hidden;
                transition: all 0.3s ease;
            }

            .poll-toggle-container.visible {
                opacity: 1;
                height: auto;
                overflow: visible;
            }

            .poll-toggle-btn {
                background: linear-gradient(135deg, #8b5cf6, #a78bfa, #00ffff);
                border: none;
                color: white;
                padding: 6px 14px;
                border-radius: 6px;
                font-size: 12px;
                font-weight: 600;
                letter-spacing: 0.5px;
                cursor: pointer;
                transition: all 0.3s ease;
                font-family: inherit;
                box-shadow:
                    0 2px 8px rgba(139, 92, 246, 0.3),
                    0 0 15px rgba(0, 255, 255, 0.2);
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            }

            .poll-toggle-btn:hover {
                background: linear-gradient(135deg, #a78bfa, #00ffff, #CFB53B);
                transform: translateY(-2px);
                box-shadow:
                    0 4px 12px rgba(139, 92, 246, 0.4),
                    0 0 20px rgba(0, 255, 255, 0.3),
                    0 0 25px rgba(207, 181, 59, 0.2);
            }

            .poll-toggle-btn.active {
                background: linear-gradient(135deg, #CFB53B, #8b5cf6, #00ffff);
                box-shadow:
                    0 0 15px rgba(207, 181, 59, 0.4),
                    0 0 25px rgba(139, 92, 246, 0.3),
                    0 0 30px rgba(0, 255, 255, 0.2);
            }

            .poll-options-container {
                margin-bottom: 12px;
                animation: slideDown 0.3s ease-out;
            }

            .poll-header {
                color: var(--accent-gold);
                font-size: 12px;
                font-weight: 600;
                margin-bottom: 8px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            .poll-option-input {
                width: 100%;
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 10px 12px;
                color: var(--text-white);
                font-size: 14px;
                font-family: inherit;
                transition: all 0.2s ease;
                outline: none;
                margin-bottom: 8px;
            }

            .poll-option-input:focus {
                border-color: #8b5cf6;
                box-shadow:
                    0 0 0 2px rgba(139, 92, 246, 0.2),
                    0 0 15px rgba(139, 92, 246, 0.1);
            }

            .poll-option-input::placeholder {
                color: var(--muted-text);
            }

            .poll-option-input:last-child {
                margin-bottom: 0;
            }

            [data-theme="dark"] .poll-option-input,
            [data-theme="weird"] .poll-option-input {
                background: #1a1a1a;
                border: 1px solid #333333;
            }

            [data-theme="light"] .poll-option-input {
                background: #ffffff;
                border: 1px solid #e0e0e0;
                color: #000000;
            }

            /* Poll Display Styles */
            .poll-container {
                margin: 16px 0;
                padding: 16px;
                background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.05));
                border: 1px solid rgba(139, 92, 246, 0.3);
                border-radius: 12px;
                animation: fadeIn 0.3s ease-out;
            }

            .poll-option {
                position: relative;
                width: 100%;
                background: var(--card-bg);
                border: 1px solid rgba(139, 92, 246, 0.3);
                border-radius: 8px;
                padding: 0;
                margin-bottom: 10px;
                cursor: pointer;
                overflow: hidden;
                transition: all 0.3s ease;
                min-height: 48px;
                font-family: inherit;
            }

            .poll-option:last-of-type {
                margin-bottom: 0;
            }

            .poll-option:hover {
                border-color: rgba(139, 92, 246, 0.6);
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
            }

            .poll-option.user-voted {
                border-color: var(--accent-gold);
                border-width: 2px;
                box-shadow: 0 0 15px rgba(207, 181, 59, 0.3);
            }

            .poll-option.user-voted:hover {
                border-color: var(--accent-gold);
                box-shadow: 0 0 20px rgba(207, 181, 59, 0.4);
            }

            .poll-option-bar {
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.1));
                transition: width 0.5s ease;
                border-radius: 7px 0 0 7px;
            }

            .poll-option.user-voted .poll-option-bar {
                background: linear-gradient(90deg, rgba(207, 181, 59, 0.4), rgba(207, 181, 59, 0.1));
            }

            .poll-option-content {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 12px 14px;
                z-index: 1;
            }

            .poll-option-text {
                color: var(--text-white);
                font-size: 14px;
                font-weight: 500;
                flex: 1;
                text-align: left;
            }

            .poll-option-stats {
                display: flex;
                align-items: center;
                gap: 6px;
                color: var(--muted-text);
                font-size: 13px;
                font-weight: 600;
                white-space: nowrap;
            }

            .user-vote-indicator {
                color: var(--accent-gold);
                font-size: 16px;
                font-weight: bold;
            }

            .poll-footer {
                margin-top: 12px;
                text-align: center;
                color: var(--muted-text);
                font-size: 12px;
                font-weight: 500;
            }

            /* Poll option unvoted state - hide progress bar */
            .poll-option-unvoted .poll-option-bar {
                width: 0 !important;
                opacity: 0;
            }

            /* Poll voter list for creators */
            .poll-voter-list {
                margin-top: 12px;
                padding-top: 12px;
                border-top: 1px solid rgba(139, 92, 246, 0.3);
            }

            .poll-voter-toggle {
                cursor: pointer;
                color: var(--accent-gold);
                font-size: 13px;
                font-weight: 600;
                padding: 8px 12px;
                background: rgba(207, 181, 59, 0.1);
                border: 1px solid rgba(207, 181, 59, 0.3);
                border-radius: 6px;
                transition: all 0.2s ease;
                list-style: none;
                user-select: none;
            }

            .poll-voter-toggle::-webkit-details-marker {
                display: none;
            }

            .poll-voter-toggle:hover {
                background: rgba(207, 181, 59, 0.2);
                border-color: rgba(207, 181, 59, 0.5);
                transform: translateY(-1px);
            }

            .poll-voter-details {
                margin-top: 10px;
                padding: 12px;
                background: rgba(139, 92, 246, 0.05);
                border-radius: 6px;
                animation: slideDown 0.3s ease-out;
            }

            .poll-option-voters {
                padding: 8px 0;
                color: var(--text-white);
                font-size: 13px;
                line-height: 1.5;
            }

            .poll-option-voters:not(:last-child) {
                border-bottom: 1px solid rgba(139, 92, 246, 0.2);
            }

            .poll-option-voters strong {
                color: var(--accent-gold);
                font-weight: 600;
                display: block;
                margin-bottom: 4px;
            }

            [data-theme="dark"] .poll-option,
            [data-theme="weird"] .poll-option {
                background: #1a1a1a;
            }

            [data-theme="light"] .poll-option {
                background: #ffffff;
            }

            [data-theme="light"] .poll-option-text {
                color: #000000;
            }

            .composer-footer {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-top: 8px;
                padding: 0;
                width: 100%;
                position: sticky;
                bottom: 0;
                z-index: 10;
            }

            /* Image Upload Component Styles */
            .image-upload-container {
                margin: 0;
                display: flex;
                flex-direction: column;
                align-items: flex-end;
            }

            .image-upload-btn {
                background: var(--accent-gold);
                color: var(--primary-black);
                border: none;
                border-radius: 4px;
                padding: 4px 8px;
                font-size: 11px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s ease;
                display: inline-flex;
                align-items: center;
                font-family: inherit;
                text-transform: lowercase;
            }

            .image-upload-btn:hover {
                background: #e6c547;
                transform: translateY(-1px);
                box-shadow: 0 2px 8px rgba(207, 181, 59, 0.3);
            }

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

            .image-preview-container {
                margin-top: 12px;
                padding: 12px;
                background: var(--card-bg);
                border: 1px solid var(--border-color);
                border-radius: 12px;
                transition: all 0.2s ease;
            }

            .image-preview-wrapper {
                position: relative;
                display: inline-block;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            }

            .image-preview {
                max-width: 100%;
                max-height: 200px;
                width: auto;
                height: auto;
                display: block;
                border-radius: 8px;
                object-fit: cover;
            }

            .image-remove-btn {
                position: absolute;
                top: 8px;
                right: 8px;
                background: rgba(0, 0, 0, 0.7);
                color: white;
                border: none;
                border-radius: 50%;
                width: 24px;
                height: 24px;
                font-size: 12px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s ease;
                font-family: inherit;
            }

            .image-remove-btn:hover {
                background: rgba(255, 68, 68, 0.9);
                transform: scale(1.1);
            }

            .image-upload-progress {
                margin-top: 8px;
                text-align: center;
            }

            .progress-bar {
                width: 100%;
                height: 4px;
                background: var(--border-color);
                border-radius: 2px;
                overflow: hidden;
                margin-bottom: 6px;
            }

            .progress-fill {
                height: 100%;
                background: linear-gradient(90deg, var(--accent-gold), #e6c547);
                border-radius: 2px;
                width: 0%;
                transition: width 0.3s ease;
                position: relative;
            }

            .progress-fill::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                background: linear-gradient(90deg,
                        transparent,
                        rgba(255, 255, 255, 0.3),
                        transparent);
                animation: shimmer 1.5s infinite;
            }

            /* 🚀 GPU-OPTIMIZED: Using translateX instead of background-position */
            @keyframes shimmer {
                0% {
                    transform: translateX(-100%);
                    opacity: 0.3;
                }

                50% {
                    opacity: 0.7;
                }

                100% {
                    transform: translateX(100%);
                    opacity: 0.3;
                }
            }

            .progress-text {
                font-size: 12px;
                color: var(--muted-text);
                font-weight: 500;
            }

            .image-upload-error {
                margin-top: 8px;
                padding: 8px;
                background: rgba(255, 68, 68, 0.1);
                border: 1px solid rgba(255, 68, 68, 0.3);
                border-radius: 8px;
                text-align: center;
            }

            .error-text {
                display: block;
                color: var(--error-color);
                font-size: 12px;
                margin-bottom: 6px;
                font-weight: 500;
            }

            .retry-btn {
                background: var(--error-color);
                color: white;
                border: none;
                border-radius: 6px;
                padding: 4px 12px;
                font-size: 12px;
                cursor: pointer;
                transition: all 0.2s ease;
                font-family: inherit;
                font-weight: 500;
            }

            .retry-btn:hover {
                background: #ff6666;
                transform: translateY(-1px);
            }

            /* Mobile optimization for image upload */
            @media (max-width: 768px) {
                .image-preview {
                    max-height: 150px;
                }

                .image-upload-btn {
                    font-size: 10px;
                    padding: 3px 6px;
                }

                .image-preview-container {
                    padding: 8px;
                }
            }

            /* Theme-specific styling */
            [data-theme="light"] .image-upload-btn {
                color: var(--primary-black);
            }

            [data-theme="light"] .image-preview-container {
                background: #ffffff;
                border-color: #e0e0e0;
            }

            [data-theme="dark"] .image-preview-container,
            [data-theme="weird"] .image-preview-container {
                background: #1a1a1a;
                border-color: #333333;
            }

            .character-count {
                color: var(--muted-text);
                font-size: 14px;
                opacity: 0;
                transform: translateY(-10px);
                transition: all 0.3s ease;
                pointer-events: none;
            }

            .character-count.visible {
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }

            .character-count.warning {
                color: #ffa500;
            }

            .character-count.danger {
                color: var(--error-color);
            }

            /* Floating Action Button (FAB) */
            .fab-button {
                position: fixed;
                bottom: 24px;
                right: 24px;
                width: 64px;
                height: 64px;
                border-radius: 50%;
                border: none;
                cursor: pointer;
                z-index: 40;
                display: flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(135deg, #cfb53b 0%, #9370db 50%, #00ffff 100%);
                background-size: 200% 200%;
                box-shadow:
                    0 4px 20px rgba(207, 181, 59, 0.4),
                    0 0 30px rgba(147, 112, 219, 0.3),
                    0 0 40px rgba(0, 255, 255, 0.2);
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                animation: fabPulse 3s ease-in-out infinite;
            }

            @keyframes fabPulse {

                0%,
                100% {
                    background-position: 0% 50%;
                    box-shadow:
                        0 4px 20px rgba(207, 181, 59, 0.4),
                        0 0 30px rgba(147, 112, 219, 0.3),
                        0 0 40px rgba(0, 255, 255, 0.2);
                }

                50% {
                    background-position: 100% 50%;
                    box-shadow:
                        0 4px 25px rgba(207, 181, 59, 0.6),
                        0 0 40px rgba(147, 112, 219, 0.5),
                        0 0 50px rgba(0, 255, 255, 0.4);
                }
            }

            .fab-button:hover {
                transform: translateY(-4px) scale(1.1);
                box-shadow:
                    0 8px 30px rgba(207, 181, 59, 0.6),
                    0 0 50px rgba(147, 112, 219, 0.5),
                    0 0 60px rgba(0, 255, 255, 0.4);
                animation-play-state: paused;
            }

            .fab-button:active {
                transform: translateY(-2px) scale(1.05);
            }

            .fab-icon {
                position: absolute;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                stroke: #ffffff;
                filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
            }

            .fab-icon-plus {
                opacity: 1;
                transform: rotate(0deg) scale(1);
            }

            .fab-icon-close {
                opacity: 0;
                transform: rotate(90deg) scale(0);
            }

            .fab-button.active .fab-icon-plus {
                opacity: 0;
                transform: rotate(-90deg) scale(0);
            }

            .fab-button.active .fab-icon-close {
                opacity: 1;
                transform: rotate(0deg) scale(1);
            }

            /* Hide FAB on mobile safe areas */
            @media (max-width: 768px) {
                .fab-button {
                    bottom: calc(16px + env(safe-area-inset-bottom));
                    right: 16px;
                    width: 56px;
                    height: 56px;
                }
            }

            button.post-btn,
            .post-btn,
            #postBtn {
                background: #cfb53b !important;
                background-image: linear-gradient(145deg,
                        #cfb53b,
                        #b8a532) !important;
                color: #000000 !important;
                border: none !important;
                border-radius: 4px;
                padding: 4px 8px;
                font-weight: 600;
                font-size: 11px;
                cursor: pointer;
                transition: all 0.2s ease;
            }

            .post-btn:hover:not(:disabled) {
                background: linear-gradient(145deg,
                        #d4c049,
                        #cfb53b) !important;
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(207, 181, 59, 0.3);
            }

            .post-btn:disabled,
            button.post-btn:disabled,
            #postBtn:disabled {
                background: #888888 !important;
                background-image: none !important;
                color: #444444 !important;
                opacity: 0.6;
                cursor: not-allowed;
            }

            /* Force enabled button to use color scheme colors */
            .post-btn:not(:disabled),
            button.post-btn:not(:disabled),
            #postBtn:not(:disabled) {
                background: #CFB53B !important;
                background-image: none !important;
                color: #000000 !important;
                border: 2px solid #000000 !important;
                opacity: 1 !important;
            }

            /* Loading States */
            .loading-skeleton {
                background: linear-gradient(90deg,
                        #1a1a1a 25%,
                        #333333 50%,
                        #1a1a1a 75%);
                background-size: 200% 100%;
                animation: loading 1.5s infinite;
                border-radius: 4px;
            }

            @keyframes loading {
                0% {
                    background-position: 200% 0;
                }

                100% {
                    background-position: -200% 0;
                }
            }

            .skeleton-post {
                display: flex;
                align-items: flex-start;
                gap: 12px;
                margin-bottom: 16px;
            }

            .skeleton-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
            }

            .skeleton-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            .skeleton-line {
                height: 16px;
            }

            .skeleton-line.short {
                width: 30%;
            }

            .skeleton-line.medium {
                width: 60%;
            }

            .skeleton-line.long {
                width: 90%;
            }

            /* Inline Comments */
            .comments-section {
                margin-top: 12px;
                border-top: none;
                padding-top: 12px;
            }

            .comments-section.hidden {
                display: none;
            }

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

            .comments-title {
                font-size: 14px;
                font-weight: 600;
                color: var(--text-white);
            }

            .comments-list {
                max-height: 500px;
                /* Increased for better visibility */
                overflow-y: auto;
                overflow-x: visible;
                /* Allow menu dropdown to extend outside */
                margin-bottom: 12px;
                padding-right: 4px;
                /* Extra space for menu button */
                padding-bottom: 30px;
                /* Adjusted for ~70px total spacing */
            }

            .comment-item {
                display: flex;
                align-items: flex-start;
                gap: 10px;
                margin-bottom: 12px;
                padding: 8px 32px 8px 12px;
                /* Extra right padding for 3-dot menu */
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.02);
                overflow: visible;
                /* Ensure menu dropdown isn't clipped */
            }

            .comment-avatar {
                width: 28px;
                height: 28px;
                background: var(--card-bg);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--accent-gold);
                font-weight: 600;
                font-size: 11px;
                flex-shrink: 0;
            }

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

            .comment-meta {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-bottom: 4px;
            }

            .comment-author {
                font-weight: 600;
                font-size: 13px;
                display: inline-flex;
                align-items: center;
                gap: 3px;
            }

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

            .comment-text {
                font-size: 13px;
                line-height: 1.3;
                word-wrap: break-word;
            }

            .comment-edit-btn {
                background: none;
                color: var(--muted-text);
                border: none;
                padding: 4px;
                font-size: 14px;
                cursor: pointer;
                transition: all 0.2s ease;
                margin-top: 4px;
                display: inline-flex;
                align-items: center;
            }

            .comment-edit-btn:hover {
                color: var(--accent-gold);
                transform: scale(1.2);
            }

            .comment-input-section {
                padding: 8px 16px;
                border-top: none;
            }

            .comment-form {
                display: flex;
                align-items: center;
                gap: 12px;
            }

            .comment-input {
                flex: 1;
                background: #1a1a1a;
                border: none;
                border-radius: 8px;
                padding: 8px 12px;
                color: var(--text-white);
                font-family: inherit;
                font-size: 14px;
                outline: none;
            }

            .comment-input:focus {
                border: none;
                box-shadow: 0 0 0 2px rgba(207, 181, 59, 0.2);
            }

            .comment-form .comment-btn {
                background: linear-gradient(145deg,
                        var(--accent-gold),
                        #b8a532);
                color: #000000;
                border: none;
                border-radius: 6px;
                padding: 4px 16px;
                font-weight: 700;
                font-size: 14px;
                cursor: pointer;
                text-shadow: none;
            }

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

            /* Notifications */
            .notification {
                position: fixed;
                top: 80px;
                left: 50%;
                transform: translateX(-50%);
                z-index: 60;
                padding: 12px 24px;
                border-radius: 8px;
                font-size: 14px;
                font-weight: 500;
                max-width: 90%;
                text-align: center;
            }

            .notification.success {
                background: linear-gradient(145deg, var(--accent-gold), #b8a332);
                border: 1px solid var(--accent-gold);
                color: var(--primary-black);
                font-weight: 600;
                text-shadow: none;
            }

            .notification.error {
                background: linear-gradient(145deg, #ff4444, #cc3333);
                border: 1px solid #ff4444;
                color: #ffffff;
                font-weight: 600;
                text-shadow: none;
            }

            .notification.warning {
                background: linear-gradient(145deg, #00ffff, #00cccc);
                border: 1px solid #00ffff;
                color: var(--primary-black);
                font-weight: 600;
                text-shadow: none;
            }

            /* Error Banner */
            .error-banner {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                background: linear-gradient(135deg, #ff4444, #cc3333);
                color: white;
                padding: 12px 16px;
                text-align: center;
                font-weight: 500;
                z-index: 100;
                box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
                transform: translateY(-100%);
                transition: transform 0.3s ease;
            }

            .error-banner.visible {
                transform: translateY(0);
            }

            .error-banner-close {
                position: absolute;
                right: 16px;
                top: 50%;
                transform: translateY(-50%);
                background: none;
                border: none;
                color: white;
                cursor: pointer;
                font-size: 18px;
                padding: 4px;
            }

            .hidden {
                display: none !important;
            }

            /* Load More Button */
            .load-more {
                display: flex;
                justify-content: center;
                padding: 24px 0;
            }

            .load-more-btn {
                background: var(--card-bg);
                color: var(--text-white);
                border: none;
                border-radius: 8px;
                padding: 12px 24px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s ease;
            }

            .load-more-btn:hover {
                background: #1a1a1a;
            }

            .load-more-btn:disabled {
                opacity: 0.5;
                cursor: not-allowed;
            }

            /* Empty State */
            .empty-state {
                text-align: center;
                padding: 48px 16px;
                color: var(--muted-text);
            }

            .empty-state h3 {
                font-size: 18px;
                margin-bottom: 8px;
                color: var(--text-white);
            }

            /* Username Modal */
            .username-modal {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(8px);
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 10000;
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }

            .username-modal.show {
                opacity: 1;
                visibility: visible;
            }

            .username-modal-content {
                background: var(--primary-black);
                border: 2px solid var(--accent-gold);
                border-radius: 16px;
                padding: 32px;
                max-width: 400px;
                width: 90%;
                text-align: center;
                transform: scale(0.9);
                transition: transform 0.3s ease;
            }

            .username-modal.show .username-modal-content {
                transform: scale(1);
            }

            .username-modal-header h2 {
                color: var(--accent-gold);
                font-size: 24px;
                font-weight: 700;
                margin-bottom: 8px;
            }

            .username-modal-header p {
                color: var(--muted-text);
                font-size: 16px;
                line-height: 1.4;
                margin-bottom: 24px;
            }

            .username-input-group {
                margin-bottom: 24px;
            }

            .username-input {
                width: 100%;
                padding: 16px;
                background: var(--card-bg);
                border: 2px solid var(--border-color);
                border-radius: 12px;
                color: var(--text-white);
                font-size: 16px;
                text-align: center;
                transition: border-color 0.2s ease;
            }

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

            .username-input::placeholder {
                color: var(--muted-text);
            }

            .username-hint {
                color: var(--muted-text);
                font-size: 12px;
                margin-top: 8px;
            }

            .username-actions {
                display: flex;
                justify-content: center;
            }

            .username-btn {
                padding: 12px 32px;
                border-radius: 8px;
                font-weight: 600;
                font-size: 16px;
                cursor: pointer;
                transition: all 0.2s ease;
                border: none;
            }

            .username-btn-primary {
                background: var(--accent-gold);
                color: var(--primary-black);
            }

            .username-btn-primary:hover {
                background: #e5c943;
                transform: translateY(-2px);
            }

            .username-btn-primary:disabled {
                opacity: 0.6;
                cursor: not-allowed;
                transform: none;
            }

            /* Responsive - Mobile and iPad Full Width */
            @media (max-width: 1024px) {

                /* Make divider lines full width on mobile and iPad */
                :root {
                    --post-width: 100vw !important;
                }

                .header::after,
                .composer::before {
                    left: 0 !important;
                    transform: none !important;
                    width: 100% !important;
                    animation: neonPulseMobile 2.5s ease-in-out infinite !important;
                }

                /* FORCE MOBILE COMPOSER COMPACT - MAXIMUM SPECIFICITY */
                body .composer {
                    padding: 2px 16px !important;
                    width: 100vw;
                    margin: 0;
                    box-sizing: border-box;
                    touch-action: manipulation !important;
                    overflow-x: hidden !important;
                }

                /* Make composer fit mobile/iPad width and reduce height */
                .composer {
                    padding: 2px 16px !important;
                    width: 100vw;
                    margin: 0;
                    box-sizing: border-box;
                    touch-action: manipulation !important;
                    overflow-x: hidden !important;
                }

                .composer-card {
                    max-width: none !important;
                    margin: 0 !important;
                    padding: 10px !important;
                    border-radius: 8px !important;
                    touch-action: manipulation !important;
                    overflow-x: hidden !important;
                }

                .composer-textarea {
                    min-height: 42px !important;
                    padding: 8px !important;
                    font-size: 16px !important;
                    touch-action: manipulation !important;
                    overscroll-behavior: contain !important;
                }

                .main {
                    padding: 16px 12px 0 12px;
                }

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

                .username-modal-content {
                    padding: 24px;
                    margin: 16px;
                }

                .username-modal-header h2 {
                    font-size: 20px;
                }
            }

            /* Desktop: Remove composer padding to eliminate outer box */
            @media (min-width: 1025px) {
                .composer {
                    padding: 0 !important;
                    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
                    touch-action: manipulation !important;
                    overflow-x: hidden !important;
                }
            }

            /* UNAP Sidebar Styling - MUTED */
            /*
            #unap-sidebar {
                display: none;
            }
            */
            @media (min-width: 1200px) {
                #main-container {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                }

                /*
                #unap-sidebar {
                    display: block;
                    width: 25%;
                    padding: 16px;
                    background: linear-gradient(
                        135deg,
                        #000000,
                        #3f0071,
                        #ff0099
                    );
                    border-radius: 16px;
                    color: white;
                    font-family: "Courier New", monospace;
                    animation: pulseBg 8s infinite alternate;
                }
                */
                .weird-gif img {
                    width: 100%;
                    border-radius: 12px;
                    margin-top: 12px;
                }
            }

            @keyframes pulseBg {
                0% {
                    background: #1a1a1a;
                }

                100% {
                    background: #3f0071;
                }
            }

            /* === FORCE-VISIBLE DESKTOP SIDEBAR + MAKE ROOM (no class assumptions) === */
            @media (min-width: 1200px) {
                #unap-sidebar[hidden] {
                    display: block !important;
                }

                #unap-sidebar {
                    position: fixed;
                    right: 24px;
                    top: 96px;
                    width: 360px;
                    max-height: calc(100vh - 140px);
                    overflow: auto;
                    border-radius: 16px;
                    padding: 14px;
                    background: radial-gradient(120% 120% at 30% 10%,
                            rgba(30, 0, 60, 0.95) 0%,
                            rgba(10, 10, 10, 0.92) 60%,
                            rgba(0, 0, 0, 0.9) 100%);
                    border: none;
                    box-shadow:
                        0 0 24px rgba(0, 255, 255, 0.25),
                        0 10px 35px rgba(0, 0, 0, 0.5);
                    z-index: 50;
                    backdrop-filter: blur(2px);
                }

                #unap-sidebar .head {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 10px;
                    padding-bottom: 8px;
                    border-bottom: 1px dashed rgba(255, 255, 0, 0.45);
                    color: #7ef9ff;
                    font-weight: 800;
                    letter-spacing: 0.5px;
                }

                #unap-sidebar .gif-wrap {
                    position: relative;
                    border-radius: 12px;
                    overflow: hidden;
                    border: 2px solid rgba(255, 255, 0, 0.5);
                    box-shadow: inset 0 0 20px rgba(255, 0, 200, 0.25);
                    margin-bottom: 12px;
                }

                #unap-gif {
                    width: 100%;
                    height: auto;
                    display: block;
                    image-rendering: pixelated;
                }

                #unap-player {
                    display: flex;
                    gap: 10px;
                    align-items: center;
                    border-radius: 12px;
                    padding: 10px 12px;
                    margin-bottom: 12px;
                    background: linear-gradient(135deg,
                            rgba(255, 255, 0, 0.08),
                            rgba(0, 255, 255, 0.08));
                    border: 1px solid rgba(0, 255, 255, 0.35);
                    color: #fff;
                }

                #unap-player button {
                    border: none;
                    cursor: pointer;
                    border-radius: 10px;
                    padding: 8px 12px;
                    background: linear-gradient(135deg, #ffd400, #ff6fd8);
                    color: #1a1a1a;
                    font-weight: 800;
                    box-shadow: 0 4px 12px rgba(255, 223, 0, 0.35);
                }

                /* make universal space on the right so the sidebar doesn't overlap */
                body {
                    padding-right: 420px !important;
                }

                main,
                .main,
                .container,
                .app-container,
                #app,
                #gb_content {
                    margin-right: 420px !important;
                }
            }

            @media (prefers-reduced-motion: reduce) {
                #unap-sidebar {
                    animation: none !important;
                }
            }

            /* Audio Controls Styling */
            @media (min-width: 1200px) {
                .audio-controls {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    margin-top: 10px;
                }

                #unapToggle {
                    border: none;
                    cursor: pointer;
                    border-radius: 10px;
                    padding: 10px 16px;
                    background: linear-gradient(135deg, #ffd400, #ff6fd8);
                    color: #1a1a1a;
                    font-weight: 800;
                    font-size: 14px;
                    box-shadow: 0 4px 12px rgba(255, 223, 0, 0.35);
                    transition: all 0.2s ease;
                }

                #unapToggle:hover {
                    transform: scale(1.05);
                    box-shadow: 0 6px 16px rgba(255, 223, 0, 0.5);
                }

                .volume-control {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    font-size: 14px;
                    color: #7ef9ff;
                }

                #unapVol {
                    flex: 1;
                    height: 6px;
                    background: rgba(255, 255, 255, 0.2);
                    border-radius: 3px;
                    outline: none;
                    cursor: pointer;
                    appearance: none;
                }

                #unapVol::-webkit-slider-thumb {
                    appearance: none;
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, #ffd400, #ff6fd8);
                    cursor: pointer;
                    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
                    transition: all 0.2s ease;
                }

                #unapVol::-webkit-slider-thumb:hover {
                    transform: scale(1.2);
                }

                #unapVol::-moz-range-thumb {
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, #ffd400, #ff6fd8);
                    cursor: pointer;
                    border: none;
                    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
                }
            }

            /* Pull to Refresh Styles */
            .pull-refresh-indicator {
                position: absolute;
                top: -80px;
                left: 50%;
                transform: translateX(-50%);
                width: 60px;
                height: 60px;
                background: var(--card-bg);
                border: 2px solid var(--accent-gold);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 100;
                transition: all 0.3s ease;
                opacity: 0;
                color: var(--accent-gold);
                font-size: 24px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            }

            .pull-refresh-indicator.visible {
                opacity: 1;
            }

            .pull-refresh-indicator.active {
                background: var(--accent-gold);
                color: var(--primary-black);
                transform: translateX(-50%) rotate(180deg);
            }

            .pull-refresh-indicator.refreshing {
                animation: pullRefreshSpin 1s linear infinite;
            }

            @keyframes pullRefreshSpin {
                from {
                    transform: translateX(-50%) rotate(0deg);
                }

                to {
                    transform: translateX(-50%) rotate(360deg);
                }
            }

            /* Mobile-specific pull to refresh styles */
            @media (max-width: 768px) {
                .main.pull-refreshing {
                    overflow: hidden;
                    touch-action: none;
                }

                .pull-refresh-indicator {
                    top: -70px;
                    width: 50px;
                    height: 50px;
                    font-size: 20px;
                }
            }

            /* === Desktop centering adjustments (override) === */
            @media (min-width: 1200px) {

                /* Anchor sidebar relative to center so the whole layout feels centered */
                #unap-sidebar {
                    right: auto !important;
                    left: 50% !important;
                    margin-left: 520px !important;
                    /* distance from center to sidebar (tweak to taste) */
                }

                /* Remove earlier right padding/margins so main feed re-centers */
                body {
                    padding-right: 0 !important;
                }

                main,
                .main,
                .container,
                .app-container,
                #app,
                #gb_content {
                    margin-right: 0 !important;
                    max-width: 1100px;
                    margin-left: auto !important;
                    margin-right: auto !important;
                }

                /* Keep composer aligned with main feed width */
                .composer,
                .composer-section {
                    max-width: 1100px;
                    margin-left: auto !important;
                    margin-right: auto !important;
                }
            }

            /* === DESKTOP LAYOUT FIXES: keep feed wide, prevent overlap, add player UI === */
            @media (min-width: 1200px) {
                :root {
                    --sidecar-gutter: 420px;
                }

                /* sidebar 360px + 60px breathing room */

                /* Keep feed centered and reserve space on the right so sidecar never overlaps */
                main,
                .main,
                .container,
                .app-container,
                #app,
                #gb_content {
                    max-width: 1100px;
                    margin-left: auto !important;
                    margin-right: var(--sidecar-gutter) !important;
                }

                /* Composer matches posts width (no thinning) */
                .composer,
                .composer-section {
                    max-width: 1100px;
                    width: 100% !important;
                    margin-left: auto !important;
                    margin-right: var(--sidecar-gutter) !important;
                }

                /* Anchor sidecar on right */
                #unap-sidebar {
                    left: auto !important;
                    right: 24px !important;
                }
            }

            /* Player volume slider styling */
            #unap-player .vol-wrap {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-left: auto;
            }

            #unap-player input[type="range"] {
                width: 110px;
                appearance: none;
                height: 4px;
                background: rgba(255, 255, 255, 0.25);
                border-radius: 999px;
            }

            #unap-player input[type="range"]::-webkit-slider-thumb {
                appearance: none;
                width: 14px;
                height: 14px;
                border-radius: 50%;
                background: linear-gradient(135deg, #ffd400, #ff6fd8);
                border: none;
                box-shadow: 0 0 8px rgba(255, 223, 0, 0.4);
            }

            #unap-player input[type="range"]::-moz-range-thumb {
                width: 14px;
                height: 14px;
                border-radius: 50%;
                background: linear-gradient(135deg, #ffd400, #ff6fd8);
                border: none;
                box-shadow: 0 0 8px rgba(255, 223, 0, 0.4);
            }

            /* === UNAP Desktop Layout & Player === */
            @media (min-width: 1200px) {
                :root {
                    --sidecar-gutter: 420px;
                }

                /* 360px sidebar + 60px gap */

                /* Reserve right gutter so sidebar never overlaps */
                main,
                .main,
                .container,
                .app-container,
                #app,
                #gb_content {
                    max-width: 1100px;
                    margin-left: auto !important;
                    margin-right: var(--sidecar-gutter) !important;
                }

                .composer,
                .composer-section {
                    max-width: 1100px;
                    width: 100% !important;
                    margin-left: auto !important;
                    margin-right: var(--sidecar-gutter) !important;
                }

                /* Sidebar cosmetics + position */
                #unap-sidebar {
                    position: fixed;
                    right: 24px;
                    top: 96px;
                    width: 360px;
                    max-height: calc(100vh - 140px);
                    overflow: auto;
                    border-radius: 16px;
                    padding: 14px;
                    background: radial-gradient(120% 120% at 30% 10%,
                            rgba(30, 0, 60, 0.95) 0%,
                            rgba(10, 10, 10, 0.92) 60%,
                            rgba(0, 0, 0, 0.9) 100%);
                    border: none;
                    box-shadow:
                        0 0 24px rgba(0, 255, 255, 0.25),
                        0 10px 35px rgba(0, 0, 0, 0.5);
                    z-index: 50;
                    backdrop-filter: blur(2px);
                }

                #unap-sidebar .weird-gif img {
                    width: 100%;
                    border-radius: 12px;
                    display: block;
                    image-rendering: pixelated;
                }
            }

            /* Volume slider styling */
            #unap-sidebar .vol-wrap {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-left: auto;
            }

            #unap-sidebar input[type="range"] {
                width: 110px;
                appearance: none;
                height: 4px;
                background: rgba(255, 255, 255, 0.25);
                border-radius: 999px;
            }

            #unap-sidebar input[type="range"]::-webkit-slider-thumb {
                appearance: none;
                width: 14px;
                height: 14px;
                border-radius: 50%;
                background: linear-gradient(135deg, #ffd400, #ff6fd8);
                border: none;
                box-shadow: 0 0 8px rgba(255, 223, 0, 0.4);
            }

            #unap-sidebar input[type="range"]::-moz-range-thumb {
                width: 14px;
                height: 14px;
                border-radius: 50%;
                background: linear-gradient(135deg, #ffd400, #ff6fd8);
                border: none;
                box-shadow: 0 0 8px rgba(255, 223, 0, 0.4);
            }

            /* MUTE ALL SIDEBAR ELEMENTS */
            #unap-sidebar,
            .unap-sidebar,
            aside[id*="sidebar"],
            aside[class*="sidebar"] {
                display: none !important;
                visibility: hidden !important;
            }

            /* Remove sidebar spacing adjustments */
            @media (min-width: 1200px) {
                body {
                    padding-right: 0 !important;
                }
            }

            /* Center all main content including header with same layout */
            .main,
            .posts-container,
            .composer,
            .header-content {
                margin-left: auto !important;
                margin-right: auto !important;
                max-width: 768px !important;
                padding: 16px !important;
            }

            /* Mobile adjustment to match main container */
            @media (max-width: 768px) {
                .header-content {
                    padding: 8px 12px !important;
                    gap: 8px !important;
                    flex-wrap: nowrap !important;
                }

                /* Compact title on mobile */
                .title-section {
                    flex: 1 1 0 !important;
                    min-width: 0 !important;
                    overflow: hidden !important;
                }

                .logo-text {
                    font-size: 18px !important;
                    white-space: nowrap !important;
                    overflow: hidden !important;
                    text-overflow: ellipsis !important;
                }

                .intro-text {
                    font-size: 9px !important;
                    max-width: 180px !important;
                }

                /* Compact badge on mobile */
                .user-status-badge {
                    padding: 4px 8px !important;
                    gap: 4px !important;
                }

                .user-badge-name {
                    max-width: 60px !important;
                    overflow: hidden !important;
                    text-overflow: ellipsis !important;
                    white-space: nowrap !important;
                }

                /* Keep gear visible */
                .settings-container {
                    flex-shrink: 0 !important;
                }
            }

            /* Title section takes available space but allows badge and gear to show */
            .title-section {
                flex: 1 1 0;
                min-width: 0;
                overflow: hidden;
            }

            /* Ensure title text aligns to left within the container */
            .logo-text,
            .intro-text {
                text-align: left !important;
                margin-left: 0 !important;
            }

            /* CRITICAL FIX: Remove composer padding on desktop to eliminate purple box */
            @media (min-width: 768px) {
                .composer {
                    padding: 0 !important;
                    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
                    background: transparent !important;
                    touch-action: manipulation !important;
                    overflow-x: hidden !important;
                }
            }

            /* Search Modal Styles */
            .search-modal-container {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.8);
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 1000;
                padding: 20px;
                box-sizing: border-box;
            }

            .search-modal-content {
                background: var(--card-bg);
                border-radius: 12px;
                max-width: 600px;
                width: 100%;
                max-height: 80vh;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            }

            .search-modal-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 20px 24px;
                border-bottom: 1px solid var(--border-color);
                flex-shrink: 0;
            }

            .search-modal-header h3 {
                margin: 0;
                color: var(--text-color);
                font-size: 20px;
                font-weight: 600;
            }

            .search-modal-body {
                padding: 24px;
                overflow-y: auto;
                flex: 1;
            }

            .search-input-container {
                display: flex;
                gap: 8px;
                margin-bottom: 16px;
            }

            #search-input {
                flex: 1;
                padding: 12px 16px;
                border: 2px solid var(--border-color);
                border-radius: 8px;
                background: var(--bg-color);
                color: var(--text-color);
                font-size: 16px;
                outline: none;
                transition: border-color 0.2s;
            }

            #search-input:focus {
                border-color: var(--accent-gold);
            }

            .search-submit-btn {
                padding: 12px 16px;
                background: var(--accent-gold);
                color: black;
                border: none;
                border-radius: 8px;
                cursor: pointer;
                font-size: 16px;
                transition: opacity 0.2s;
            }

            .search-submit-btn:hover {
                opacity: 0.8;
            }

            .search-filters {
                display: flex;
                gap: 16px;
                margin-bottom: 24px;
                flex-wrap: wrap;
            }

            .search-filters label {
                display: flex;
                align-items: center;
                gap: 6px;
                color: var(--text-color);
                cursor: pointer;
                font-size: 14px;
            }

            .search-filters input[type="radio"] {
                accent-color: var(--accent-gold);
            }

            .search-results {
                min-height: 200px;
            }

            .search-empty-state,
            .search-no-results {
                text-align: center;
                color: var(--muted-text);
                padding: 40px 20px;
            }

            .search-loading {
                text-align: center;
                padding: 40px 20px;
                color: var(--muted-text);
            }

            .search-loading-spinner {
                width: 32px;
                height: 32px;
                border: 3px solid var(--border-color);
                border-top: 3px solid var(--accent-gold);
                border-radius: 50%;
                animation: spin 1s linear infinite;
                margin: 0 auto 16px auto;
            }

            @keyframes spin {
                0% {
                    transform: rotate(0deg);
                }

                100% {
                    transform: rotate(360deg);
                }
            }

            .search-results-list {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .search-result-item {
                padding: 16px;
                border: 1px solid var(--border-color);
                border-radius: 8px;
                background: var(--bg-color);
                cursor: pointer;
                transition: background-color 0.2s, border-color 0.2s;
            }

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

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

            .search-result-type {
                display: inline-block;
                padding: 2px 8px;
                border-radius: 12px;
                font-size: 12px;
                font-weight: 600;
                text-transform: uppercase;
            }

            .search-result-type.post {
                background: rgba(76, 175, 80, 0.2);
                color: #4CAF50;
            }

            .search-result-type.comment {
                background: rgba(33, 150, 243, 0.2);
                color: #2196F3;
            }

            .search-result-type.user {
                background: rgba(255, 152, 0, 0.2);
                color: #FF9800;
            }

            .search-result-author {
                font-weight: 600;
                color: var(--text-color);
            }

            .search-result-text {
                color: var(--text-color);
                line-height: 1.4;
                margin-bottom: 8px;
            }

            .search-result-meta {
                font-size: 12px;
                color: var(--muted-text);
                display: flex;
                gap: 12px;
                align-items: center;
            }

            .search-modal-footer {
                padding: 16px 24px;
                border-top: 1px solid var(--border-color);
                display: flex;
                gap: 12px;
                justify-content: flex-end;
                flex-shrink: 0;
            }

            .clear-search-btn,
            .exit-search-btn {
                padding: 10px 20px;
                border: 1px solid var(--border-color);
                border-radius: 6px;
                background: var(--bg-color);
                color: var(--text-color);
                cursor: pointer;
                font-size: 14px;
                transition: background-color 0.2s, border-color 0.2s;
            }

            .exit-search-btn {
                background: var(--accent-gold);
                color: black;
                border-color: var(--accent-gold);
            }

            .clear-search-btn:hover,
            .exit-search-btn:hover {
                opacity: 0.8;
            }

            /* Multi-colored Stars around Composer */
            .composer-stars {
                position: absolute;
                width: 100%;
                height: 100%;
                pointer-events: none;
                overflow: visible;
                z-index: 5;
            }

            .star {
                position: absolute;
                width: 8px;
                height: 8px;
                clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
                opacity: 0.8;
                animation: starTwinkle 3s ease-in-out infinite;
            }

            .star:nth-child(1) {
                background: #ffeb3b;
                top: 10%;
                left: 15%;
                animation-delay: 0s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(2) {
                background: #e91e63;
                top: 25%;
                right: 12%;
                animation-delay: 0.5s;
                width: 10px;
                height: 10px;
            }

            .star:nth-child(3) {
                background: #2196f3;
                bottom: 15%;
                left: 8%;
                animation-delay: 1s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(4) {
                background: #4caf50;
                bottom: 30%;
                right: 18%;
                animation-delay: 1.5s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(5) {
                background: #ff9800;
                top: 40%;
                left: 5%;
                animation-delay: 2s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(6) {
                background: #9c27b0;
                top: 50%;
                right: 8%;
                animation-delay: 2.5s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(7) {
                background: #00bcd4;
                bottom: 50%;
                left: 20%;
                animation-delay: 3s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(8) {
                background: #ff5722;
                bottom: 10%;
                right: 25%;
                animation-delay: 3.5s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(9) {
                background: #cddc39;
                top: 15%;
                left: 30%;
                animation-delay: 4s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(10) {
                background: #f44336;
                top: 35%;
                right: 30%;
                animation-delay: 4.5s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(11) {
                background: #3f51b5;
                bottom: 25%;
                left: 35%;
                animation-delay: 5s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(12) {
                background: #ffc107;
                bottom: 45%;
                right: 35%;
                animation-delay: 5.5s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(13) {
                background: #8bc34a;
                top: 60%;
                left: 10%;
                animation-delay: 6s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(14) {
                background: #e91e63;
                top: 5%;
                right: 5%;
                animation-delay: 6.5s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(15) {
                background: #00e676;
                bottom: 5%;
                left: 40%;
                animation-delay: 7s;
                width: 10px;
                height: 10px;
            }

            .star:nth-child(16) {
                background: #ff6b6b;
                top: 70%;
                right: 15%;
                animation-delay: 7.5s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(17) {
                background: #4fc3f7;
                top: 20%;
                left: 45%;
                animation-delay: 8s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(18) {
                background: #ba68c8;
                bottom: 35%;
                right: 5%;
                animation-delay: 8.5s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(19) {
                background: #ffab40;
                top: 80%;
                left: 25%;
                animation-delay: 9s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(20) {
                background: #26c6da;
                top: 45%;
                right: 45%;
                animation-delay: 9.5s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(21) {
                background: #66bb6a;
                bottom: 60%;
                left: 5%;
                animation-delay: 10s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(22) {
                background: #ef5350;
                top: 55%;
                left: 50%;
                animation-delay: 10.5s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(23) {
                background: #ab47bc;
                bottom: 20%;
                right: 40%;
                animation-delay: 11s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(24) {
                background: #ffa726;
                top: 30%;
                left: 40%;
                animation-delay: 11.5s;
                width: 5px;
                height: 5px;
            }

            /* Additional 24 stars for beautiful starfield (48 total) */
            .star:nth-child(25) {
                background: #ff1744;
                top: 12%;
                left: 55%;
                animation-delay: 0.3s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(26) {
                background: #3d5afe;
                bottom: 8%;
                right: 45%;
                animation-delay: 1.1s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(27) {
                background: #00e5ff;
                top: 65%;
                left: 15%;
                animation-delay: 1.7s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(28) {
                background: #c6ff00;
                bottom: 55%;
                right: 10%;
                animation-delay: 2.3s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(29) {
                background: #ff6d00;
                top: 85%;
                left: 60%;
                animation-delay: 2.9s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(30) {
                background: #aa00ff;
                top: 22%;
                right: 55%;
                animation-delay: 3.4s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(31) {
                background: #00c853;
                bottom: 40%;
                left: 70%;
                animation-delay: 4.2s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(32) {
                background: #ff5722;
                top: 75%;
                right: 25%;
                animation-delay: 4.8s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(33) {
                background: #2196f3;
                bottom: 12%;
                left: 80%;
                animation-delay: 5.4s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(34) {
                background: #e91e63;
                top: 38%;
                left: 75%;
                animation-delay: 6.1s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(35) {
                background: #00bcd4;
                bottom: 28%;
                right: 60%;
                animation-delay: 6.7s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(36) {
                background: #8bc34a;
                top: 90%;
                left: 35%;
                animation-delay: 7.3s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(37) {
                background: #ffc107;
                top: 8%;
                right: 70%;
                animation-delay: 7.9s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(38) {
                background: #9c27b0;
                bottom: 65%;
                left: 55%;
                animation-delay: 8.5s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(39) {
                background: #ff9800;
                top: 52%;
                right: 75%;
                animation-delay: 9.1s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(40) {
                background: #607d8b;
                bottom: 18%;
                left: 65%;
                animation-delay: 9.7s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(41) {
                background: #4caf50;
                top: 18%;
                left: 85%;
                animation-delay: 10.3s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(42) {
                background: #f44336;
                bottom: 45%;
                right: 80%;
                animation-delay: 10.9s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(43) {
                background: #673ab7;
                top: 95%;
                left: 45%;
                animation-delay: 11.5s;
                width: 7px;
                height: 7px;
            }

            .star:nth-child(44) {
                background: #009688;
                top: 28%;
                right: 85%;
                animation-delay: 0.7s;
                width: 9px;
                height: 9px;
            }

            .star:nth-child(45) {
                background: #795548;
                bottom: 75%;
                left: 12%;
                animation-delay: 1.3s;
                width: 6px;
                height: 6px;
            }

            .star:nth-child(46) {
                background: #ffeb3b;
                top: 42%;
                left: 90%;
                animation-delay: 1.9s;
                width: 8px;
                height: 8px;
            }

            .star:nth-child(47) {
                background: #e57373;
                bottom: 32%;
                right: 90%;
                animation-delay: 2.5s;
                width: 5px;
                height: 5px;
            }

            .star:nth-child(48) {
                background: #81c784;
                top: 88%;
                left: 20%;
                animation-delay: 3.1s;
                width: 7px;
                height: 7px;
            }

            @keyframes starTwinkle {

                0%,
                100% {
                    opacity: 0.3;
                    transform: scale(1) rotate(0deg);
                }

                25% {
                    opacity: 0.8;
                    transform: scale(1.2) rotate(90deg);
                }

                50% {
                    opacity: 1;
                    transform: scale(1) rotate(180deg);
                }

                75% {
                    opacity: 0.6;
                    transform: scale(1.1) rotate(270deg);
                }
            }

            /* 🚀 PERFORMANCE BOOST: Pause animations during interactions for silky smooth typing/scrolling */
            body.performance-pause .star,
            body.performance-pause .spacer-star,
            body.performance-pause .starfield-layer,
            body.performance-pause .nebula-glow,
            body.performance-pause .parallax-star,
            body.performance-pause .space-particles,
            body.performance-pause .header-star,
            body.performance-pause .logo,
            body.performance-pause .neon-border,
            body.performance-pause [class*="shimmer"],
            body.performance-pause [class*="glow"] {
                animation-play-state: paused !important;
            }

            /* Respect user preference for reduced motion on mobile */
            @media (prefers-reduced-motion: reduce) {

                .star,
                .spacer-star,
                .starfield-layer,
                .nebula-glow,
                .parallax-star,
                .space-particles,
                .header-star {
                    animation: none !important;
                }
            }

            /* Header Stars */
            .header-stars {
                position: absolute;
                width: 100%;
                height: 100%;
                pointer-events: none;
                overflow: visible;
                z-index: -1;
                top: 0;
                left: 0;
            }

            .header-star {
                position: absolute;
                width: 8px;
                height: 8px;
                clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
                opacity: 0.6;
                animation: starTwinkle 3s ease-in-out infinite;
            }

            .header-star:nth-child(1) {
                background: #ffeb3b;
                top: 20%;
                left: 10%;
                animation-delay: 0.2s;
                width: 6px;
                height: 6px;
            }

            .header-star:nth-child(2) {
                background: #e91e63;
                top: 40%;
                right: 15%;
                animation-delay: 0.8s;
                width: 8px;
                height: 8px;
            }

            .header-star:nth-child(3) {
                background: #2196f3;
                bottom: 30%;
                left: 20%;
                animation-delay: 1.4s;
                width: 7px;
                height: 7px;
            }

            .header-star:nth-child(4) {
                background: #4caf50;
                top: 60%;
                right: 8%;
                animation-delay: 2.1s;
                width: 9px;
                height: 9px;
            }

            .header-star:nth-child(5) {
                background: #ff9800;
                top: 10%;
                left: 35%;
                animation-delay: 2.7s;
                width: 5px;
                height: 5px;
            }

            .header-star:nth-child(6) {
                background: #9c27b0;
                bottom: 15%;
                right: 30%;
                animation-delay: 3.3s;
                width: 8px;
                height: 8px;
            }

            .header-star:nth-child(7) {
                background: #00bcd4;
                top: 80%;
                left: 5%;
                animation-delay: 3.9s;
                width: 6px;
                height: 6px;
            }

            .header-star:nth-child(8) {
                background: #ff5722;
                top: 15%;
                right: 40%;
                animation-delay: 4.5s;
                width: 7px;
                height: 7px;
            }

            .header-star:nth-child(9) {
                background: #cddc39;
                bottom: 50%;
                left: 45%;
                animation-delay: 5.1s;
                width: 5px;
                height: 5px;
            }

            .header-star:nth-child(10) {
                background: #f44336;
                top: 50%;
                right: 50%;
                animation-delay: 5.7s;
                width: 9px;
                height: 9px;
            }

            .header-star:nth-child(11) {
                background: #3f51b5;
                bottom: 40%;
                left: 60%;
                animation-delay: 6.3s;
                width: 6px;
                height: 6px;
            }

            .header-star:nth-child(12) {
                background: #ffc107;
                top: 70%;
                right: 20%;
                animation-delay: 6.9s;
                width: 8px;
                height: 8px;
            }

            .header-star:nth-child(13) {
                background: #8bc34a;
                top: 30%;
                left: 70%;
                animation-delay: 7.5s;
                width: 7px;
                height: 7px;
            }

            .header-star:nth-child(14) {
                background: #e91e63;
                bottom: 20%;
                right: 60%;
                animation-delay: 8.1s;
                width: 5px;
                height: 5px;
            }

            .header-star:nth-child(15) {
                background: #00e676;
                top: 5%;
                left: 80%;
                animation-delay: 8.7s;
                width: 10px;
                height: 10px;
            }

            .header-star:nth-child(16) {
                background: #ff6b6b;
                bottom: 10%;
                left: 25%;
                animation-delay: 9.3s;
                width: 6px;
                height: 6px;
            }

            .header-star:nth-child(17) {
                background: #4fc3f7;
                top: 90%;
                right: 35%;
                animation-delay: 9.9s;
                width: 8px;
                height: 8px;
            }

            .header-star:nth-child(18) {
                background: #ba68c8;
                top: 25%;
                left: 85%;
                animation-delay: 10.5s;
                width: 7px;
                height: 7px;
            }

            .header-star:nth-child(19) {
                background: #ffab40;
                bottom: 60%;
                right: 75%;
                animation-delay: 11.1s;
                width: 5px;
                height: 5px;
            }

            .header-star:nth-child(20) {
                background: #26c6da;
                top: 45%;
                left: 90%;
                animation-delay: 11.7s;
                width: 9px;
                height: 9px;
            }

            /* Post Feed Star Spacer */
            .post-star-spacer {
                height: 120px;
                margin: 24px 0;
                position: relative;
                background: transparent;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: visible;
            }

            .spacer-stars {
                position: absolute;
                width: 100%;
                height: 100%;
                pointer-events: none;
                overflow: visible;
            }

            .spacer-star {
                position: absolute;
                width: 8px;
                height: 8px;
                clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
                opacity: 0.7;
                animation: starTwinkle 3s ease-in-out infinite;
            }

            .spacer-star:nth-child(1) {
                background: #ffeb3b;
                top: 30%;
                left: 20%;
                animation-delay: 0.2s;
                width: 6px;
                height: 6px;
            }

            .spacer-star:nth-child(2) {
                background: #e91e63;
                top: 60%;
                right: 25%;
                animation-delay: 0.8s;
                width: 8px;
                height: 8px;
            }

            .spacer-star:nth-child(3) {
                background: #2196f3;
                bottom: 20%;
                left: 40%;
                animation-delay: 1.4s;
                width: 7px;
                height: 7px;
            }

            .spacer-star:nth-child(4) {
                background: #4caf50;
                top: 80%;
                right: 15%;
                animation-delay: 2.1s;
                width: 9px;
                height: 9px;
            }

            .spacer-star:nth-child(5) {
                background: #ff9800;
                top: 10%;
                left: 60%;
                animation-delay: 2.7s;
                width: 5px;
                height: 5px;
            }

            .spacer-star:nth-child(6) {
                background: #9c27b0;
                bottom: 40%;
                right: 45%;
                animation-delay: 3.3s;
                width: 8px;
                height: 8px;
            }

            .spacer-star:nth-child(7) {
                background: #00bcd4;
                top: 70%;
                left: 80%;
                animation-delay: 3.9s;
                width: 6px;
                height: 6px;
            }

            .spacer-star:nth-child(8) {
                background: #ff5722;
                top: 20%;
                right: 60%;
                animation-delay: 4.5s;
                width: 7px;
                height: 7px;
            }

            .spacer-star:nth-child(9) {
                background: #cddc39;
                bottom: 60%;
                left: 15%;
                animation-delay: 5.1s;
                width: 5px;
                height: 5px;
            }

            .spacer-star:nth-child(10) {
                background: #f44336;
                top: 50%;
                right: 80%;
                animation-delay: 5.7s;
                width: 9px;
                height: 9px;
            }

            .spacer-star:nth-child(11) {
                background: #3f51b5;
                bottom: 10%;
                left: 70%;
                animation-delay: 6.3s;
                width: 6px;
                height: 6px;
            }

            .spacer-star:nth-child(12) {
                background: #ffc107;
                top: 90%;
                right: 35%;
                animation-delay: 6.9s;
                width: 8px;
                height: 8px;
            }

            /* ===== STAR FINDER GAME STYLING ===== */
            .stellar-click-game-container {
                margin: 48px 0;
                padding: 24px 0;
                display: flex;
                justify-content: center;
                align-items: center;
                background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
                border-radius: 16px;
                position: relative;
                overflow: hidden;
                animation: stellarGlow 3s ease-in-out infinite alternate;
                /* ABSOLUTE POSITION ISOLATION TO PREVENT MOVEMENT */
                min-height: 400px;
                transform: translateZ(0);
                will-change: auto;
                contain: layout style paint;
                isolation: isolate;
                z-index: 10;
                /* FIXED POSITIONING DURING GAMEPLAY */
                transition: none;
            }

            .stellar-game-card {
                background: var(--primary-black);
                border: 3px solid var(--accent-gold);
                border-radius: 8px;
                padding: 24px;
                max-width: 420px;
                width: 100%;
                box-shadow:
                    0 0 30px rgba(207, 181, 59, 0.4),
                    inset 0 0 30px rgba(207, 181, 59, 0.15),
                    0 0 10px rgba(255, 255, 255, 0.1);
                backdrop-filter: blur(15px);
                position: relative;
                overflow: hidden;
            }

            .stellar-game-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(45deg, transparent 48%, rgba(207, 181, 59, 0.1) 50%, transparent 52%);
                animation: retroScan 3s ease-in-out infinite;
                pointer-events: none;
            }

            .stellar-game-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 20px;
                flex-wrap: wrap;
                gap: 12px;
                position: relative;
                z-index: 2;
            }

            .stellar-game-title {
                color: var(--accent-gold);
                font-size: 20px;
                font-weight: bold;
                text-shadow: 0 0 15px rgba(207, 181, 59, 0.8);
                margin: 0;
                letter-spacing: 2px;
                font-family: 'Courier New', monospace;
                text-transform: uppercase;
            }

            .stellar-game-stats {
                display: flex;
                gap: 20px;
                font-size: 14px;
                color: var(--primary-white);
                font-family: 'Courier New', monospace;
            }

            .stellar-score,
            .stellar-timer {
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 1px;
            }

            .score-value,
            .timer-value {
                color: var(--accent-gold);
                font-weight: bold;
                text-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
            }

            .stellar-game-area {
                position: relative;
                min-height: 140px;
                z-index: 2;
            }

            .stellar-game-controls {
                display: flex;
                justify-content: center;
                gap: 16px;
                margin-bottom: 20px;
            }

            .stellar-start-btn,
            .stellar-stop-btn {
                background: linear-gradient(145deg, #000000 0%, #1a1a1a 50%, #000000 100%);
                color: var(--accent-gold);
                border: 2px solid var(--accent-gold);
                border-radius: 4px;
                padding: 12px 24px;
                font-weight: bold;
                font-size: 16px;
                font-family: 'Courier New', monospace;
                cursor: pointer;
                transition: all 0.2s ease;
                text-transform: uppercase;
                letter-spacing: 2px;
                min-width: 160px;
                text-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
                box-shadow:
                    0 0 10px rgba(207, 181, 59, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
                position: relative;
                overflow: hidden;
            }

            .stellar-start-btn::before,
            .stellar-stop-btn::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(207, 181, 59, 0.3), transparent);
                transition: left 0.5s ease;
            }

            .stellar-start-btn:hover,
            .stellar-stop-btn:hover {
                transform: translateY(-1px);
                box-shadow:
                    0 0 20px rgba(207, 181, 59, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
                background: linear-gradient(145deg, #0a0a0a 0%, #2a2a2a 50%, #0a0a0a 100%);
                color: #ffffff;
                text-shadow: 0 0 12px rgba(207, 181, 59, 0.8);
            }

            .stellar-start-btn:hover::before,
            .stellar-stop-btn:hover::before {
                left: 100%;
            }

            .stellar-start-btn:active,
            .stellar-stop-btn:active {
                transform: translateY(0px);
                box-shadow:
                    0 0 15px rgba(207, 181, 59, 0.4),
                    inset 0 2px 4px rgba(0, 0, 0, 0.6);
            }

            .stellar-play-zone {
                background: rgba(0, 0, 0, 0.7);
                border: 2px solid rgba(207, 181, 59, 0.4);
                border-radius: 8px;
                height: 220px;
                position: relative;
                overflow: hidden;
                cursor: crosshair;
                box-shadow: inset 0 0 20px rgba(207, 181, 59, 0.2);
            }

            .stellar-instructions {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: var(--accent-gold);
                font-size: 14px;
                text-align: center;
                opacity: 0.9;
                pointer-events: none;
                font-family: 'Courier New', monospace;
                text-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
                letter-spacing: 1px;
                text-transform: uppercase;
            }

            .stellar-clickable-star {
                position: absolute;
                width: 22px;
                height: 22px;
                background: var(--accent-gold);
                clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
                cursor: pointer;
                animation: stellarFloat 2s ease-in-out infinite;
                box-shadow: 0 0 20px rgba(207, 181, 59, 0.8);
                transition: all 0.2s ease;
                z-index: 10;
            }

            .stellar-clickable-star:hover {
                transform: scale(1.3);
                box-shadow: 0 0 30px rgba(207, 181, 59, 1);
                filter: brightness(1.2);
            }

            .stellar-clickable-star.clicked {
                animation: stellarClickEffect 0.4s ease-out;
                pointer-events: none;
            }

            @keyframes stellarFloat {

                0%,
                100% {
                    transform: translateY(0px) rotate(0deg);
                    opacity: 1;
                    filter: brightness(1);
                }

                50% {
                    transform: translateY(-8px) rotate(180deg);
                    opacity: 0.9;
                    filter: brightness(1.1);
                }
            }

            @keyframes stellarClickEffect {
                0% {
                    transform: scale(1);
                    opacity: 1;
                    filter: brightness(1);
                }

                50% {
                    transform: scale(1.8);
                    opacity: 0.8;
                    filter: brightness(1.5);
                }

                100% {
                    transform: scale(0);
                    opacity: 0;
                    filter: brightness(2);
                }
            }

            @keyframes retroScan {

                0%,
                100% {
                    transform: translateX(-100%);
                    opacity: 0;
                }

                50% {
                    transform: translateX(100%);
                    opacity: 1;
                }
            }

            /* Mobile optimization for Void Hunter */
            @media (max-width: 768px) {
                .stellar-game-card {
                    margin: 0 16px;
                    padding: 20px;
                    max-width: 100%;
                }

                .stellar-game-header {
                    flex-direction: column;
                    text-align: center;
                    gap: 10px;
                }

                .stellar-game-title {
                    font-size: 18px;
                }

                .stellar-start-btn,
                .stellar-stop-btn {
                    padding: 14px 28px;
                    font-size: 15px;
                    min-height: 48px;
                    min-width: 140px;
                    touch-action: manipulation;
                }

                .stellar-play-zone {
                    height: 200px;
                }

                .stellar-clickable-star {
                    width: 26px;
                    height: 26px;
                }

                .stellar-instructions {
                    font-size: 13px;
                    padding: 0 20px;
                }
            }

            /* ===== UNAPOLOGETIC ORBIT GAME STYLING ===== */
            .orbit-game-container {
                margin: 48px 0;
                padding: 24px 0;
                display: flex;
                justify-content: center;
                align-items: center;
                background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
                border-radius: 16px;
                position: relative;
                overflow: hidden;
                animation: orbitGlow 4s ease-in-out infinite alternate;
                min-height: 400px;
                transform: translateZ(0);
                transition: none;
            }

            @keyframes orbitGlow {
                0% {
                    box-shadow: 0 0 40px rgba(207, 181, 59, 0.3), inset 0 0 40px rgba(207, 181, 59, 0.1);
                    filter: brightness(1);
                }

                50% {
                    box-shadow: 0 0 60px rgba(207, 181, 59, 0.5), inset 0 0 60px rgba(207, 181, 59, 0.15);
                    filter: brightness(1.1);
                }

                100% {
                    box-shadow: 0 0 80px rgba(207, 181, 59, 0.4), inset 0 0 50px rgba(207, 181, 59, 0.12);
                    filter: brightness(1);
                }
            }

            .orbit-game-card {
                background: var(--primary-black);
                border: 3px solid var(--accent-gold);
                border-radius: 8px;
                padding: 24px;
                max-width: 420px;
                width: 100%;
                box-shadow:
                    0 0 30px rgba(207, 181, 59, 0.4),
                    inset 0 0 30px rgba(207, 181, 59, 0.15),
                    0 0 10px rgba(255, 255, 255, 0.1);
                backdrop-filter: blur(15px);
                position: relative;
                overflow: hidden;
            }

            .orbit-game-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(45deg, transparent 48%, rgba(207, 181, 59, 0.1) 50%, transparent 52%);
                animation: orbitScan 2.5s ease-in-out infinite;
                pointer-events: none;
            }

            @keyframes orbitScan {

                0%,
                100% {
                    transform: translateX(-100%) rotate(45deg);
                    opacity: 0;
                }

                50% {
                    transform: translateX(100%) rotate(45deg);
                    opacity: 1;
                }
            }

            .orbit-game-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 20px;
                flex-wrap: wrap;
                gap: 12px;
                position: relative;
                z-index: 2;
            }

            .orbit-game-title {
                color: var(--accent-gold);
                font-size: 20px;
                font-weight: bold;
                text-shadow: 0 0 15px rgba(207, 181, 59, 0.8);
                margin: 0;
                letter-spacing: 2px;
                font-family: 'Courier New', monospace;
                text-transform: uppercase;
            }

            .orbit-game-stats {
                display: flex;
                gap: 20px;
                font-size: 14px;
                color: var(--primary-white);
                font-family: 'Courier New', monospace;
            }

            .orbit-score,
            .orbit-shield {
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 1px;
            }

            .orbit-score-value,
            .orbit-shield-value {
                color: var(--accent-gold);
                font-weight: bold;
                text-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
            }

            .orbit-game-area {
                position: relative;
                min-height: 140px;
                z-index: 2;
            }

            .orbit-game-controls {
                display: flex;
                justify-content: center;
                gap: 16px;
                margin-bottom: 20px;
            }

            .orbit-start-btn,
            .orbit-stop-btn {
                background: linear-gradient(145deg, #000000 0%, #1a1a1a 50%, #000000 100%);
                color: var(--accent-gold);
                border: 2px solid var(--accent-gold);
                border-radius: 4px;
                padding: 12px 24px;
                font-weight: bold;
                font-size: 16px;
                font-family: 'Courier New', monospace;
                cursor: pointer;
                transition: all 0.2s ease;
                text-transform: uppercase;
                letter-spacing: 2px;
                min-width: 160px;
                text-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
                box-shadow:
                    0 0 10px rgba(207, 181, 59, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
                position: relative;
                overflow: hidden;
            }

            .orbit-start-btn::before,
            .orbit-stop-btn::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(207, 181, 59, 0.3), transparent);
                transition: left 0.5s ease;
            }

            .orbit-start-btn:hover,
            .orbit-stop-btn:hover {
                transform: translateY(-1px);
                box-shadow:
                    0 0 20px rgba(207, 181, 59, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2),
                    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
                background: linear-gradient(145deg, #0a0a0a 0%, #2a2a2a 50%, #0a0a0a 100%);
                color: #ffffff;
                text-shadow: 0 0 12px rgba(207, 181, 59, 0.8);
            }

            .orbit-start-btn:hover::before,
            .orbit-stop-btn:hover::before {
                left: 100%;
            }

            .orbit-play-zone {
                background: rgba(0, 0, 0, 0.8);
                border: 2px solid rgba(207, 181, 59, 0.4);
                border-radius: 8px;
                height: 220px;
                position: relative;
                overflow: hidden;
                cursor: grab;
                box-shadow: inset 0 0 20px rgba(207, 181, 59, 0.2);
                touch-action: pan-y;
                display: flex;
                justify-content: space-between;
                align-items: stretch;
            }

            .orbit-lane {
                flex: 1;
                position: relative;
                border-right: 1px solid rgba(207, 181, 59, 0.2);
                background: linear-gradient(0deg,
                        rgba(0, 0, 0, 0.9) 0%,
                        rgba(10, 10, 20, 0.8) 50%,
                        rgba(0, 0, 0, 0.9) 100%);
            }

            .orbit-lane:last-child {
                border-right: none;
            }

            .orbit-lane::before {
                content: '';
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 2px;
                height: 100%;
                background: linear-gradient(0deg,
                        transparent 0%,
                        rgba(207, 181, 59, 0.3) 50%,
                        transparent 100%);
                animation: laneGlow 2s ease-in-out infinite alternate;
            }

            @keyframes laneGlow {
                0% {
                    opacity: 0.3;
                }

                100% {
                    opacity: 0.8;
                }
            }

            .orbit-logo-player {
                position: absolute;
                width: 40px;
                height: 40px;
                transition: all 0.3s ease;
                z-index: 10;
                filter: drop-shadow(0 0 10px rgba(207, 181, 59, 0.8));
            }

            .orbit-logo-player.shielded {
                filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8));
                transform: scale(1.2);
            }

            .orbit-signal-node {
                position: absolute;
                width: 16px;
                height: 16px;
                background: radial-gradient(circle, var(--accent-gold) 0%, rgba(207, 181, 59, 0.6) 100%);
                border-radius: 50%;
                box-shadow: 0 0 15px rgba(207, 181, 59, 0.8);
                animation: signalPulse 1.5s ease-in-out infinite;
                z-index: 5;
            }

            @keyframes signalPulse {

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

                50% {
                    transform: scale(1.3);
                    opacity: 0.7;
                }
            }

            .orbit-glitch-asteroid {
                position: absolute;
                width: 20px;
                height: 20px;
                background: linear-gradient(145deg, #ff4444 0%, #cc0000 100%);
                border-radius: 3px;
                box-shadow: 0 0 12px rgba(255, 68, 68, 0.8);
                animation: glitchSpin 1s linear infinite;
                z-index: 5;
            }

            @keyframes glitchSpin {
                0% {
                    transform: rotate(0deg);
                }

                100% {
                    transform: rotate(360deg);
                }
            }

            .orbit-instructions {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: var(--accent-gold);
                font-size: 14px;
                text-align: center;
                font-family: 'Courier New', monospace;
                text-shadow: 0 0 10px rgba(207, 181, 59, 0.8);
                letter-spacing: 1px;
                line-height: 1.4;
                padding: 20px;
                background: rgba(0, 0, 0, 0.7);
                border-radius: 8px;
                border: 1px solid rgba(207, 181, 59, 0.3);
                pointer-events: none;
            }

            /* Mobile optimization for UNAPOLOGETIC ORBIT */
            @media (max-width: 768px) {
                .orbit-game-card {
                    margin: 0 16px;
                    padding: 20px;
                    max-width: 100%;
                }

                .orbit-game-header {
                    flex-direction: column;
                    text-align: center;
                    gap: 10px;
                }

                .orbit-game-title {
                    font-size: 18px;
                }

                .orbit-start-btn,
                .orbit-stop-btn {
                    padding: 14px 28px;
                    font-size: 15px;
                    min-height: 48px;
                    min-width: 140px;
                    touch-action: manipulation;
                }

                .orbit-play-zone {
                    height: 200px;
                }

                .orbit-logo-player {
                    width: 32px;
                    height: 32px;
                }

                .orbit-instructions {
                    font-size: 13px;
                    padding: 15px;
                }
            }


            /* ===== FLOATING SPACE DUST PARTICLES ===== */
            .space-particles {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                z-index: 1;
                overflow: hidden;
            }

            .particle {
                position: absolute;
                background: rgba(255, 255, 255, 0.9);
                border-radius: 50%;
                opacity: 0;
                animation: particleDrift 12s linear infinite;
            }

            .particle.gold {
                background: rgba(207, 181, 59, 0.8);
                box-shadow: 0 0 8px rgba(207, 181, 59, 0.6);
            }

            .particle.white {
                background: rgba(255, 255, 255, 0.7);
                box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
            }

            .particle.cyan {
                background: rgba(0, 255, 255, 0.6);
                box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
            }

            .particle.purple {
                background: rgba(138, 43, 226, 0.7);
                box-shadow: 0 0 7px rgba(138, 43, 226, 0.5);
            }

            .particle.pink {
                background: rgba(255, 20, 147, 0.6);
                box-shadow: 0 0 6px rgba(255, 20, 147, 0.4);
            }

            /* Different particle sizes */
            .particle.tiny {
                width: 1px;
                height: 1px;
            }

            .particle.small {
                width: 2px;
                height: 2px;
            }

            .particle.medium {
                width: 3px;
                height: 3px;
            }

            .particle.large {
                width: 4px;
                height: 4px;
            }

            .particle.huge {
                width: 5px;
                height: 5px;
            }

            @keyframes particleDrift {
                0% {
                    opacity: 0;
                    transform: translateX(var(--start-x, -100px)) translateY(100vh) rotate(0deg);
                }

                10% {
                    opacity: 1;
                }

                90% {
                    opacity: 1;
                }

                100% {
                    opacity: 0;
                    transform: translateX(var(--end-x, 100vw)) translateY(-100px) rotate(360deg);
                }
            }

            /* Individual particle animations with different speeds */
            .particle:nth-child(1) {
                animation-duration: 18s;
                animation-delay: 0s;
            }

            .particle:nth-child(2) {
                animation-duration: 22s;
                animation-delay: 2s;
            }

            .particle:nth-child(3) {
                animation-duration: 16s;
                animation-delay: 4s;
            }

            .particle:nth-child(4) {
                animation-duration: 25s;
                animation-delay: 6s;
            }

            .particle:nth-child(5) {
                animation-duration: 19s;
                animation-delay: 8s;
            }

            .particle:nth-child(6) {
                animation-duration: 21s;
                animation-delay: 10s;
            }

            .particle:nth-child(7) {
                animation-duration: 17s;
                animation-delay: 12s;
            }

            .particle:nth-child(8) {
                animation-duration: 23s;
                animation-delay: 14s;
            }

            .particle:nth-child(9) {
                animation-duration: 20s;
                animation-delay: 16s;
            }

            .particle:nth-child(10) {
                animation-duration: 24s;
                animation-delay: 18s;
            }

            .particle:nth-child(11) {
                animation-duration: 18s;
                animation-delay: 20s;
            }

            .particle:nth-child(12) {
                animation-duration: 22s;
                animation-delay: 22s;
            }

            .particle:nth-child(13) {
                animation-duration: 16s;
                animation-delay: 24s;
            }

            .particle:nth-child(14) {
                animation-duration: 26s;
                animation-delay: 26s;
            }

            .particle:nth-child(15) {
                animation-duration: 19s;
                animation-delay: 28s;
            }

            .particle:nth-child(16) {
                animation-duration: 21s;
                animation-delay: 30s;
            }

            .particle:nth-child(17) {
                animation-duration: 17s;
                animation-delay: 32s;
            }

            .particle:nth-child(18) {
                animation-duration: 25s;
                animation-delay: 34s;
            }

            .particle:nth-child(19) {
                animation-duration: 20s;
                animation-delay: 36s;
            }

            .particle:nth-child(20) {
                animation-duration: 23s;
                animation-delay: 38s;
            }

            .particle:nth-child(21) {
                animation-duration: 19s;
                animation-delay: 40s;
            }

            .particle:nth-child(22) {
                animation-duration: 24s;
                animation-delay: 42s;
            }

            .particle:nth-child(23) {
                animation-duration: 18s;
                animation-delay: 44s;
            }

            .particle:nth-child(24) {
                animation-duration: 22s;
                animation-delay: 46s;
            }

            .particle:nth-child(25) {
                animation-duration: 20s;
                animation-delay: 48s;
            }

            .particle:nth-child(26) {
                animation-duration: 26s;
                animation-delay: 50s;
            }

            .particle:nth-child(27) {
                animation-duration: 17s;
                animation-delay: 52s;
            }

            .particle:nth-child(28) {
                animation-duration: 21s;
                animation-delay: 54s;
            }

            .particle:nth-child(29) {
                animation-duration: 25s;
                animation-delay: 56s;
            }

            .particle:nth-child(30) {
                animation-duration: 19s;
                animation-delay: 58s;
            }

            .particle:nth-child(31) {
                animation-duration: 23s;
                animation-delay: 60s;
            }

            .particle:nth-child(32) {
                animation-duration: 18s;
                animation-delay: 62s;
            }

            .particle:nth-child(33) {
                animation-duration: 24s;
                animation-delay: 64s;
            }

            .particle:nth-child(34) {
                animation-duration: 16s;
                animation-delay: 66s;
            }

            .particle:nth-child(35) {
                animation-duration: 22s;
                animation-delay: 68s;
            }

            .particle:nth-child(36) {
                animation-duration: 20s;
                animation-delay: 70s;
            }

            .particle:nth-child(37) {
                animation-duration: 27s;
                animation-delay: 72s;
            }

            .particle:nth-child(38) {
                animation-duration: 15s;
                animation-delay: 74s;
            }

            .particle:nth-child(39) {
                animation-duration: 21s;
                animation-delay: 76s;
            }

            .particle:nth-child(40) {
                animation-duration: 25s;
                animation-delay: 78s;
            }

            .particle:nth-child(41) {
                animation-duration: 19s;
                animation-delay: 80s;
            }

            .particle:nth-child(42) {
                animation-duration: 23s;
                animation-delay: 82s;
            }

            .particle:nth-child(43) {
                animation-duration: 17s;
                animation-delay: 84s;
            }

            .particle:nth-child(44) {
                animation-duration: 24s;
                animation-delay: 86s;
            }

            .particle:nth-child(45) {
                animation-duration: 18s;
                animation-delay: 88s;
            }

            .particle:nth-child(46) {
                animation-duration: 22s;
                animation-delay: 90s;
            }

            .particle:nth-child(47) {
                animation-duration: 20s;
                animation-delay: 92s;
            }

            .particle:nth-child(48) {
                animation-duration: 26s;
                animation-delay: 94s;
            }

            .particle:nth-child(49) {
                animation-duration: 16s;
                animation-delay: 96s;
            }

            .particle:nth-child(50) {
                animation-duration: 21s;
                animation-delay: 98s;
            }

            .particle:nth-child(51) {
                animation-duration: 25s;
                animation-delay: 100s;
            }

            .particle:nth-child(52) {
                animation-duration: 19s;
                animation-delay: 102s;
            }

            .particle:nth-child(53) {
                animation-duration: 23s;
                animation-delay: 104s;
            }

            .particle:nth-child(54) {
                animation-duration: 17s;
                animation-delay: 106s;
            }

            .particle:nth-child(55) {
                animation-duration: 24s;
                animation-delay: 108s;
            }

            .particle:nth-child(56) {
                animation-duration: 18s;
                animation-delay: 110s;
            }

            .particle:nth-child(57) {
                animation-duration: 22s;
                animation-delay: 112s;
            }

            .particle:nth-child(58) {
                animation-duration: 20s;
                animation-delay: 114s;
            }

            .particle:nth-child(59) {
                animation-duration: 27s;
                animation-delay: 116s;
            }

            .particle:nth-child(60) {
                animation-duration: 15s;
                animation-delay: 118s;
            }

            .particle:nth-child(61) {
                animation-duration: 21s;
                animation-delay: 120s;
            }

            .particle:nth-child(62) {
                animation-duration: 25s;
                animation-delay: 122s;
            }

            .particle:nth-child(63) {
                animation-duration: 19s;
                animation-delay: 124s;
            }

            .particle:nth-child(64) {
                animation-duration: 23s;
                animation-delay: 126s;
            }

            .particle:nth-child(65) {
                animation-duration: 17s;
                animation-delay: 128s;
            }

            .particle:nth-child(66) {
                animation-duration: 24s;
                animation-delay: 130s;
            }

            .particle:nth-child(67) {
                animation-duration: 18s;
                animation-delay: 132s;
            }

            .particle:nth-child(68) {
                animation-duration: 22s;
                animation-delay: 134s;
            }

            .particle:nth-child(69) {
                animation-duration: 20s;
                animation-delay: 136s;
            }

            .particle:nth-child(70) {
                animation-duration: 26s;
                animation-delay: 138s;
            }

            .particle:nth-child(71) {
                animation-duration: 16s;
                animation-delay: 140s;
            }

            .particle:nth-child(72) {
                animation-duration: 21s;
                animation-delay: 142s;
            }

            .particle:nth-child(73) {
                animation-duration: 25s;
                animation-delay: 144s;
            }

            .particle:nth-child(74) {
                animation-duration: 19s;
                animation-delay: 146s;
            }

            .particle:nth-child(75) {
                animation-duration: 23s;
                animation-delay: 148s;
            }

            .particle:nth-child(76) {
                animation-duration: 17s;
                animation-delay: 150s;
            }

            .particle:nth-child(77) {
                animation-duration: 24s;
                animation-delay: 152s;
            }

            .particle:nth-child(78) {
                animation-duration: 18s;
                animation-delay: 154s;
            }

            .particle:nth-child(79) {
                animation-duration: 22s;
                animation-delay: 156s;
            }

            .particle:nth-child(80) {
                animation-duration: 20s;
                animation-delay: 158s;
            }

            /* ===== MOBILE-FRIENDLY COSMIC BACKGROUND ===== */
            .cosmic-background {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                pointer-events: none;
                z-index: -2;
                overflow: hidden;
            }

            /* Subtle starfield background */
            .starfield-layer {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-image:
                    radial-gradient(1px 1px at 20px 30px, #cfb53b, transparent),
                    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
                    radial-gradient(1px 1px at 90px 40px, #00ffff, transparent),
                    radial-gradient(1px 1px at 130px 80px, #cfb53b, transparent),
                    radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.6), transparent);
                background-repeat: repeat;
                background-size: 200px 100px;
                animation: starfieldDrift 30s linear infinite;
            }

            @keyframes starfieldDrift {
                0% {
                    transform: translateY(0);
                }

                100% {
                    transform: translateY(-100px);
                }
            }

            /* Nebula glow effect */
            .nebula-glow {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background:
                    radial-gradient(ellipse at 20% 50%, rgba(207, 181, 59, 0.1) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 40% 80%, rgba(147, 112, 219, 0.06) 0%, transparent 50%);
                animation: nebulaShift 45s ease-in-out infinite alternate;
            }

            @keyframes nebulaShift {
                0% {
                    opacity: 0.3;
                    transform: scale(1);
                }

                50% {
                    opacity: 0.5;
                    transform: scale(1.1);
                }

                100% {
                    opacity: 0.2;
                    transform: scale(0.9);
                }
            }

            /* Simple cosmic dots */
            .cosmic-dot {
                position: absolute;
                width: 3px;
                height: 3px;
                border-radius: 50%;
                background: rgba(207, 181, 59, 0.8);
                box-shadow: 0 0 6px rgba(207, 181, 59, 0.6);
                animation: cosmicTwinkle 4s ease-in-out infinite;
            }

            .cosmic-dot.dot-1 {
                top: 15%;
                left: 25%;
                animation-delay: 0s;
            }

            .cosmic-dot.dot-2 {
                top: 40%;
                left: 75%;
                animation-delay: 1s;
                background: rgba(255, 255, 255, 0.9);
                box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
            }

            .cosmic-dot.dot-3 {
                top: 70%;
                left: 15%;
                animation-delay: 2s;
                background: rgba(0, 255, 255, 0.8);
                box-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
            }

            .cosmic-dot.dot-4 {
                top: 85%;
                left: 60%;
                animation-delay: 3s;
            }

            .cosmic-dot.dot-5 {
                top: 25%;
                left: 90%;
                animation-delay: 1.5s;
                background: rgba(255, 255, 255, 0.7);
                box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
            }

            .cosmic-dot.dot-6 {
                top: 55%;
                left: 45%;
                animation-delay: 2.5s;
                background: rgba(0, 255, 255, 0.6);
                box-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
            }

            @keyframes cosmicTwinkle {

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

                50% {
                    opacity: 1;
                    transform: scale(1.5);
                }
            }

            /* Mobile optimization - reduce effects on smaller screens */
            @media (max-width: 768px) {
                .starfield-layer {
                    animation-duration: 40s;
                    /* Slower for battery optimization */
                }

                .nebula-glow {
                    animation-duration: 60s;
                    /* Slower for performance */
                    opacity: 0.7;
                    /* Slightly more visible on small screens */
                }

                .cosmic-dot {
                    animation-duration: 6s;
                    /* Slower twinkling */
                }
            }

            /* ===== RULES MODAL STYLING ===== */
            .rules-modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0, 0, 0, 0.9);
                backdrop-filter: blur(10px);
                z-index: 10000;
                display: none;
                justify-content: center;
                align-items: center;
                padding: 20px;
                box-sizing: border-box;
                opacity: 0;
                transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
            }

            .rules-modal-overlay.show {
                opacity: 1;
            }

            .rules-modal-container {
                background: linear-gradient(135deg,
                        rgba(0, 0, 0, 0.95) 0%,
                        rgba(20, 20, 20, 0.95) 50%,
                        rgba(0, 0, 0, 0.98) 100%);
                border: 2px solid transparent;
                background-clip: padding-box;
                border-radius: 16px;
                max-width: 650px;
                width: 100%;
                max-height: 85vh;
                overflow: hidden;
                position: relative;
                transform: scale(0.8) translateY(50px);
                transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
                box-shadow:
                    0 0 30px rgba(207, 181, 59, 0.3),
                    0 0 60px rgba(0, 255, 255, 0.2),
                    0 0 90px rgba(147, 112, 219, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
            }

            .rules-modal-overlay.show .rules-modal-container {
                transform: scale(1) translateY(0);
            }

            .rules-modal-container::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(45deg,
                        rgba(207, 181, 59, 0.1) 0%,
                        transparent 30%,
                        rgba(0, 255, 255, 0.08) 70%,
                        transparent 100%);
                border-radius: 16px;
                pointer-events: none;
                z-index: -1;
            }

            .rules-modal-header {
                background: linear-gradient(90deg,
                        rgba(207, 181, 59, 0.2) 0%,
                        rgba(0, 255, 255, 0.1) 50%,
                        rgba(207, 181, 59, 0.2) 100%);
                padding: 24px 32px;
                border-bottom: 1px solid rgba(207, 181, 59, 0.3);
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: relative;
            }

            .rules-modal-header::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 2px;
                background: linear-gradient(90deg,
                        transparent 0%,
                        #cfb53b 20%,
                        #00ffff 50%,
                        #cfb53b 80%,
                        transparent 100%);
                animation: headerShimmer 3s ease-in-out infinite;
            }

            @keyframes headerShimmer {

                0%,
                100% {
                    opacity: 0.5;
                }

                50% {
                    opacity: 1;
                }
            }

            .rules-modal-header h2 {
                color: #cfb53b;
                font-size: 1.8rem;
                font-weight: 700;
                margin: 0;
                text-transform: uppercase;
                letter-spacing: 2px;
                text-shadow:
                    0 0 10px rgba(207, 181, 59, 0.6),
                    0 0 20px rgba(207, 181, 59, 0.3);
                background: linear-gradient(45deg, #cfb53b, #fff, #cfb53b);
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
            }

            .rules-close-btn {
                background: none;
                border: 2px solid rgba(207, 181, 59, 0.4);
                color: #cfb53b;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
                position: relative;
                overflow: hidden;
            }

            .rules-close-btn::before {
                content: '';
                position: absolute;
                top: -50%;
                left: -50%;
                width: 200%;
                height: 200%;
                background: conic-gradient(from 0deg, transparent, rgba(207, 181, 59, 0.3), transparent);
                animation: spinGlow 2s linear infinite;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .rules-close-btn:hover::before {
                opacity: 1;
            }

            @keyframes spinGlow {
                0% {
                    transform: rotate(0deg);
                }

                100% {
                    transform: rotate(360deg);
                }
            }

            .rules-close-btn:hover {
                border-color: #cfb53b;
                box-shadow:
                    0 0 15px rgba(207, 181, 59, 0.5),
                    0 0 30px rgba(207, 181, 59, 0.3);
                transform: scale(1.1);
            }

            .close-icon {
                font-size: 1.5rem;
                font-weight: bold;
                position: relative;
                z-index: 1;
            }

            .rules-modal-body {
                padding: 32px;
                max-height: 50vh;
                overflow-y: auto;
                scrollbar-width: thin;
                scrollbar-color: #cfb53b rgba(0, 0, 0, 0.2);
            }

            .rules-modal-body::-webkit-scrollbar {
                width: 8px;
            }

            .rules-modal-body::-webkit-scrollbar-track {
                background: rgba(0, 0, 0, 0.2);
                border-radius: 4px;
            }

            .rules-modal-body::-webkit-scrollbar-thumb {
                background: linear-gradient(45deg, #cfb53b, #00ffff);
                border-radius: 4px;
            }

            .rules-section {
                margin-bottom: 32px;
                border-radius: 12px;
                padding: 24px;
                position: relative;
                backdrop-filter: blur(5px);
            }

            .rules-section.allowed {
                background: linear-gradient(135deg,
                        rgba(0, 255, 127, 0.15) 0%,
                        rgba(0, 255, 255, 0.1) 50%,
                        rgba(255, 215, 0, 0.08) 100%);
                border: 1px solid rgba(0, 255, 127, 0.4);
                box-shadow:
                    0 0 20px rgba(0, 255, 127, 0.2),
                    inset 0 1px 0 rgba(0, 255, 255, 0.1);
            }

            .rules-section.not-allowed {
                background: linear-gradient(135deg,
                        rgba(255, 99, 71, 0.15) 0%,
                        rgba(255, 20, 147, 0.1) 50%,
                        rgba(255, 165, 0, 0.08) 100%);
                border: 1px solid rgba(255, 20, 147, 0.4);
                box-shadow:
                    0 0 20px rgba(255, 99, 71, 0.2),
                    inset 0 1px 0 rgba(255, 165, 0, 0.1);
            }

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

            .rules-icon {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.2rem;
                font-weight: bold;
                text-shadow: 0 0 10px currentColor;
            }

            .allowed-icon {
                background: linear-gradient(45deg, #00ff7f, #00ffff);
                color: #000000;
                font-weight: 900;
                box-shadow:
                    0 0 20px rgba(0, 255, 127, 0.6),
                    0 0 40px rgba(0, 255, 255, 0.3);
                animation: pulseGlow 2s ease-in-out infinite alternate;
            }

            .not-allowed-icon {
                background: linear-gradient(45deg, #ff6347, #ff1493);
                color: #ffffff;
                font-weight: 900;
                box-shadow:
                    0 0 20px rgba(255, 99, 71, 0.6),
                    0 0 40px rgba(255, 20, 147, 0.4);
                animation: pulseGlow 2.5s ease-in-out infinite alternate;
            }

            .rules-section-header h3 {
                background: linear-gradient(45deg, #ffffff, #00ffff, #ffd700);
                background-clip: text;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                font-size: 1.4rem;
                font-weight: 700;
                margin: 0;
                text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
                animation: shimmerHeader 5s linear infinite;
            }

            /* Animation definitions for colorful effects */
            @keyframes pulseGlow {
                0% {
                    transform: scale(1);
                    opacity: 0.8;
                }

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

            @keyframes shimmerArrow {
                0% {
                    background-position: -200% 0;
                }

                100% {
                    background-position: 200% 0;
                }
            }

            @keyframes shimmerText {
                0% {
                    background-position: -300% 0;
                }

                100% {
                    background-position: 300% 0;
                }
            }

            @keyframes shimmerHeader {
                0% {
                    background-position: -400% 0;
                }

                100% {
                    background-position: 400% 0;
                }
            }

            .rules-list {
                list-style: none;
                padding: 0;
                margin: 0;
            }

            .rules-list li {
                color: rgba(255, 255, 255, 0.9);
                line-height: 1.6;
                margin-bottom: 16px;
                padding-left: 24px;
                position: relative;
                font-size: 0.95rem;
            }

            .rules-list li::before {
                content: '▶';
                position: absolute;
                left: 0;
                top: 2px;
                background: linear-gradient(45deg, #ffd700, #ff1493, #00ffff);
                background-clip: text;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                font-size: 0.8rem;
                opacity: 0.8;
                animation: shimmerArrow 3s linear infinite;
            }

            .rules-list li strong {
                background: linear-gradient(45deg, #ffd700, #00ffff, #ff1493, #ffa500);
                background-clip: text;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                font-weight: 700;
                text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
                animation: shimmerText 4s linear infinite;
            }

            .rules-modal-footer {
                background: linear-gradient(90deg,
                        rgba(45, 27, 105, 0.8) 0%,
                        rgba(75, 0, 130, 0.8) 25%,
                        rgba(255, 20, 147, 0.3) 50%,
                        rgba(75, 0, 130, 0.8) 75%,
                        rgba(45, 27, 105, 0.8) 100%);
                padding: 24px 32px;
                border-top: 2px solid;
                border-image: linear-gradient(90deg, #ffd700, #00ffff, #ff1493) 1;
                text-align: center;
                position: relative;
                box-shadow:
                    0 -4px 20px rgba(255, 20, 147, 0.2),
                    inset 0 1px 0 rgba(0, 255, 255, 0.3);
            }

            .cosmic-sparkles {
                position: absolute;
                top: -10px;
                left: 0;
                right: 0;
                height: 20px;
                background: linear-gradient(90deg,
                        transparent 0%,
                        rgba(207, 181, 59, 0.3) 25%,
                        rgba(0, 255, 255, 0.3) 50%,
                        rgba(207, 181, 59, 0.3) 75%,
                        transparent 100%);
                animation: sparkleShift 2s ease-in-out infinite;
            }

            @keyframes sparkleShift {

                0%,
                100% {
                    transform: scaleX(1);
                    opacity: 0.5;
                }

                50% {
                    transform: scaleX(1.2);
                    opacity: 1;
                }
            }

            .rules-footer-text {
                color: rgba(255, 255, 255, 0.8);
                font-style: italic;
                margin: 0;
                font-size: 1rem;
                letter-spacing: 1px;
            }

            /* Mobile responsiveness for rules modal */
            @media (max-width: 768px) {
                .rules-modal-container {
                    margin: 10px;
                    max-height: 90vh;
                    border-radius: 12px;
                }

                .rules-modal-header {
                    padding: 20px 24px;
                }

                .rules-modal-header h2 {
                    font-size: 1.4rem;
                }

                .rules-modal-body {
                    padding: 24px;
                    max-height: 60vh;
                }

                .rules-section {
                    padding: 20px;
                    margin-bottom: 24px;
                }

                .rules-section-header h3 {
                    font-size: 1.2rem;
                }

                .rules-list li {
                    font-size: 0.9rem;
                    margin-bottom: 12px;
                }
            }

            /* ===== AURORA BACKGROUND GRADIENTS ===== */
            .aurora-background {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                z-index: -1;
                opacity: 0.1;
                background: linear-gradient(45deg,
                        rgba(128, 0, 128, 0.3),
                        rgba(0, 100, 200, 0.2),
                        rgba(0, 255, 255, 0.2),
                        rgba(255, 20, 147, 0.3));
                background-size: 400% 400%;
                animation: auroraShift 60s ease-in-out infinite;
            }

            @keyframes auroraShift {
                0% {
                    background-position: 0% 50%;
                    opacity: 0.08;
                }

                25% {
                    background-position: 100% 50%;
                    opacity: 0.12;
                }

                50% {
                    background-position: 100% 100%;
                    opacity: 0.10;
                }

                75% {
                    background-position: 0% 100%;
                    opacity: 0.14;
                }

                100% {
                    background-position: 0% 50%;
                    opacity: 0.08;
                }
            }

            /* Secondary aurora layer for more complexity */
            .aurora-background::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: radial-gradient(ellipse at 30% 20%,
                        rgba(207, 181, 59, 0.1) 0%,
                        transparent 50%),
                    radial-gradient(ellipse at 70% 80%,
                        rgba(138, 43, 226, 0.1) 0%,
                        transparent 50%),
                    radial-gradient(ellipse at 40% 60%,
                        rgba(0, 255, 255, 0.08) 0%,
                        transparent 50%);
                animation: auroraSecondary 45s ease-in-out infinite reverse;
            }

            @keyframes auroraSecondary {
                0% {
                    transform: scale(1) rotate(0deg);
                    opacity: 0.6;
                }

                33% {
                    transform: scale(1.1) rotate(120deg);
                    opacity: 0.8;
                }

                66% {
                    transform: scale(0.9) rotate(240deg);
                    opacity: 0.4;
                }

                100% {
                    transform: scale(1) rotate(360deg);
                    opacity: 0.6;
                }
            }

            /* ===== AMBIENT PULSING LIGHT EFFECTS ===== */
            @keyframes ambientPulse {
                0% {
                    box-shadow:
                        0 0 10px rgba(207, 181, 59, 0.2),
                        0 0 20px rgba(207, 181, 59, 0.1),
                        0 0 30px rgba(207, 181, 59, 0.05);
                }

                50% {
                    box-shadow:
                        0 0 15px rgba(207, 181, 59, 0.3),
                        0 0 25px rgba(207, 181, 59, 0.15),
                        0 0 35px rgba(207, 181, 59, 0.08);
                }

                100% {
                    box-shadow:
                        0 0 10px rgba(207, 181, 59, 0.2),
                        0 0 20px rgba(207, 181, 59, 0.1),
                        0 0 30px rgba(207, 181, 59, 0.05);
                }
            }

            @keyframes ambientPulseCyan {
                0% {
                    box-shadow:
                        0 0 8px rgba(0, 255, 255, 0.15),
                        0 0 16px rgba(0, 255, 255, 0.08),
                        0 0 24px rgba(0, 255, 255, 0.04);
                }

                50% {
                    box-shadow:
                        0 0 12px rgba(0, 255, 255, 0.25),
                        0 0 20px rgba(0, 255, 255, 0.12),
                        0 0 28px rgba(0, 255, 255, 0.06);
                }

                100% {
                    box-shadow:
                        0 0 8px rgba(0, 255, 255, 0.15),
                        0 0 16px rgba(0, 255, 255, 0.08),
                        0 0 24px rgba(0, 255, 255, 0.04);
                }
            }

            @keyframes ambientPulsePurple {
                0% {
                    box-shadow:
                        0 0 6px rgba(138, 43, 226, 0.12),
                        0 0 12px rgba(138, 43, 226, 0.06),
                        0 0 18px rgba(138, 43, 226, 0.03);
                }

                50% {
                    box-shadow:
                        0 0 10px rgba(138, 43, 226, 0.2),
                        0 0 16px rgba(138, 43, 226, 0.1),
                        0 0 22px rgba(138, 43, 226, 0.05);
                }

                100% {
                    box-shadow:
                        0 0 6px rgba(138, 43, 226, 0.12),
                        0 0 12px rgba(138, 43, 226, 0.06),
                        0 0 18px rgba(138, 43, 226, 0.03);
                }
            }

            /* Apply ambient effects to key elements */
            .composer {
                animation: ambientPulse 3s ease-in-out infinite;
            }

            .post-card {
                animation: ambientPulseCyan 4s ease-in-out infinite;
                animation-delay: 0.5s;
            }

            .post-card:nth-child(even) {
                animation: ambientPulsePurple 3.5s ease-in-out infinite;
                animation-delay: 1s;
            }

            .like-button,
            .dislike-button {
                transition: box-shadow 0.3s ease;
            }

            .like-button:hover {
                animation: ambientPulse 1s ease-in-out infinite;
            }

            .dislike-button:hover {
                animation: ambientPulsePurple 1s ease-in-out infinite;
            }

            /* Gear button ambient effect */
            .gear-button {
                animation: ambientPulseCyan 5s ease-in-out infinite;
                animation-delay: 2s;
            }

            /* ===== TYPING SPARKLES ===== */
            .typing-sparkles-container {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                overflow: hidden;
                z-index: 10;
            }

            .typing-sparkle {
                position: absolute;
                width: 4px;
                height: 4px;
                background: rgba(207, 181, 59, 0.8);
                border-radius: 50%;
                opacity: 0;
                animation: sparkleAppear 0.8s ease-out forwards;
                box-shadow: 0 0 6px rgba(207, 181, 59, 0.6);
            }

            .typing-sparkle.white {
                background: rgba(255, 255, 255, 0.9);
                box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
            }

            .typing-sparkle.cyan {
                background: rgba(0, 255, 255, 0.7);
                box-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
            }

            @keyframes sparkleAppear {
                0% {
                    opacity: 0;
                    transform: scale(0) rotate(0deg) translateY(0);
                }

                30% {
                    opacity: 1;
                    transform: scale(1.2) rotate(180deg) translateY(-5px);
                }

                100% {
                    opacity: 0;
                    transform: scale(0) rotate(360deg) translateY(-15px);
                }
            }

            /* Composer positioning for sparkles - REMOVED: conflicted with FAB floating position:fixed */

            /* ===== PARALLAX SCROLLING STARS ===== */
            .parallax-stars {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                z-index: 0;
                overflow: hidden;
            }

            .parallax-layer {
                position: absolute;
                width: 100%;
                height: 120%;
                /* Extra height for parallax movement */
                transition: transform 0.1s ease-out;
            }

            .parallax-star {
                position: absolute;
                border-radius: 50%;
                opacity: 0;
                animation: parallaxTwinkle 3s ease-in-out infinite;
                clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
                transition: transform 0.1s ease-out;
            }

            .parallax-star.layer-back {
                width: 2px;
                height: 2px;
                background: rgba(255, 255, 255, 0.4);
                box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
            }

            .parallax-star.layer-mid {
                width: 3px;
                height: 3px;
                background: rgba(207, 181, 59, 0.6);
                box-shadow: 0 0 6px rgba(207, 181, 59, 0.4);
            }

            .parallax-star.layer-front {
                width: 4px;
                height: 4px;
                background: rgba(0, 255, 255, 0.7);
                box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
            }

            @keyframes parallaxTwinkle {

                0%,
                100% {
                    opacity: 0.3;
                    transform: scale(0.8) rotate(0deg);
                }

                50% {
                    opacity: 1;
                    transform: scale(1.2) rotate(180deg);
                }
            }

            /* Individual parallax star animations */
            .parallax-star:nth-child(1) {
                animation-delay: 0s;
            }

            .parallax-star:nth-child(2) {
                animation-delay: 0.5s;
            }

            .parallax-star:nth-child(3) {
                animation-delay: 1s;
            }

            .parallax-star:nth-child(4) {
                animation-delay: 1.5s;
            }

            .parallax-star:nth-child(5) {
                animation-delay: 2s;
            }

            .parallax-star:nth-child(6) {
                animation-delay: 2.5s;
            }

            .parallax-star:nth-child(7) {
                animation-delay: 0.2s;
            }

            .parallax-star:nth-child(8) {
                animation-delay: 0.7s;
            }

            .parallax-star:nth-child(9) {
                animation-delay: 1.2s;
            }

            .parallax-star:nth-child(10) {
                animation-delay: 1.7s;
            }

            .parallax-star:nth-child(11) {
                animation-delay: 2.2s;
            }

            .parallax-star:nth-child(12) {
                animation-delay: 2.7s;
            }

            .parallax-star:nth-child(13) {
                animation-delay: 0.3s;
            }

            .parallax-star:nth-child(14) {
                animation-delay: 0.8s;
            }

            .parallax-star:nth-child(15) {
                animation-delay: 1.3s;
            }

            /* ===== REACTION ENERGY BURSTS ===== */
            .energy-burst {
                position: absolute;
                top: 50%;
                left: 50%;
                width: 0;
                height: 0;
                border-radius: 50%;
                pointer-events: none;
                z-index: 100;
                transform: translate(-50%, -50%);
            }

            .energy-burst.like-burst {
                background: radial-gradient(circle,
                        rgba(207, 181, 59, 1) 0%,
                        rgba(207, 181, 59, 0.6) 30%,
                        rgba(255, 215, 0, 0.3) 60%,
                        transparent 80%);
                animation: likeEnergyBurst 1.2s ease-out forwards;
                box-shadow: 0 0 40px rgba(207, 181, 59, 0.9);
            }

            .energy-burst.dislike-burst {
                background: radial-gradient(circle,
                        rgba(220, 53, 69, 1) 0%,
                        rgba(220, 53, 69, 0.6) 30%,
                        rgba(255, 69, 0, 0.3) 60%,
                        transparent 80%);
                animation: dislikeEnergyBurst 1.2s ease-out forwards;
                box-shadow: 0 0 40px rgba(220, 53, 69, 0.9);
            }

            @keyframes likeEnergyBurst {
                0% {
                    width: 0;
                    height: 0;
                    opacity: 1;
                    transform: translate(-50%, -50%) scale(0) rotate(0deg);
                    box-shadow: 0 0 0 rgba(207, 181, 59, 0);
                }

                20% {
                    width: 60px;
                    height: 60px;
                    opacity: 1;
                    transform: translate(-50%, -50%) scale(1.5) rotate(120deg);
                    box-shadow: 0 0 30px rgba(207, 181, 59, 0.8);
                }

                50% {
                    width: 100px;
                    height: 100px;
                    opacity: 0.9;
                    transform: translate(-50%, -50%) scale(2) rotate(240deg);
                    box-shadow: 0 0 50px rgba(207, 181, 59, 0.6);
                }

                100% {
                    width: 150px;
                    height: 150px;
                    opacity: 0;
                    transform: translate(-50%, -50%) scale(3) rotate(360deg);
                    box-shadow: 0 0 80px rgba(207, 181, 59, 0);
                }
            }

            @keyframes dislikeEnergyBurst {
                0% {
                    width: 0;
                    height: 0;
                    opacity: 1;
                    transform: translate(-50%, -50%) scale(0) rotate(0deg);
                    box-shadow: 0 0 0 rgba(220, 53, 69, 0);
                }

                20% {
                    width: 60px;
                    height: 60px;
                    opacity: 1;
                    transform: translate(-50%, -50%) scale(1.5) rotate(-120deg);
                    box-shadow: 0 0 30px rgba(220, 53, 69, 0.8);
                }

                50% {
                    width: 100px;
                    height: 100px;
                    opacity: 0.9;
                    transform: translate(-50%, -50%) scale(2) rotate(-240deg);
                    box-shadow: 0 0 50px rgba(220, 53, 69, 0.6);
                }

                100% {
                    width: 150px;
                    height: 150px;
                    opacity: 0;
                    transform: translate(-50%, -50%) scale(3) rotate(-360deg);
                    box-shadow: 0 0 80px rgba(220, 53, 69, 0);
                }
            }

            /* Energy particles for burst effect */
            .energy-particle {
                position: absolute;
                width: 3px;
                height: 3px;
                border-radius: 50%;
                pointer-events: none;
                animation: energyParticleExplode 0.8s ease-out forwards;
            }

            .energy-particle.like-particle {
                background: rgba(207, 181, 59, 0.9);
                box-shadow: 0 0 4px rgba(207, 181, 59, 0.6);
            }

            .energy-particle.dislike-particle {
                background: rgba(220, 53, 69, 0.9);
                box-shadow: 0 0 4px rgba(220, 53, 69, 0.6);
            }

            @keyframes energyParticleExplode {
                0% {
                    opacity: 1;
                    transform: scale(0);
                    width: 3px;
                    height: 3px;
                }

                20% {
                    opacity: 1;
                    transform: scale(2);
                    width: 6px;
                    height: 6px;
                }

                50% {
                    opacity: 0.8;
                    transform: scale(1.5) translateX(calc(var(--particle-x, 0px) * 0.5)) translateY(calc(var(--particle-y, 0px) * 0.5));
                    width: 4px;
                    height: 4px;
                }

                100% {
                    opacity: 0;
                    transform: scale(0.3) translateX(var(--particle-x, 0px)) translateY(var(--particle-y, 0px));
                    width: 2px;
                    height: 2px;
                }
            }

            /* Futuristic Loading Screen */
            .futuristic-loader {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                z-index: 9999;
                display: flex;
                align-items: center;
                justify-content: center;
                background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
                opacity: 1;
                visibility: visible;
                transition: opacity 1s ease-out, visibility 1s ease-out;
            }

            .futuristic-loader.hidden {
                opacity: 0;
                visibility: hidden;
            }

            .loader-background {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                overflow: hidden;
            }

            .particle-field {
                position: absolute;
                width: 100%;
                height: 100%;
            }

            .particle {
                position: absolute;
                width: 2px;
                height: 2px;
                background: rgba(207, 181, 59, 0.6);
                border-radius: 50%;
                animation: float 6s infinite linear;
            }

            .particle:nth-child(1) {
                left: 20%;
                animation-delay: -1s;
                animation-duration: 4s;
            }

            .particle:nth-child(2) {
                left: 40%;
                animation-delay: -2s;
                animation-duration: 5s;
            }

            .particle:nth-child(3) {
                left: 60%;
                animation-delay: -3s;
                animation-duration: 6s;
            }

            .particle:nth-child(4) {
                left: 80%;
                animation-delay: -4s;
                animation-duration: 7s;
            }

            .particle:nth-child(5) {
                left: 90%;
                animation-delay: -5s;
                animation-duration: 4.5s;
            }

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

                10% {
                    opacity: 1;
                }

                90% {
                    opacity: 1;
                }

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

            .gradient-overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(45deg,
                        rgba(207, 181, 59, 0.03) 0%,
                        transparent 25%,
                        transparent 75%,
                        rgba(0, 255, 255, 0.03) 100%);
                animation: gradientShift 8s ease-in-out infinite alternate;
            }

            @keyframes gradientShift {
                0% {
                    background: linear-gradient(45deg,
                            rgba(207, 181, 59, 0.03) 0%,
                            transparent 50%,
                            rgba(0, 255, 255, 0.03) 100%);
                }

                100% {
                    background: linear-gradient(135deg,
                            rgba(0, 255, 255, 0.03) 0%,
                            transparent 50%,
                            rgba(207, 181, 59, 0.03) 100%);
                }
            }

            .loader-content {
                text-align: center;
                z-index: 10;
                position: relative;
            }

            .futuristic-title {
                font-size: clamp(2rem, 6vw, 4rem);
                font-weight: 900;
                letter-spacing: 0.1em;
                margin-bottom: 3rem;
                line-height: 1.1;
            }

            .title-word {
                display: block;
                background: linear-gradient(135deg,
                        #cfb53b 0%,
                        #ffd700 25%,
                        #00ffff 50%,
                        #cfb53b 75%,
                        #ffd700 100%);
                background-size: 300% 300%;
                background-clip: text;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                animation: titleGlow 3s ease-in-out infinite, backgroundShift 6s ease-in-out infinite;
                text-shadow: 0 0 30px rgba(207, 181, 59, 0.3);
                position: relative;
                opacity: 0;
                transform: translateY(30px);
                animation-fill-mode: forwards;
            }

            .title-word:first-child {
                animation-delay: 0.5s;
                margin-bottom: 0.2em;
            }

            .title-word:last-child {
                animation-delay: 0.8s;
                font-size: 0.85em;
                letter-spacing: 0.15em;
            }

            @keyframes titleGlow {

                0%,
                100% {
                    opacity: 1;
                    transform: translateY(0px);
                    filter: brightness(1) drop-shadow(0 0 20px rgba(207, 181, 59, 0.4));
                }

                50% {
                    opacity: 1;
                    transform: translateY(0px);
                    filter: brightness(1.2) drop-shadow(0 0 30px rgba(207, 181, 59, 0.6));
                }
            }

            @keyframes backgroundShift {
                0% {
                    background-position: 0% 50%;
                }

                50% {
                    background-position: 100% 50%;
                }

                100% {
                    background-position: 0% 50%;
                }
            }

            .progress-container {
                width: 100%;
                max-width: 400px;
                margin: 0 auto;
            }

            .progress-bar {
                width: 100%;
                height: 4px;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 10px;
                position: relative;
                overflow: hidden;
                box-shadow:
                    inset 0 0 10px rgba(0, 0, 0, 0.5),
                    0 0 20px rgba(207, 181, 59, 0.1);
            }

            .progress-fill {
                height: 100%;
                width: 0%;
                background: linear-gradient(90deg,
                        transparent 0%,
                        #cfb53b 30%,
                        #ffd700 50%,
                        #00ffff 70%,
                        #cfb53b 100%);
                background-size: 200% 100%;
                border-radius: 10px;
                position: relative;
                animation: progressFill 3s ease-out forwards, progressShimmer 2s linear infinite;
                animation-delay: 1.2s, 1.2s;
            }

            .progress-glow {
                position: absolute;
                top: -2px;
                left: 0;
                height: 8px;
                width: 0%;
                background: linear-gradient(90deg, transparent, rgba(207, 181, 59, 0.6), transparent);
                border-radius: 10px;
                filter: blur(3px);
                animation: progressFill 3s ease-out forwards, glowPulse 1.5s ease-in-out infinite;
                animation-delay: 1.2s, 2s;
            }

            @keyframes progressFill {
                0% {
                    width: 0%;
                }

                100% {
                    width: 100%;
                }
            }

            @keyframes progressShimmer {
                0% {
                    background-position: -200% 0;
                }

                100% {
                    background-position: 200% 0;
                }
            }

            @keyframes glowPulse {

                0%,
                100% {
                    opacity: 0.6;
                }

                50% {
                    opacity: 1;
                }
            }

            .progress-text {
                margin-top: 1.5rem;
                font-size: 0.9rem;
                color: rgba(207, 181, 59, 0.8);
                font-weight: 500;
                letter-spacing: 0.1em;
                text-transform: uppercase;
                opacity: 0;
                animation: fadeInUp 0.8s ease-out forwards;
                animation-delay: 1.5s;
            }

             /* Loading screen palette */
             .futuristic-loader {
                 background: #F8EFE8;
             }

             .loader-background {
                 background: #F8EFE8;
             }

             .futuristic-title .title-word {
                 background: transparent;
                 background-image: none;
                 background-clip: initial;
                 -webkit-background-clip: initial;
                 -webkit-text-fill-color: #000;
                 color: #000;
                 text-shadow: none;
                 filter: none;
             }

             .futuristic-loader .progress-bar {
                 background: #d8cbc1;
                 border: 2px solid #000;
                 box-shadow: none;
                 height: 12px;
             }

             .futuristic-loader .progress-fill {
                 background: #000;
                 background-image: none;
                 border-radius: 0;
             }

             .futuristic-loader .progress-glow {
                 background: #000;
                 filter: none;
             }

             .futuristic-loader .progress-text {
                 color: #000;
                 opacity: 1;
                 text-shadow: none;
             }

            @keyframes fadeInUp {
                0% {
                    opacity: 0;
                    transform: translateY(20px);
                }

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

            /* Mobile optimizations */
            @media (max-width: 768px) {
                .futuristic-title {
                    font-size: clamp(1.5rem, 9vw, 2.8rem);
                    margin-bottom: 2rem;
                }

                .progress-container {
                    max-width: 300px;
                }

                .particle {
                    width: 1px;
                    height: 1px;
                }
            }

            /* ===== VIEW LIKERS MODAL STYLING ===== */
            .modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0, 0, 0, 0.9);
                backdrop-filter: blur(10px);
                z-index: 10000;
                display: none;
                justify-content: center;
                align-items: center;
                padding: 20px;
                box-sizing: border-box;
                opacity: 0;
                transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
            }

            .modal-overlay.show {
                display: flex;
                opacity: 1;
            }

            .premium-modal {
                background: linear-gradient(135deg,
                        rgba(0, 0, 0, 0.95) 0%,
                        rgba(20, 20, 20, 0.95) 50%,
                        rgba(0, 0, 0, 0.98) 100%);
                border: 2px solid transparent;
                background-clip: padding-box;
                border-radius: 16px;
                max-width: 500px;
                width: 100%;
                max-height: 80vh;
                overflow: hidden;
                position: relative;
                transform: scale(0.8) translateY(50px);
                transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
                box-shadow:
                    0 0 30px rgba(207, 181, 59, 0.3),
                    0 0 60px rgba(0, 255, 255, 0.2),
                    0 0 90px rgba(147, 112, 219, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
            }

            .modal-overlay.show .premium-modal {
                transform: scale(1) translateY(0);
            }

            .modal-backdrop {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: -1;
            }

            .modal-header {
                background: linear-gradient(90deg,
                        rgba(207, 181, 59, 0.2) 0%,
                        rgba(0, 255, 255, 0.1) 50%,
                        rgba(207, 181, 59, 0.2) 100%);
                padding: 20px 24px;
                border-bottom: 1px solid rgba(207, 181, 59, 0.3);
                display: flex;
                justify-content: space-between;
                align-items: center;
                position: relative;
            }

            .modal-header::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 2px;
                background: linear-gradient(90deg,
                        transparent 0%,
                        #cfb53b 20%,
                        #00ffff 50%,
                        #cfb53b 80%,
                        transparent 100%);
                animation: headerShimmer 3s ease-in-out infinite;
            }

            .modal-title {
                color: #cfb53b;
                font-size: 1.3rem;
                font-weight: 700;
                margin: 0;
                letter-spacing: 1px;
                text-shadow:
                    0 0 10px rgba(207, 181, 59, 0.6),
                    0 0 20px rgba(207, 181, 59, 0.3);
            }

            .modal-close-btn {
                background: none;
                border: 2px solid rgba(207, 181, 59, 0.4);
                color: #cfb53b;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                cursor: pointer;
                font-size: 1.5rem;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
                padding: 0;
                line-height: 1;
            }

            .modal-close-btn:hover {
                background: rgba(207, 181, 59, 0.2);
                border-color: #cfb53b;
                transform: rotate(90deg);
                box-shadow: 0 0 15px rgba(207, 181, 59, 0.5);
            }

            .modal-body {
                padding: 24px;
                max-height: 60vh;
                overflow-y: auto;
            }

            .loading-spinner-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 40px 20px;
                gap: 16px;
            }

            .loading-spinner-container p {
                color: rgba(207, 181, 59, 0.8);
                font-size: 0.95rem;
            }

            .likers-list {
                list-style: none;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .liker-item {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 12px;
                background: rgba(255, 255, 255, 0.03);
                border: 1px solid rgba(207, 181, 59, 0.2);
                border-radius: 8px;
                transition: all 0.3s ease;
            }

            .liker-item:hover {
                background: rgba(207, 181, 59, 0.1);
                border-color: rgba(207, 181, 59, 0.4);
                transform: translateX(4px);
                box-shadow: 0 0 15px rgba(207, 181, 59, 0.2);
            }

            .liker-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                overflow: hidden;
                flex-shrink: 0;
                border: 2px solid rgba(207, 181, 59, 0.3);
            }

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

            .liker-avatar .avatar-placeholder {
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(135deg, rgba(207, 181, 59, 0.3), rgba(0, 255, 255, 0.2));
                color: #cfb53b;
                font-weight: 700;
                font-size: 1.2rem;
            }

            .liker-info {
                display: flex;
                align-items: center;
                gap: 8px;
                flex: 1;
            }

            .liker-name {
                color: #fff;
                font-size: 1rem;
                font-weight: 500;
            }

            .empty-state-message {
                text-align: center;
                padding: 40px 20px;
                color: rgba(207, 181, 59, 0.6);
            }

            .error-message {
                text-align: center;
                padding: 40px 20px;
                color: rgba(255, 100, 100, 0.8);
            }

            /* Mobile optimizations for likers modal */
            @media (max-width: 768px) {
                .premium-modal {
                    max-width: 95%;
                    margin: 10px;
                }

                .modal-title {
                    font-size: 1.1rem;
                }

                .liker-item {
                    padding: 10px;
                }

                .liker-avatar {
                    width: 36px;
                    height: 36px;
                }

                .liker-name {
                    font-size: 0.95rem;
                }
            }

            /* ===========================
   COMMENT 3-DOT MENU STYLING
   =========================== */

            /* Comment meta flex layout */
            .comment-meta {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 8px;
            }

            .comment-meta-left {
                display: flex;
                align-items: center;
                gap: 8px;
                flex: 1;
            }

            /* Comment menu container */
            .comment-menu-container {
                position: relative;
                display: flex;
                align-items: center;
            }

            /* 3-dot button */
            .comment-menu-btn {
                background: none;
                border: none;
                color: var(--muted-text);
                cursor: pointer;
                padding: 4px;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s ease;
                opacity: 0.6;
            }

            .comment-menu-btn:hover {
                background: var(--hover-bg, rgba(207, 181, 59, 0.1));
                color: var(--gold);
                opacity: 1;
                transform: scale(1.1);
            }

            .comment-menu-btn:active {
                transform: scale(0.95);
            }

            /* Dropdown menu */
            .comment-menu-dropdown {
                position: absolute;
                top: 100%;
                /* Shows below button */
                right: 0;
                margin-top: 4px;
                background: var(--card-bg, #1a1a2e);
                border: 1px solid var(--border-color, rgba(207, 181, 59, 0.2));
                border-radius: 8px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(207, 181, 59, 0.1);
                min-width: 140px;
                overflow: visible;
                z-index: 9999;
                /* Higher z-index to appear above scroll containers */
                opacity: 0;
                visibility: hidden;
                transform: translateY(-8px) scale(0.95);
                transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
                pointer-events: none;
                /* Allow clicks to pass through when hidden */
            }

            .comment-menu-dropdown.active {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) scale(1);
                pointer-events: auto;
                /* Enable clicks when visible */
            }

            /* Menu items */
            .comment-menu-item {
                display: flex;
                align-items: center;
                gap: 10px;
                width: 100%;
                padding: 10px 14px;
                background: none;
                border: none;
                color: var(--text-color);
                font-size: 14px;
                text-align: left;
                cursor: pointer;
                transition: all 0.2s ease;
                border-bottom: 1px solid rgba(207, 181, 59, 0.1);
            }

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

            .comment-menu-item:hover {
                background: linear-gradient(135deg,
                        rgba(207, 181, 59, 0.15),
                        rgba(147, 51, 234, 0.1));
                color: var(--gold);
                transform: translateX(3px);
            }

            .comment-menu-item svg {
                flex-shrink: 0;
            }

            .comment-menu-item span {
                flex: 1;
            }

            /* Delete item special styling */
            .comment-menu-item-delete:hover {
                background: linear-gradient(135deg,
                        rgba(239, 68, 68, 0.15),
                        rgba(220, 38, 38, 0.1));
                color: #ef4444;
            }

            /* Prevent menu from being too wide on mobile */
            @media (max-width: 640px) {
                .comment-menu-dropdown {
                    min-width: 120px;
                }

                .comment-menu-item {
                    padding: 8px 12px;
                    font-size: 13px;
                }
            }


            /* UNAPOLOGETIC STYLE REFRESH */

            :root {
                --u-ink: #111111;
                --u-cream: #f8efe8;
                --u-paper: #ffffff;
                --u-coral: #ff5a4f;
                --u-yellow: #ffd447;
                --u-pink: #f04ba8;
                --u-cyan: #35d8e8;
                --u-muted: #5e5854;
            }

            html,
            body {
                background: var(--u-cream) !important;
                color: var(--u-ink) !important;
                overflow-x: hidden;
            }

            body {
                font-family: Arial, Helvetica, sans-serif !important;
                line-height: 1.45;
            }

            button,
            input,
            textarea,
            select {
                font: inherit;
            }

            .aurora-background,
            .parallax-stars,
            .cosmic-background,
            .header-stars,
            .composer-stars,
            .typing-sparkles-container,
            .nebula-glow,
            .cosmic-dot {
                display: none !important;
            }

            .app-container {
                width: 100%;
                min-height: 100dvh;
                overflow-x: clip;
                background: var(--u-cream) !important;
                position: relative;
            }

            .app-container::before,
            .app-container::after {
                content: "";
                position: fixed;
                z-index: 0;
                pointer-events: none;
            }

            .app-container::before {
                width: 92px;
                height: 92px;
                border: 7px solid var(--u-ink);
                background: var(--u-pink);
                left: -44px;
                top: 34vh;
                transform: rotate(14deg);
            }

            .app-container::after {
                width: 120px;
                height: 28px;
                background: var(--u-cyan);
                border: 5px solid var(--u-ink);
                right: -52px;
                bottom: 18vh;
                transform: rotate(-12deg);
            }

            .header {
                position: relative !important;
                z-index: 4;
                width: min(1120px, calc(100% - 28px));
                margin: 18px auto 34px !important;
                padding: 22px 24px 20px !important;
                background: var(--u-ink) !important;
                border: 5px solid var(--u-ink) !important;
                border-radius: 26px !important;
                box-shadow: 9px 9px 0 var(--u-coral), 14px 14px 0 var(--u-yellow) !important;
                overflow: visible !important;
            }

            .header::before {
                content: "THE CONVERSATION";
                display: inline-block;
                margin: -38px 0 12px -8px;
                padding: 7px 11px 6px;
                color: var(--u-ink);
                background: var(--u-yellow);
                border: 4px solid var(--u-ink);
                font: 900 13px/1 Arial Black, Arial, sans-serif;
                letter-spacing: .12em;
                transform: rotate(-2deg);
            }

            .header-content {
                width: 100% !important;
                max-width: none !important;
                margin: 0 !important;
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) auto auto;
                align-items: center !important;
                gap: 16px !important;
            }

            .title-section {
                min-width: 0;
            }

            .logo-text {
                margin: 0 !important;
                color: var(--u-cream) !important;
                font-family: Arial Black, Arial, Helvetica, sans-serif !important;
                font-size: clamp(28px, 5vw, 56px) !important;
                font-weight: 900 !important;
                line-height: .94 !important;
                letter-spacing: -.055em !important;
                text-transform: uppercase;
                text-shadow: none !important;
            }

            .intro-text {
                max-width: 760px;
                margin: 13px 0 0 !important;
                color: var(--u-cream) !important;
                font-size: clamp(12px, 1.5vw, 15px) !important;
                font-weight: 700 !important;
                line-height: 1.42 !important;
                letter-spacing: .035em !important;
                text-transform: none !important;
                opacity: 1 !important;
            }

            .user-status-badge {
                min-width: 128px;
                padding: 9px 12px !important;
                color: var(--u-ink) !important;
                background: var(--u-cyan) !important;
                border: 4px solid var(--u-cream) !important;
                border-radius: 999px !important;
                box-shadow: 4px 4px 0 var(--u-pink) !important;
                transform: rotate(1deg);
            }

            .user-badge-glow {
                display: none !important;
            }

            .user-badge-icon {
                color: var(--u-ink) !important;
                filter: grayscale(1) contrast(2);
            }

            .user-badge-name,
            .user-badge-status {
                color: var(--u-ink) !important;
                font-family: Arial Black, Arial, sans-serif !important;
                font-weight: 900 !important;
                letter-spacing: .04em !important;
            }

            .settings-container {
                position: relative !important;
                flex: 0 0 auto;
            }

            .settings-button {
                width: 48px !important;
                height: 48px !important;
                color: var(--u-ink) !important;
                background: var(--u-coral) !important;
                border: 4px solid var(--u-cream) !important;
                border-radius: 14px !important;
                box-shadow: 4px 4px 0 var(--u-yellow) !important;
                transition: transform .16s ease, box-shadow .16s ease !important;
            }

            .settings-button:hover,
            .settings-button:focus-visible {
                transform: rotate(7deg) translate(-1px, -1px) !important;
                box-shadow: 6px 6px 0 var(--u-yellow) !important;
            }

            .settings-menu {
                color: var(--u-ink) !important;
                background: var(--u-paper) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 16px !important;
                box-shadow: 7px 7px 0 var(--u-pink) !important;
            }

            .menu-item {
                color: var(--u-ink) !important;
                font-weight: 800 !important;
            }

            .menu-item:hover {
                background: var(--u-yellow) !important;
            }

            .content-wrapper {
                position: relative;
                z-index: 2;
                width: min(920px, calc(100% - 28px));
                margin: 0 auto !important;
            }

            .main {
                width: 100% !important;
                margin: 0 !important;
                padding: 0 0 24px !important;
            }

            .pull-refresh-indicator {
                color: var(--u-ink) !important;
                background: var(--u-yellow) !important;
                border: 3px solid var(--u-ink) !important;
            }

            .post-card {
                position: relative;
                margin: 0 0 22px !important;
                padding: clamp(18px, 4vw, 30px) !important;
                color: var(--u-ink) !important;
                background: var(--u-paper) !important;
                border: 5px solid var(--u-ink) !important;
                border-radius: 22px !important;
                box-shadow: 8px 8px 0 var(--u-ink) !important;
                overflow-wrap: anywhere;
                animation: uFloat 5.8s ease-in-out infinite;
            }

            .post-card:nth-child(3n+2) {
                box-shadow: 8px 8px 0 var(--u-pink) !important;
                animation-delay: -1.8s;
            }

            .post-card:nth-child(3n+3) {
                box-shadow: 8px 8px 0 var(--u-cyan) !important;
                animation-delay: -3.2s;
            }

            .post-card a {
                color: #b51e5e !important;
                font-weight: 900;
                text-decoration-thickness: 3px;
                text-underline-offset: 3px;
            }

            .loading-skeleton {
                background: var(--u-ink) !important;
                opacity: .16 !important;
                border-radius: 0 !important;
            }

            .skeleton-avatar {
                background: var(--u-coral) !important;
                border: 4px solid var(--u-ink);
                opacity: 1 !important;
            }

            .skeleton-post {
                gap: 16px !important;
            }

            .empty-state,
            .notification,
            .info {
                color: var(--u-ink) !important;
                background: var(--u-yellow) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 16px !important;
                box-shadow: 6px 6px 0 var(--u-ink) !important;
                font-weight: 800 !important;
            }

            .retry-btn,
            .load-more-btn {
                color: var(--u-cream) !important;
                background: var(--u-ink) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 12px !important;
                font-family: Arial Black, Arial, sans-serif !important;
                text-transform: uppercase;
                box-shadow: 4px 4px 0 var(--u-coral) !important;
            }

            .composer {
                position: relative !important;
                z-index: 3;
                width: min(920px, calc(100% - 28px)) !important;
                margin: 12px auto 40px !important;
                padding: 0 !important;
                background: transparent !important;
            }

            .composer-card {
                position: relative;
                padding: 24px !important;
                background: var(--u-coral) !important;
                border: 5px solid var(--u-ink) !important;
                border-radius: 24px !important;
                box-shadow: 9px 9px 0 var(--u-ink), 14px 14px 0 var(--u-pink) !important;
                overflow: visible !important;
            }

            .composer-card::before {
                content: "SAY SOMETHING";
                display: inline-block;
                margin: -42px 0 16px -10px;
                padding: 7px 12px 6px;
                color: var(--u-ink);
                background: var(--u-cyan);
                border: 4px solid var(--u-ink);
                font: 900 14px/1 Arial Black, Arial, sans-serif;
                letter-spacing: .1em;
                transform: rotate(-1.5deg);
            }

            .composer-scrollable-container,
            .composer-input-area,
            .composer-footer {
                background: transparent !important;
            }

            .composer-textarea,
            .title-input,
            .poll-option-input {
                width: 100% !important;
                color: var(--u-ink) !important;
                background: var(--u-paper) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 14px !important;
                box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08) !important;
                font-size: 16px !important;
                font-weight: 700 !important;
            }

            .composer-textarea::placeholder,
            .title-input::placeholder,
            .poll-option-input::placeholder {
                color: #645a55 !important;
                opacity: 1 !important;
            }

            .title-toggle-btn,
            .poll-toggle-btn,
            .image-upload-btn,
            .post-btn {
                min-height: 44px;
                color: var(--u-ink) !important;
                background: var(--u-yellow) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 12px !important;
                font-family: Arial Black, Arial, sans-serif !important;
                font-weight: 900 !important;
                text-transform: uppercase !important;
                box-shadow: 4px 4px 0 var(--u-ink) !important;
                transition: transform .15s ease, box-shadow .15s ease !important;
            }

            .poll-toggle-btn {
                background: var(--u-cyan) !important;
            }

            .image-upload-btn {
                background: var(--u-paper) !important;
            }

            .post-btn {
                background: var(--u-ink) !important;
                color: var(--u-cream) !important;
                box-shadow: 4px 4px 0 var(--u-yellow) !important;
            }

            .title-toggle-btn:hover,
            .poll-toggle-btn:hover,
            .image-upload-btn:hover,
            .post-btn:not(:disabled):hover {
                transform: translate(-2px, -2px) rotate(-1deg) !important;
            }

            .post-btn:disabled {
                opacity: .48 !important;
                cursor: not-allowed !important;
            }

            .character-count {
                color: var(--u-ink) !important;
                font-weight: 900 !important;
            }

            .fab-button {
                right: 20px !important;
                bottom: 22px !important;
                width: 62px !important;
                height: 62px !important;
                color: var(--u-ink) !important;
                background: var(--u-yellow) !important;
                border: 5px solid var(--u-ink) !important;
                border-radius: 50% !important;
                box-shadow: 6px 6px 0 var(--u-coral) !important;
            }

            .username-modal,
            .rules-modal-container,
            .handle-claim-container {
                background: rgba(17, 17, 17, .78) !important;
                backdrop-filter: blur(3px);
            }

            .username-modal-content,
            .handle-claim-content {
                width: min(560px, calc(100% - 30px)) !important;
                color: var(--u-ink) !important;
                background: var(--u-cream) !important;
                border: 5px solid var(--u-ink) !important;
                border-radius: 24px !important;
                box-shadow: 10px 10px 0 var(--u-pink), 16px 16px 0 var(--u-yellow) !important;
                overflow: visible !important;
            }

            .username-modal-header,
            .handle-claim-header {
                color: var(--u-cream) !important;
                background: var(--u-ink) !important;
                border-radius: 16px 16px 0 0 !important;
                padding: 24px !important;
            }

            .username-modal-header h2,
            .handle-claim-header h2 {
                margin: 0 0 9px !important;
                color: var(--u-cream) !important;
                font-family: Arial Black, Arial, sans-serif !important;
                font-size: clamp(24px, 6vw, 42px) !important;
                font-weight: 900 !important;
                line-height: .96 !important;
                letter-spacing: -.04em !important;
                text-transform: uppercase;
            }

            .username-modal-header p,
            .handle-claim-header p {
                color: var(--u-cream) !important;
                font-weight: 700 !important;
            }

            .username-form,
            .handle-claim-body {
                padding: 24px !important;
            }

            .username-input,
            .form-input {
                min-height: 52px;
                color: var(--u-ink) !important;
                background: var(--u-paper) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 12px !important;
                font-size: 17px !important;
                font-weight: 800 !important;
            }

            .username-hint,
            .form-label {
                color: var(--u-muted) !important;
                font-weight: 700 !important;
            }

            .username-btn-primary,
            .claim-handle-btn {
                min-height: 50px;
                color: var(--u-ink) !important;
                background: var(--u-yellow) !important;
                border: 4px solid var(--u-ink) !important;
                border-radius: 12px !important;
                box-shadow: 5px 5px 0 var(--u-coral) !important;
                font-family: Arial Black, Arial, sans-serif !important;
                font-weight: 900 !important;
                text-transform: uppercase;
            }

            .close-modal {
                color: var(--u-cream) !important;
                background: var(--u-coral) !important;
                border: 3px solid var(--u-cream) !important;
            }

            @keyframes uFloat {

                0%,
                100% {
                    transform: translateY(0);
                }

                50% {
                    transform: translateY(-3px);
                }
            }

            @media (max-width: 720px) {
                .header {
                    width: calc(100% - 20px);
                    margin: 12px auto 26px !important;
                    padding: 18px 16px 16px !important;
                    border-radius: 20px !important;
                    box-shadow: 6px 6px 0 var(--u-coral), 10px 10px 0 var(--u-yellow) !important;
                }

                .header::before {
                    margin: -32px 0 10px -5px;
                    font-size: 11px;
                }

                .header-content {
                    grid-template-columns: minmax(0, 1fr) auto !important;
                    gap: 10px !important;
                }

                .title-section {
                    grid-column: 1 / -1;
                }

                .logo-text {
                    font-size: clamp(30px, 10vw, 44px) !important;
                }

                .intro-text {
                    max-width: none;
                    font-size: 12px !important;
                }

                .user-status-badge {
                    justify-self: start;
                    min-width: 0;
                    max-width: calc(100vw - 92px);
                }

                .settings-container {
                    justify-self: end;
                }

                .content-wrapper,
                .composer {
                    width: calc(100% - 20px) !important;
                }

                .post-card {
                    padding: 17px !important;
                    border-width: 4px !important;
                    border-radius: 18px !important;
                    box-shadow: 6px 6px 0 var(--u-ink) !important;
                }

                .composer-card {
                    padding: 18px 14px !important;
                    border-width: 4px !important;
                    box-shadow: 6px 6px 0 var(--u-ink), 10px 10px 0 var(--u-pink) !important;
                }

                .composer-card::before {
                    margin-left: -3px;
                    font-size: 12px;
                }

                .composer-footer,
                .composer-actions {
                    gap: 10px !important;
                    flex-wrap: wrap !important;
                }

                .title-toggle-btn,
                .poll-toggle-btn,
                .image-upload-btn,
                .post-btn {
                    min-height: 42px;
                    padding: 8px 11px !important;
                    font-size: 12px !important;
                }

                .username-modal-content,
                .handle-claim-content {
                    box-shadow: 7px 7px 0 var(--u-pink), 11px 11px 0 var(--u-yellow) !important;
                }

                .username-modal-header,
                .username-form,
                .handle-claim-header,
                .handle-claim-body {
                    padding: 19px !important;
                }

                .app-container::before {
                    width: 62px;
                    height: 62px;
                }

                .app-container::after {
                    width: 82px;
                    height: 20px;
                }
            }

            @media (prefers-reduced-motion: reduce) {

                *,
                *::before,
                *::after {
                    scroll-behavior: auto !important;
                    animation-duration: .001ms !important;
                    animation-iteration-count: 1 !important;
                    transition-duration: .001ms !important;
                }
            }

            .username-modal-content,
            .handle-claim-content {
                max-width: 560px !important;
            }

            .username-modal-header h2,
            .handle-claim-header h2 {
                max-width: 100% !important;
                font-size: clamp(24px, 4vw, 34px) !important;
                overflow-wrap: anywhere !important;
                word-break: normal !important;
                white-space: normal !important;
            }

            @media (max-width: 480px) {

                .username-modal-header h2,
                .handle-claim-header h2 {
                    font-size: 26px !important;
                }
            }

            .logo-text {
                max-width: 100% !important;
                white-space: normal !important;
                overflow-wrap: normal !important;
                word-break: normal !important;
            }

            @media (max-width: 720px) {
                .logo-text {
                    font-size: clamp(27px, 9.2vw, 38px) !important;
                    line-height: .92 !important;
                }
            }

            @media (max-width: 720px) {

                .header .title-section,
                .header .title-section .logo-text {
                    width: 100% !important;
                    max-width: none !important;
                    min-width: 0 !important;
                    overflow: visible !important;
                    text-overflow: clip !important;
                    white-space: normal !important;
                    -webkit-line-clamp: unset !important;
                    line-clamp: unset !important;
                }
            }

            /* Clear, app-like writing sheet */
            .composer.active {
                position: fixed !important;
                inset: 0 !important;
                z-index: 1000 !important;
                width: 100% !important;
                height: 100dvh !important;
                max-height: none !important;
                margin: 0 !important;
                padding: max(18px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)) !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                background: rgba(17, 17, 17, .82) !important;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                backdrop-filter: blur(4px);
            }

            .composer.active .composer-card {
                width: min(620px, 100%) !important;
                max-height: calc(100dvh - 38px) !important;
                margin: auto !important;
                padding: 24px !important;
                color: var(--u-ink) !important;
                background: var(--u-cream) !important;
                border: 5px solid var(--u-ink) !important;
                border-radius: 24px !important;
                box-shadow: 9px 9px 0 var(--u-coral), 15px 15px 0 var(--u-yellow) !important;
                overflow-x: hidden !important;
                overflow-y: auto !important;
            }

            .composer.active .composer-card::before {
                margin: -8px 0 18px !important;
                color: var(--u-cream) !important;
                background: var(--u-ink) !important;
                transform: rotate(-1deg);
            }

            .composer.active .composer-form,
            .composer.active .composer-scrollable-container,
            .composer.active .composer-input-area {
                width: 100% !important;
                height: auto !important;
                max-height: none !important;
                min-height: 0 !important;
                overflow: visible !important;
            }

            .composer.active .composer-scrollable-container {
                display: block !important;
            }

            .composer.active .composer-input-area {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 12px !important;
            }

            .composer.active .title-toggle-btn,
            .composer.active .poll-toggle-btn {
                width: 100% !important;
                min-width: 0 !important;
                justify-content: center !important;
            }

            .composer.active .title-input-container,
            .composer.active .poll-toggle-container,
            .composer.active .poll-options-container,
            .composer.active .composer-textarea,
            .composer.active .image-preview-container,
            .composer.active .image-upload-progress,
            .composer.active .image-upload-error {
                grid-column: 1 / -1 !important;
            }

            .composer.active .composer-textarea {
                min-height: 170px !important;
                height: 170px !important;
                max-height: 40vh !important;
                resize: vertical !important;
                padding: 15px !important;
                border-radius: 16px !important;
                font-size: 17px !important;
                line-height: 1.45 !important;
            }

            .composer.active .composer-footer {
                position: static !important;
                width: 100% !important;
                height: auto !important;
                min-height: 0 !important;
                margin: 16px 0 0 !important;
                padding: 14px 0 0 !important;
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) auto !important;
                align-items: end !important;
                gap: 12px !important;
                border-top: 4px solid var(--u-ink) !important;
                background: transparent !important;
                overflow: visible !important;
            }

            .composer.active .composer-actions {
                width: 100% !important;
                height: auto !important;
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
                gap: 12px !important;
            }

            .composer.active .image-upload-btn,
            .composer.active .post-btn {
                width: 100% !important;
                min-width: 0 !important;
                min-height: 48px !important;
                justify-content: center !important;
                margin: 0 !important;
            }

            .composer.active .character-count {
                align-self: center !important;
                justify-self: end !important;
                padding: 0 2px 3px !important;
                white-space: nowrap !important;
            }

            .composer.active~.fab-button {
                z-index: 1100 !important;
                top: max(14px, env(safe-area-inset-top)) !important;
                right: 14px !important;
                bottom: auto !important;
                width: 54px !important;
                height: 54px !important;
                background: var(--u-coral) !important;
                box-shadow: 5px 5px 0 var(--u-yellow) !important;
            }

            /* Composer header row with close button */
            .composer-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 10px;
            }

            .composer-header-label {
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.12em;
                text-transform: uppercase;
                color: var(--u-ink);
                opacity: 0.6;
            }

            /* Hidden by default; shown only when composer is active */
            #composerCloseButton {
                display: none;
                align-items: center;
                justify-content: center;
                padding: 5px 12px;
                background: var(--u-coral, #ff6b6b);
                color: #000;
                border: 2px solid var(--u-ink, #000);
                border-radius: 6px;
                font-size: 13px;
                font-weight: 700;
                line-height: 1;
                cursor: pointer;
                z-index: 1200;
                flex-shrink: 0;
                pointer-events: auto;
            }

            #composerCloseButton:hover {
                background: #ff4f4f;
            }

            .composer-header-label {
                display: none;
            }

            .composer.active .composer-header-label,
            .composer.active #composerCloseButton {
                display: flex;
            }

            @media (max-width: 720px) {
                .composer.active {
                    align-items: flex-start !important;
                    padding: max(14px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom)) !important;
                }

                .composer.active .composer-card {
                    max-height: calc(100dvh - 28px) !important;
                    padding: 18px 14px 16px !important;
                    border-width: 4px !important;
                    border-radius: 20px !important;
                    box-shadow: 6px 6px 0 var(--u-coral), 10px 10px 0 var(--u-yellow) !important;
                }

                .composer.active .composer-card::before {
                    margin-bottom: 14px !important;
                }

                .composer.active .composer-input-area {
                    gap: 10px !important;
                }

                .composer.active .composer-textarea {
                    min-height: 150px !important;
                    height: 150px !important;
                    max-height: 34vh !important;
                    padding: 13px !important;
                    font-size: 16px !important;
                }

                .composer.active .composer-footer {
                    grid-template-columns: 1fr !important;
                    margin-top: 12px !important;
                    padding-top: 12px !important;
                    gap: 8px !important;
                }

                .composer.active .composer-actions {
                    grid-template-columns: 1fr 1fr !important;
                    gap: 9px !important;
                }

                .composer.active .character-count {
                    justify-self: end !important;
                    padding-bottom: 0 !important;
                }

                .composer.active~.fab-button {
                    width: 48px !important;
                    height: 48px !important;
                    top: max(8px, env(safe-area-inset-top)) !important;
                    right: 8px !important;
                }
            }

            .composer.active .title-toggle-container,
            .composer.active .poll-toggle-container {
                grid-column: auto !important;
                width: 100% !important;
                min-width: 0 !important;
            }

            .composer.active .title-toggle-container .title-toggle-btn,
            .composer.active .poll-toggle-container .poll-toggle-btn {
                width: 100% !important;
            }

            /* Natural document flow: the feed owns the page, closed composer owns no space */
            html,
            body {
                height: auto !important;
                min-height: 100% !important;
                overflow-x: hidden !important;
                overflow-y: auto !important;
            }

            .app-container {
                height: auto !important;
                min-height: 100dvh !important;
                overflow-x: clip !important;
                overflow-y: visible !important;
                margin-left: auto !important;
                margin-right: auto !important;
            }

            .content-wrapper {
                flex: 0 0 auto !important;
                width: min(920px, calc(100% - 28px)) !important;
                height: auto !important;
                min-height: 360px !important;
                overflow: visible !important;
            }

            .main {
                flex: 0 0 auto !important;
                width: 100% !important;
                height: auto !important;
                min-height: 320px !important;
                overflow: visible !important;
                padding-bottom: 34px !important;
            }

            .composer:not(.active) {
                display: none !important;
                width: 0 !important;
                height: 0 !important;
                min-height: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
            }

            /* Settings becomes a usable panel instead of an off-screen dropdown */
            .settings-menu:not(.hidden) {
                color: var(--u-ink) !important;
            }

            @media (max-width: 720px) {
                .header {
                    width: calc(100% - 20px) !important;
                    margin: 10px auto 22px !important;
                    padding: 13px 14px 13px !important;
                    border-width: 4px !important;
                    border-radius: 19px !important;
                }

                .header::before {
                    display: table !important;
                    margin: -27px auto 8px !important;
                    padding: 6px 9px 5px !important;
                    font-size: 10px !important;
                    letter-spacing: .1em !important;
                }

                .header-content {
                    display: grid !important;
                    grid-template-columns: minmax(0, 1fr) auto !important;
                    align-items: center !important;
                    gap: 8px 10px !important;
                }

                .title-section {
                    grid-column: 1 / -1 !important;
                    width: 100% !important;
                    text-align: center !important;
                }

                .logo-text {
                    width: 100% !important;
                    margin: 0 auto !important;
                    font-size: clamp(25px, 8.2vw, 34px) !important;
                    line-height: .92 !important;
                    text-align: center !important;
                }

                .intro-text {
                    width: 100% !important;
                    max-width: 330px !important;
                    margin: 7px auto 0 !important;
                    font-size: 11px !important;
                    line-height: 1.28 !important;
                    letter-spacing: .015em !important;
                    text-align: center !important;
                }

                .user-status-badge {
                    justify-self: end !important;
                    min-height: 42px !important;
                    padding: 6px 10px !important;
                }

                .settings-container {
                    justify-self: start !important;
                }

                .settings-button {
                    width: 42px !important;
                    height: 42px !important;
                    border-radius: 12px !important;
                }

                .content-wrapper {
                    width: calc(100% - 20px) !important;
                    min-height: 310px !important;
                    margin: 0 auto !important;
                }

                .main {
                    min-height: 280px !important;
                    padding-bottom: 28px !important;
                }

                .settings-menu:not(.hidden) {
                    position: fixed !important;
                    inset: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) 12px !important;
                    z-index: 1300 !important;
                    width: auto !important;
                    min-width: 0 !important;
                    max-width: none !important;
                    height: auto !important;
                    max-height: calc(100dvh - 24px) !important;
                    margin: 0 !important;
                    padding: 58px 12px 14px !important;
                    display: block !important;
                    overflow-x: hidden !important;
                    overflow-y: auto !important;
                    overscroll-behavior: contain;
                    -webkit-overflow-scrolling: touch;
                    color: var(--u-ink) !important;
                    background: var(--u-cream) !important;
                    border: 5px solid var(--u-ink) !important;
                    border-radius: 22px !important;
                    box-shadow: 8px 8px 0 var(--u-pink), 13px 13px 0 var(--u-yellow) !important;
                }

                .settings-menu:not(.hidden)::before {
                    content: "SETTINGS";
                    position: absolute;
                    top: 15px;
                    left: 16px;
                    right: 74px;
                    padding-bottom: 9px;
                    border-bottom: 4px solid var(--u-ink);
                    font: 900 22px/1 Arial Black, Arial, sans-serif;
                    letter-spacing: -.03em;
                }

                .settings-menu:not(.hidden) .menu-item {
                    width: 100% !important;
                    min-height: 48px !important;
                    margin: 0 0 8px !important;
                    padding: 11px 13px !important;
                    display: flex !important;
                    align-items: center !important;
                    color: var(--u-ink) !important;
                    background: var(--u-paper) !important;
                    border: 3px solid var(--u-ink) !important;
                    border-radius: 11px !important;
                    font-size: 14px !important;
                    font-weight: 900 !important;
                    line-height: 1.2 !important;
                    white-space: normal !important;
                    box-shadow: 3px 3px 0 var(--u-cyan) !important;
                }

                .settings-menu:not(.hidden) .menu-item:nth-child(3n+2) {
                    box-shadow: 3px 3px 0 var(--u-yellow) !important;
                }

                .settings-menu:not(.hidden) .menu-item:nth-child(3n+3) {
                    box-shadow: 3px 3px 0 var(--u-coral) !important;
                }

                .settings-container:has(.settings-menu:not(.hidden)) {
                    position: fixed !important;
                    top: max(22px, env(safe-area-inset-top)) !important;
                    right: 24px !important;
                    z-index: 1400 !important;
                }

                .settings-container:has(.settings-menu:not(.hidden)) .settings-button {
                    width: 42px !important;
                    height: 42px !important;
                    color: var(--u-cream) !important;
                    background: var(--u-coral) !important;
                    border-color: var(--u-ink) !important;
                    box-shadow: 4px 4px 0 var(--u-yellow) !important;
                }
            }

            @media (max-width: 720px) {
                .settings-menu:not(.hidden) {
                    top: max(12px, env(safe-area-inset-top)) !important;
                    bottom: auto !important;
                    height: calc(100dvh - 24px) !important;
                    min-height: 0 !important;
                    max-height: calc(100dvh - 24px) !important;
                    z-index: 1 !important;
                }

                .settings-container:has(.settings-menu:not(.hidden)) .settings-button {
                    position: fixed !important;
                    top: max(22px, env(safe-area-inset-top)) !important;
                    right: 24px !important;
                    z-index: 3 !important;
                }
            }

            @media (max-width: 720px) {
                body:has(.settings-menu:not(.hidden)) .fab-button {
                    display: none !important;
                }
            }

            .composer.active~.fab-button {
                position: fixed !important;
                top: max(10px, env(safe-area-inset-top)) !important;
                right: 10px !important;
                bottom: auto !important;
                z-index: 2000 !important;
                display: flex !important;
                background: var(--u-coral) !important;
                color: var(--u-cream) !important;
                border: 4px solid var(--u-ink) !important;
                box-shadow: 4px 4px 0 var(--u-yellow) !important;
            }

            /* Keep truncated posts clean; Show more handles expansion. */
            .post-text.truncated::after {
                display: none !important;
            }