:root {
    --of-blue: #00AFF0;
    --of-blue-dark: #0096cc;
    --of-blue-soft: #e6f7fd;
    --bg: #f4f5f6;
    --card: #ffffff;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #1c1e21;
    --text-2: #65676b;
    --text-muted: #8a8d91;
    --danger: #ff3b5c;
    --green: #20c997;
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar-w: 240px;
    --right-w: 340px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--of-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

code {
    background: #f1f3f5;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

/* ============ MOBILE TOP BAR ============ */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}
.mobile-topbar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
}
.mobile-topbar .brand-logo { width: 28px; height: 28px; }
.mobile-topbar .brand-text { font-weight: 800; font-size: 18px; }

/* ============ ICON BUTTON ============ */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    font-size: 18px;
}
.icon-btn:hover { background: var(--of-blue-soft); color: var(--of-blue); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ============ LAYOUT ============ */
.layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--right-w);
    gap: 16px;
    align-items: flex-start;
}

.sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

/* ============ LEFT SIDEBAR ============ */
.sidebar-left { padding-right: 4px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 12px;
    color: var(--text);
    text-decoration: none;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand .brand-logo { width: 32px; height: 32px; }
.sidebar-brand .brand-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.sidebar-brand .brand-text::first-letter { color: var(--of-blue); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-item:hover { color: var(--of-blue); text-decoration: none; }
.nav-item.active { color: var(--of-blue); font-weight: 600; }
.nav-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
}
.nav-item[data-label="More"] .nav-icon {
    fill: currentColor;
    stroke: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--of-blue);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0 22px;
    height: 46px;
    font-size: 13px;
    letter-spacing: 0.4px;
    transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--of-blue-dark); }
.btn-primary:active { transform: translateY(1px); }
.new-post-btn { width: 100%; margin: 14px 0 12px; }
.new-post-btn .plus { font-size: 18px; font-weight: 800; }

.btn-ghost {
    background: #fff;
    color: var(--of-blue);
    border: 1.5px solid var(--of-blue);
    border-radius: 999px;
    padding: 0 16px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
}
.btn-ghost:hover { background: var(--of-blue-soft); }

.btn-mini {
    background: var(--of-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.me-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    margin-top: 4px;
}
.me-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.me-info { flex: 1; min-width: 0; }
.me-name { font-weight: 700; font-size: 14px; }
.me-handle { color: var(--text-2); font-size: 12px; }

/* ============ FEED ============ */
.feed { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#timeline { display: flex; flex-direction: column; gap: 16px; }

.profile-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.profile-banner {
    height: 200px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.18), transparent 60%),
        linear-gradient(135deg, #00AFF0 0%, #0096cc 50%, #00d4ff 100%);
    position: relative;
    color: #fff;
}
.profile-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.4) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.3) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.4) 0 1px, transparent 1px),
        radial-gradient(circle at 90% 30%, rgba(255,255,255,0.3) 0 1px, transparent 1px);
    background-size: 220px 220px;
    pointer-events: none;
}
.banner-back, .banner-more {
    position: absolute;
    top: 12px;
    color: #fff;
    background: rgba(0,0,0,0.18);
    z-index: 2;
}
.banner-back { left: 12px; }
.banner-more { right: 12px; }
.banner-back:hover, .banner-more:hover { background: rgba(0,0,0,0.32); color: #fff; }
.banner-titlebar {
    position: absolute;
    top: 14px;
    left: 60px;
    right: 60px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.banner-name {
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.banner-name .verified {
    background: #fff;
    color: var(--of-blue);
}
.banner-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.95;
}
.banner-stats strong { font-weight: 700; }

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
    margin-top: -55px;
    position: relative;
    z-index: 1;
}
.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--card);
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
    object-position: center 25%;
}
.profile-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 14px;
}
.round-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--of-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s, transform .05s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.round-action svg { width: 20px; height: 20px; }
.round-action:hover { background: var(--of-blue-soft); }
.round-action:active { transform: translateY(1px); }

.profile-meta { padding: 14px 20px 16px; }
.profile-name {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    background: var(--of-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}
.profile-handle {
    color: var(--text-2);
    font-size: 14px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.online-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 0 3px rgba(32,201,151,0.18);
}
.profile-bio {
    margin: 14px 0 0;
    font-size: 15px;
    color: var(--text);
}
.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    color: var(--text-2);
    font-size: 13px;
}
.profile-info-list a { color: var(--of-blue); }

/* ============ SUBSCRIPTION BLOCK ============ */
.subscription-block {
    border-top: 1px solid var(--border);
    padding: 14px 20px 18px;
}
.subscription-head {
    font-size: 11px;
    letter-spacing: 0.6px;
    color: var(--text-2);
    font-weight: 700;
    margin-bottom: 8px;
}
.subscription-offer {
    font-weight: 700;
    margin-bottom: 10px;
}
.btn-subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--of-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: background .15s;
    margin-bottom: 8px;
}
.btn-subscribe:hover { background: var(--of-blue-dark); }
.btn-subscribe .price { opacity: 0.95; font-weight: 600; }
.btn-subscribe.bundle {
    background: #fff;
    color: var(--of-blue);
    border: 1.5px solid var(--of-blue);
}
.btn-subscribe.bundle:hover { background: var(--of-blue-soft); }
.subscription-regular {
    color: var(--text-2);
    font-size: 12px;
    margin-bottom: 10px;
}
.subscription-bundles {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.subscription-bundles summary {
    list-style: none;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 0.6px;
    color: var(--text-2);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subscription-bundles summary::-webkit-details-marker { display: none; }
.subscription-bundles[open] summary .chevron { transform: rotate(180deg); }
.subscription-bundles summary .chevron {
    transition: transform .15s;
    color: var(--text-muted);
}

/* Default: show offer, hide active. body.is-subscribed flips them. */
.sub-active-view { display: none; }
body.is-subscribed .sub-offer-view { display: none; }
body.is-subscribed .sub-active-view { display: block; }

.sub-active-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(32,201,151,0.10), rgba(0,175,240,0.10));
    border: 1px solid rgba(32,201,151,0.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.sub-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
.sub-active-title {
    font-weight: 700;
    color: var(--text);
}

/* ============ TABS ============ */
.profile-tabs {
    display: flex;
    border-top: 1px solid var(--border);
}
.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tab:hover { color: var(--of-blue); }
.tab.active { color: var(--text); border-bottom-color: var(--of-blue); }
.tab-num { font-weight: 800; font-size: 13px; }
.tab-label { letter-spacing: 0.8px; }

/* ============ POSTS ============ */
.post {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.post.pinned { border: 1px solid var(--of-blue-soft); }
.post-pin {
    background: var(--of-blue-soft);
    color: var(--of-blue);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
}
.post-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 8px;
}
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.post-author { flex: 1; min-width: 0; }
.post-name { font-weight: 700; display: flex; align-items: center; gap: 5px; }
.post-handle { color: var(--text-2); font-size: 12px; }
.post-body { padding: 0 16px 14px; font-size: 15px; }
.post-body p { margin: 0 0 10px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body ul { margin: 6px 0 10px; padding-left: 20px; }
.post-body li { margin-bottom: 3px; }
.post-company {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px 8px;
    margin-top: -4px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}
.post-tag {
    color: var(--of-blue);
    background: var(--of-blue-soft);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.post-media {
    position: relative;
    background: linear-gradient(135deg, #e9eef3, #d6dde4);
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6473;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.post-media .media-emoji {
    font-size: 64px;
    opacity: 0.85;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}
.post-media .media-locked {
    position: absolute;
    inset: 0;
    background: rgba(0,175,240,0.55);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    gap: 8px;
}
.post-media .media-locked .lock { font-size: 36px; }
.post-media .media-locked .lock-cta {
    background: #fff;
    color: var(--of-blue);
    padding: 8px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 4px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-top: 1px solid var(--border);
}
.action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px;
    transition: background .15s, color .15s;
}
.action:hover { background: var(--of-blue-soft); color: var(--of-blue); }
.action.liked { color: var(--danger); }
.action.tip { margin-left: auto; color: var(--of-blue); font-weight: 600; }

.end-of-feed {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-2);
    font-style: italic;
}

/* ============ RIGHT SIDEBAR ============ */
.sidebar-right { display: flex; flex-direction: column; gap: 16px; }

.rs-search {
    position: relative;
    background: var(--card);
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.rs-search input {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 0 16px 0 40px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, background .15s;
    font-family: inherit;
}
.rs-search input:focus { border-color: var(--of-blue); }
.rs-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-2);
}

.panel {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.6px;
    color: var(--text-2);
    font-weight: 700;
    margin-bottom: 10px;
}
.panel-head strong { font-weight: 700; }
.panel-head .muted { color: var(--text-2); font-size: 13px; }
.muted { color: var(--text-2); }

.rs-offer {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
}

.panel.ppv .ppv-illu {
    height: 110px;
    background: linear-gradient(135deg, #e6f7fd, #c8edfa);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}
.panel.ppv .ppv-letter { font-size: 56px; }
.panel.ppv .ppv-tag {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--of-blue);
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.4px;
}
.panel.ppv .ppv-copy {
    margin: 0;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    background: var(--of-blue-soft);
    color: var(--of-blue);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.rs-footer {
    text-align: center;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.6;
    padding: 4px 0 24px;
}
.rs-footer a { color: var(--text-2); }

/* ============ MODAL ============ */
.modal[hidden] { display: none !important; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade .15s ease-out;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 40, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.modal-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-pop .18s ease-out;
}
@keyframes modal-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-head > div:nth-child(2) { flex: 1; min-width: 0; }
.modal-title-row { display: flex; align-items: baseline; gap: 8px; }
.modal-id { font-family: 'SF Mono', Menlo, monospace; font-size: 11px; }
.modal-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field input,
.field textarea,
.field select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .15s, background .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--of-blue); background: #fff; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.field-row {
    display: flex;
    gap: 10px;
    border: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.field-row > legend {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    padding: 0 0 6px;
    width: 100%;
}
.field-row > .field { flex: 1 1 130px; }

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin: 6px -16px -16px;
    padding: 12px 16px;
}
.modal-actions .btn-primary { margin-left: auto; height: 38px; padding: 0 22px; }

.btn-text {
    background: none;
    border: none;
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.btn-text:hover { background: var(--bg); color: var(--text); }
.btn-text.danger { color: var(--danger); }
.btn-text.danger:hover { background: rgba(255,59,92,0.08); color: var(--danger); }

/* Post-menu popover (Edit / Delete) */
.post-menu[hidden] { display: none !important; }
.post-menu {
    position: absolute;
    z-index: 90;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 4px;
    min-width: 160px;
}
.post-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
}
.post-menu button:hover { background: var(--bg); }
.post-menu button.danger { color: var(--danger); }
.post-menu button.danger:hover { background: rgba(255,59,92,0.08); }

/* Admin-gated UI: hidden by default, revealed when body.is-admin */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin .new-post-btn,
body.is-admin .logout-btn { display: flex !important; width: 100%; }
body.is-admin .post-menu-trigger { display: inline-flex !important; }
.post-menu-trigger { display: none; }

.logout-btn {
    margin-bottom: 8px;
    height: 36px;
    font-size: 11px;
    letter-spacing: 0.4px;
    padding: 0 12px;
}

.login-error {
    background: rgba(255,59,92,0.08);
    color: var(--danger);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

#signin-link { color: var(--text-2); }
#signin-link:hover { color: var(--of-blue); }

#timeline[aria-busy="true"]::before {
    content: 'Loading posts…';
    display: block;
    text-align: center;
    color: var(--text-2);
    padding: 40px 20px;
    font-style: italic;
}
.feed-empty {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-2);
}

.post-badge {
    display: inline-block;
    background: var(--of-blue-soft);
    color: var(--of-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .layout { grid-template-columns: 80px minmax(0, 1fr) var(--right-w); }
    .sidebar-brand .brand-text { display: none; }
    .nav-item span:not(.nav-icon) { display: none; }
    .nav-item { justify-content: center; padding: 12px; }
    .new-post-btn .label { display: none; }
    .new-post-btn { font-size: 0; height: 46px; padding: 0; }
    .new-post-btn .plus { font-size: 24px; font-weight: 800; }
    .me-card .me-info { display: none; }
    .me-card { justify-content: center; }
}
@media (max-width: 820px) {
    .layout { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; }
    .sidebar-right { display: none; }
}
@media (max-width: 560px) {
    .mobile-topbar { display: flex; }
    .layout { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
    .sidebar-left { display: none; }
    .profile-info-list { font-size: 12px; }
    .post-actions { flex-wrap: wrap; }
    .banner-titlebar { display: none; }
}
