        * {
            box-sizing: border-box;
        }

        :root {
            color-scheme: dark;
            --bg: #070d18;
            --panel: #101a2b;
            --border: #25364e;
            --text: #edf4ff;
            --muted: #9aabc2;
            --cyan: #52d5ff;
            --blue: #087eae;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: Arial, sans-serif;
            background:
                radial-gradient(ellipse at top, #102440 0%, transparent 48%),
                var(--bg);
            color: var(--text);
        }

        a {
            transition: color .2s ease, background .2s ease,
                        border-color .2s ease;
        }

        header {
            background: rgba(8, 15, 29, .96);
            border-bottom: 1px solid var(--border);
            padding: 18px 24px;
        }

        .nav {
            max-width: 1150px;
            margin: auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }

        .logo {
            color: var(--text);
            text-decoration: none;
            font-size: 24px;
            font-weight: bold;
            letter-spacing: -.5px;
        }

        .logo span {
            color: var(--cyan);
        }

        nav {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
        }

        nav a {
            color: #c2cee0;
            text-decoration: none;
            font-size: 14px;
        }

        nav a:hover {
            color: var(--cyan);
        }

        .container {
            width: min(1150px, 92%);
            margin: 36px auto;
        }

        .hero {
            position: relative;
            overflow: hidden;
            background: linear-gradient(125deg, #112746, #104568 65%, #087eae);
            color: white;
            padding: 38px;
            border-radius: 18px;
            margin-bottom: 25px;
            border: 1px solid #286087;
            box-shadow: 0 15px 40px #00000025;
        }

        .hero::after {
            content: "✦";
            position: absolute;
            right: 35px;
            top: 12px;
            font-size: 100px;
            color: #ffffff12;
            pointer-events: none;
        }

        .eyebrow {
            color: #8be5ff;
            font-size: 12px;
            font-weight: bold;
            letter-spacing: 2px;
            margin: 0 0 12px;
        }

        .hero h1 {
            margin: 0 0 12px;
            font-size: 34px;
        }

        .hero p {
            max-width: 720px;
            margin: 0;
            line-height: 1.8;
            color: #e0f2ff;
        }

        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 26px;
            background: var(--panel);
            padding: 18px;
            border: 1px solid var(--border);
            border-radius: 14px;
            box-shadow: 0 8px 25px #00000015;
        }

        .filters input,
        .filters select {
            flex: 1;
            min-width: 200px;
            padding: 13px 14px;
            border: 1px solid #30435e;
            border-radius: 9px;
            font-size: 14px;
            background: #0a1322;
            color: var(--text);
            outline: none;
        }

        .filters input::placeholder {
            color: #8092aa;
        }

        .filters input:focus,
        .filters select:focus {
            border-color: var(--cyan);
            box-shadow: 0 0 0 3px #52d5ff15;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid transparent;
            border-radius: 9px;
            padding: 12px 18px;
            background: var(--blue);
            color: white;
            text-decoration: none;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            white-space: nowrap;
        }

        .btn:hover {
            background: #0998ce;
        }

        .btn-secondary {
            background: #17253a;
            border-color: #30435e;
            color: #d7e5f8;
        }

        .btn-secondary:hover {
            background: #20334d;
        }

        .results-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin: 0 0 18px;
        }

        .results-heading h2 {
            margin: 0;
            font-size: 21px;
        }

        .results-count {
            color: var(--muted);
            font-size: 13px;
        }

        .posts-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

        .post-card {
            min-width: 0;
            background: linear-gradient(145deg, #111d30, #0d1727);
            border-radius: 14px;
            border: 1px solid var(--border);
            box-shadow: 0 8px 24px #00000018;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: transform .2s ease, border-color .2s ease;
        }

        .post-card:hover {
            transform: translateY(-3px);
            border-color: #386080;
        }

        .post-image-wrap {
            width: 100%;
            height: 230px;
            overflow: hidden;
            background: linear-gradient(135deg, #102a43, #176b87);
        }

        .post-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .35s ease;
        }

        .post-card:hover .post-image {
            transform: scale(1.035);
        }

        .post-image-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            color: #8bdfff;
            font-size: 48px;
        }

        .post-card-body {
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 24px;
            min-width: 0;
        }

        .category {
            display: inline-block;
            align-self: flex-start;
            padding: 7px 11px;
            background: #12354b;
            color: #7be0ff;
            border: 1px solid #20536c;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 16px;
        }

        .post-card h2 {
            color: #f1f6ff;
            font-size: 21px;
            line-height: 1.4;
            margin: 0 0 13px;
            overflow-wrap: anywhere;
        }

        .post-content {
            color: #b5c4d8;
            line-height: 1.8;
            overflow-wrap: anywhere;
            white-space: pre-wrap;
        }

        .post-meta {
            margin-top: auto;
            padding-top: 20px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.9;
        }

        .post-meta strong {
            color: #e0ebfa;
        }

        .post-meta > div {
            overflow-wrap: anywhere;
        }

        .empty {
            background: var(--panel);
            padding: 42px 25px;
            text-align: center;
            border: 1px solid var(--border);
            border-radius: 14px;
            color: var(--muted);
        }

        .empty h2 {
            color: var(--text);
            margin-top: 0;
        }

        .empty p {
            line-height: 1.7;
        }

        footer {
            text-align: center;
            padding: 28px 15px;
            margin-top: 45px;
            border-top: 1px solid #1d2a3e;
            color: #8496af;
            font-size: 13px;
        }

        footer a {
            color: var(--cyan);
            text-decoration: none;
        }

        footer a:hover {
            color: white;
        }

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

            .hero {
                padding: 27px 23px;
            }

            .hero h1 {
                font-size: 28px;
            }

            .nav {
                align-items: flex-start;
            }

            nav {
                gap: 12px;
            }

            .filters input,
            .filters select {
                min-width: 100%;
            }

            .filters .btn {
                flex: 1;
            }

            .post-image-wrap {
                height: 210px;
            }
        }


.post-author{display:flex;align-items:center;gap:10px;margin:14px 0 16px}
.post-author-avatar{width:38px;height:38px;object-fit:cover;border-radius:50%;border:1px solid #34445c}
.post-author-name{color:#79aaff;font-weight:600;text-decoration:none}
.post-author-name:hover{color:#fff;text-decoration:underline}


/* WorldBeacon post reactions and comments */

.wb-post-interactions {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, .15);
}

.wb-reaction-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wb-reaction-bar button {
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 10px;
    color: #cbd5e1;
    background: #101a2c;
    cursor: pointer;
    font-size: 12px;
    transition: .2s ease;
}

.wb-reaction-bar button:hover,
.wb-reaction-bar button.is-selected {
    color: #67e8f9;
    border-color: rgba(34, 211, 238, .55);
    background: rgba(34, 211, 238, .10);
    box-shadow: 0 0 14px rgba(34, 211, 238, .08);
}

.wb-reaction-total {
    margin-left: auto;
    color: #8496af;
    font-size: 11px;
}

.wb-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.wb-emoji-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 10px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, .75);
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
}

.wb-emoji-button:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, .5);
}

.wb-emoji-button.is-selected {
    border-color: #22d3ee;
    background: rgba(34, 211, 238, .13);
    box-shadow: 0 0 12px rgba(34, 211, 238, .10);
}

.wb-emoji-button span {
    color: #94a3b8;
    font-size: 11px;
}

.wb-comments-panel {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 13px;
    background: rgba(5, 10, 22, .55);
}

.wb-comments-list {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

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

.wb-comment-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #17283c;
}

.wb-comment-body {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 12px;
    background: #101a2c;
}

.wb-comment-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-bottom: 5px;
}

.wb-comment-heading strong {
    color: #67e8f9;
    font-size: 12px;
}

.wb-comment-heading time {
    color: #718096;
    font-size: 10px;
}

.wb-comment-text {
    overflow-wrap: anywhere;
    color: #dbe4f0;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.wb-comment-form {
    display: grid;
    justify-items: end;
    gap: 9px;
}

.wb-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 65px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 11px;
    outline: none;
    color: #f1f5f9;
    background: #0b1220;
    font: inherit;
    font-size: 12px;
}

.wb-comment-form textarea:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .08);
}

.wb-comment-submit {
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    color: #04121b;
    background: linear-gradient(110deg, #67e8f9, #22d3ee);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.wb-comment-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.wb-login-prompt,
.wb-interaction-message {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.7;
}

.wb-login-prompt a {
    color: #67e8f9;
}

.wb-interaction-message {
    margin: 8px 0 0;
}

@media (max-width: 480px) {
    .wb-reaction-total {
        width: 100%;
        margin-left: 0;
    }

    .wb-reaction-bar button {
        padding: 8px;
    }

    .wb-comments-panel {
        padding: 10px;
    }
}

/* Post image links */
.post-image-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.post-image-link .post-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.post-image-link:hover .post-image {
    transform: scale(1.03);
}

/* Clickable post title */
.post-title-link {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.post-title-link:hover {
    color: #93c5fd;
}

/* Category and video badges */
.post-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #7f1d1d;
    border-radius: 20px;
    background: #450a0a;
    color: #fecaca;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.post-video-badge:hover {
    background: #7f1d1d;
}

/* Post title */
.post-title {
    overflow-wrap: anywhere;
}

.post-title-link:focus-visible,
.post-image-link:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* Author profile link */
.post-author-avatar-link {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.post-author-avatar-link .post-author-avatar {
    display: block;
}

/* Read full post link */
.read-post-link {
    display: inline-block;
    margin-top: 14px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.read-post-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

/* Error and empty states */
.alert.error {
    padding: 15px 18px;
    margin: 20px 0;
    border: 1px solid #7f1d1d;
    border-radius: 10px;
    background: #2a1015;
    color: #fecaca;
}

.posts-limit-note {
    margin: 25px 0;
    color: #8496af;
    text-align: center;
    font-size: 13px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .post-badges {
        gap: 6px;
    }

    .post-video-badge {
        font-size: 11px;
    }

    .read-post-link {
        font-size: 14px;
    }
}


.post-report-action {
    margin-top: 14px;
}

.report-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid rgba(248, 113, 113, .35);
    border-radius: 9px;
    background: rgba(127, 29, 29, .18);
    color: #fca5a5;
    font: inherit;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
}

.report-post-button:hover {
    background: rgba(127, 29, 29, .35);
}

.report-modal[hidden] {
    display: none !important;
}

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .78);
}

.report-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border: 1px solid #334155;
    border-radius: 16px;
    background: #111827;
    color: #f8fafc;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.report-modal-content h2 {
    margin-top: 0;
}

.report-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #263449;
    color: white;
    cursor: pointer;
}

.report-modal-content label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 600;
}

.report-modal-content select,
.report-modal-content textarea {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0b1120;
    color: white;
    font: inherit;
}

.report-modal-content textarea {
    resize: vertical;
}

#submitPostReport {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: 0;
    border-radius: 9px;
    background: #dc2626;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

#submitPostReport:disabled {
    opacity: .6;
    cursor: wait;
}

/* =========================================================
   WORLDBEACON ? POSTS GRID
   3 POSTS PER ROW
   ========================================================= */

.wb-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

/* ???? post */
.wb-posts-grid > .wb-post-card,
.wb-posts-grid > article,
.wb-post-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1100px) {
    .wb-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .wb-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}




        /*
        |--------------------------------------------------------------------------
        | External article preview
        |--------------------------------------------------------------------------
        */

        .post-external-preview {
            display: block;
            margin: 18px 0;
            overflow: hidden;
            color: inherit;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 14px;
            transition:
                border-color 0.2s ease,
                transform 0.2s ease,
                background 0.2s ease;
        }

        .post-external-preview:hover {
            border-color: rgba(96, 165, 250, 0.7);
            background: rgba(255, 255, 255, 0.055);
            transform: translateY(-2px);
        }

        .post-external-preview-image-wrap {
            width: 100%;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            background: rgba(148, 163, 184, 0.08);
        }

        .post-external-preview-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .post-external-preview-content {
            padding: 15px;
        }

        .post-external-preview-label {
            display: block;
            margin-bottom: 7px;
            color: #60a5fa;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .post-external-preview-domain {
            display: block;
            margin-bottom: 7px;
            color: #94a3b8;
            font-size: 0.78rem;
            overflow-wrap: anywhere;
        }

        .post-external-preview-title {
            margin: 0 0 8px;
            color: #f8fafc;
            font-size: 1.02rem;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .post-external-preview-description {
            display: -webkit-box;
            margin: 0 0 12px;
            overflow: hidden;
            color: #cbd5e1;
            font-size: 0.88rem;
            line-height: 1.6;
            overflow-wrap: anywhere;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }

        .post-external-preview-open {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #60a5fa;
            font-size: 0.85rem;
            font-weight: 700;
        }

        /*
        |--------------------------------------------------------------------------
        | Pagination
        |--------------------------------------------------------------------------
        */

        .posts-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin: 34px 0 12px;
        }

        .posts-pagination a,
        .posts-pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 42px;
            padding: 0 13px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(255, 255, 255, 0.035);
            color: #cbd5e1;
            text-decoration: none;
            font-weight: 700;
            transition:
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
        }

        .posts-pagination a:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(96, 165, 250, 0.55);
            color: #ffffff;
            transform: translateY(-1px);
        }

        .posts-pagination .is-active {
            background: rgba(96, 165, 250, 0.18);
            border-color: rgba(96, 165, 250, 0.7);
            color: #ffffff;
        }

        .posts-pagination .is-disabled {
            opacity: 0.4;
            cursor: default;
        }

        .posts-pagination-info {
            margin: 0;
            text-align: center;
            color: #94a3b8;
            font-size: 0.85rem;
        }

        /*
        |--------------------------------------------------------------------------
        | Mobile
        |--------------------------------------------------------------------------
        */

        @media (max-width: 700px) {

            .posts-pagination {
                gap: 6px;
            }

            .posts-pagination a,
            .posts-pagination span {
                min-width: 38px;
                height: 38px;
                padding: 0 10px;
                font-size: 0.85rem;
            }

        }

/* ========================================
   WORLDBEACON COMMUNITY LAYOUT
======================================== */

.community-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    gap: 24px;
    align-items: start;
    width: min(1600px, calc(100% - 40px));
    margin: 30px auto;
}

.community-main {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.community-sidebar {
    min-width: 0;
    position: sticky;
    top: 90px;
}

.community-sidebar > * {
    max-width: 100%;
}

/* Medium screens */
@media (max-width: 1200px) {
    .community-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .community-sidebar-right {
        display: none;
    }
}

/* Mobile */
@media (max-width: 850px) {
    .community-layout {
        display: block;
        width: min(100% - 24px, 700px);
        margin: 20px auto;
    }

    .community-sidebar-left,
    .community-sidebar-right {
        display: none;
    }

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


