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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #000;
            color: #f5f5f7;
            overflow-x: hidden;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 16px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #fff 0%, #999 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-links {
            display: flex;
            gap: 32px;
            align-items: center;
        }

        .nav-links a {
            color: #f5f5f7;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: opacity 0.3s;
        }

        .nav-links a:hover {
            opacity: 0.6;
        }

        .nav-links a.active {
            position: relative;
        }

        .nav-links a.active::after {
            content: '';
            position: absolute;
            bottom: -22px;
            left: 0;
            right: 0;
            height: 2px;
            background: #fff;
        }

        .cta-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .btn-primary {
            background: #fff;
            color: #000;
        }

        .btn-primary:hover {
            background: #e8e8ed;
        }

        .btn-secondary {
            background: transparent;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:hover {
            border-color: rgba(255, 255, 255, 0.6);
        }

        .btn-donate {
            background: linear-gradient(135deg, #8b0000 0%, #b30000 100%);
            color: #fff;
            box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
        }

        .btn-donate:hover {
            box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
            transform: translateY(-2px);
        }

        /* Hero Section */
        /* BUG FIX (not traced from the binary): 80px/60px padding plus a
           56px title made this section take up most of the first
           viewport on a normal laptop screen before any actual community
           content appeared. Trimmed to match the mobile breakpoint's own
           already-established, smaller proportions (see the 40px/48px
           rules below) rather than inventing new sizing from scratch. */
        .hero {
            margin-top: 60px;
            /* Was 48px top / 40px bottom with a 38px heading -- oversized
               for a section header. Tightened so it reads as a page header,
               not a splash. */
            padding: 32px 24px 28px;
            background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 40px;
            align-items: center;
        }

        .hero-text h1 {
            font-size: clamp(24px, 4vw, 30px);
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #fff 0%, #666 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-text p {
            font-size: 17px;
            color: #999;
            line-height: 1.6;
        }

        .hero-actions {
            display: flex;
            gap: 12px;
        }

        .btn-create {
            padding: 14px 32px;
            background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
            color: #fff;
            text-decoration: none;
            border-radius: 25px;
            font-weight: 700;
            font-size: 16px;
            transition: all 0.3s;
            box-shadow: 0 8px 30px rgba(139, 0, 0, 0.4);
            border: none;
            cursor: pointer;
        }

        .btn-create:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(139, 0, 0, 0.6);
        }

        /* Community Layout */
        /* Single column since the hardcoded channel sidebar was removed.
           This was "280px 1fr" for a sidebar that is no longer rendered --
           and which was already absent whenever Discord was unconfigured,
           so the discussions column was being squeezed into the 280px
           track and the 1fr track sat empty beside it. */
        .community-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 24px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
        }

        /* Main Content */
        .main-content {
            min-height: 100vh;
        }

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

        .content-header h2 {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -1px;
        }

        /* Sort control ("Sort by posts" — groups messages by each
           author's post count in the current feed, most active first,
           instead of the default chronological order) */
        .sort-control {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .sort-control .sort-btn {
            padding: 8px 16px;
            font-size: 13px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        /* Post Card */
        .post-card {
            background: #1a1a1a;
            border-radius: 16px;
            padding: 32px;
            margin-bottom: 24px;
            transition: all 0.3s;
            border: 2px solid rgba(255, 255, 255, 0.05);
        }

        .post-card:hover {
            border-color: rgba(139, 0, 0, 0.2);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        }

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

        .post-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8b0000 0%, #b30000 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 18px;
            flex-shrink: 0;
        }

        .post-info {
            flex: 1;
        }

        .post-author {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 4px;
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: #999;
        }

        .post-channel {
            color: #8b0000;
            font-weight: 600;
        }

        .post-content {
            font-size: 16px;
            line-height: 1.7;
            color: #d1d1d6;
            margin-bottom: 20px;
        }

        .post-content p {
            margin-bottom: 16px;
        }

        .post-link {
            display: inline-block;
            color: #8b0000;
            text-decoration: none;
            font-weight: 600;
            transition: opacity 0.3s;
        }

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

        .post-actions {
            display: flex;
            gap: 24px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .post-action {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #999;
            font-size: 14px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .post-action:hover {
            color: #fff;
        }

        .post-action.liked {
            color: #8b0000;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin: 60px 0;
        }

        .page-btn {
            padding: 12px 20px;
            background: #1a1a1a;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }

        .page-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .page-btn.active {
            background: linear-gradient(135deg, #8b0000 0%, #b30000 100%);
            border-color: #8b0000;
        }

        /* Footer */
        footer {
            background: #0a0a0a;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 60px 24px 40px;
            margin-top: 80px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            font-size: 14px;
            margin-bottom: 16px;
            font-weight: 600;
            color: #999;
        }

        .footer-section a {
            display: block;
            color: #f5f5f7;
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 12px;
            transition: opacity 0.3s;
        }

        .footer-section a:hover {
            opacity: 0.6;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            color: #666;
            font-size: 12px;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Hamburger button */
        .nav-hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 36px;
            height: 36px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 4px;
            flex-shrink: 0;
        }
        .nav-hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: #f5f5f7;
            border-radius: 2px;
            transition: transform 0.25s ease, opacity 0.25s ease;
            transform-origin: center;
        }
        .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-hamburger.open span:nth-child(2) { opacity: 0; }
        .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* Mobile menu drawer */
        .nav-mobile-menu {
            display: none;
            flex-direction: column;
            gap: 0;
            background: rgba(0,0,0,0.97);
            border-top: 1px solid rgba(255,255,255,0.08);
            padding: 16px 24px 24px;
            width: 100%;
        }
        .nav-mobile-menu.open { display: flex; }
        .nav-mobile-links {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 16px;
        }
        .nav-mobile-links a {
            color: #f5f5f7;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255,255,255,0.07);
        }
        .nav-mobile-links a:last-child { border-bottom: none; }
        .nav-mobile-cta {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 8px;
        }
        .nav-mobile-cta .btn { text-align: center; border-radius: 10px; }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            nav {
                position: relative;
                top: auto;
            }

            .nav-links {
                display: none;
            }

            .cta-buttons {
                display: none;
            }

            .nav-hamburger {
                display: flex;
            }

            .hero {
                margin-top: 0;
                padding: 32px 24px 28px;
            }

            .hero-text h1 {
                font-size: 30px;
                letter-spacing: -1px;
            }

            .hero-text p {
                font-size: 15px;
            }

            .post-card {
                padding: 24px;
            }

            .content-header h2 {
                font-size: 24px;
            }

            footer {
                padding: 40px 24px 32px;
                margin-top: 48px;
            }
        }

        @media (max-width: 480px) {
            .nav-content {
                padding: 12px 16px;
            }

            .logo {
                font-size: 18px;
            }

            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 24px;
            }
        }

/* ── Public nav avatar dropdown ── */
.pub-avatar-wrap{position:relative;display:inline-flex;align-items:center;}
.pub-avatar{width:32px;height:32px;padding:0;border-radius:50%;background:linear-gradient(135deg,#7a0000,#b30000);border:2px solid rgba(179,0,0,.4);display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;cursor:pointer;line-height:1;transition:opacity .15s;}
.pub-avatar:hover{opacity:.85;}
.pub-profile-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;min-width:180px;background:#1a1714;border:1px solid rgba(255,255,255,.12);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:1000;overflow:hidden;}
.pub-profile-menu.open{display:block;}
.pub-profile-menu-item{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:13px;color:#f0ece4;text-decoration:none;transition:background .15s;}
.pub-profile-menu-item:hover{background:rgba(255,255,255,.07);}
.pub-profile-menu-item svg{flex-shrink:0;color:rgba(240,236,228,.5);}
.pub-profile-menu-item--danger{color:#e05a5a;}
.pub-profile-menu-item--danger:hover{background:rgba(224,90,90,.1);}
.pub-profile-menu-item--danger svg{color:#e05a5a;}
