/* ============================================================
   FaucetSpy Forum Styles — matches existing blue / card theme
   ============================================================ */

:root {
    --fs-blue: #007bff;
    --fs-blue-soft: #e3f2fd;
    --fs-card: #ffffff;
    --fs-border: #eef2f6;
    --fs-muted: #6c757d;
    --fs-radius: 16px;
}

/* Avatars */
.fs-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Keep page from sliding sideways when header is dense */
html {
    overflow-x: clip;
    max-width: 100%;
}
body {
    overflow-x: clip;
    max-width: 100%;
}
.fs-nav.navbar {
    max-width: 100vw;
}
.fs-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fs-avatar.lg { width: 56px; height: 56px; }
.fs-avatar.xl { width: 80px; height: 80px; }

/* Category cards */
.fs-category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--fs-card);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fs-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,123,255,0.12);
}
.fs-category-card-link {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.fs-category-card-link:hover {
    color: inherit;
    text-decoration: none;
}
.fs-category-card-link h5 {
    color: inherit;
}
.fs-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.45);
    background: transparent;
    color: #4da3ff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fs-follow-btn:hover {
    background: rgba(0, 123, 255, 0.12);
    color: #7bbcff;
    text-decoration: none;
}
.fs-follow-btn.is-following {
    background: rgba(0, 123, 255, 0.18);
    border-color: #007bff;
    color: #fff;
}
body:not(.dark-mode) .fs-follow-btn {
    color: #007bff;
}
body:not(.dark-mode) .fs-follow-btn.is-following {
    background: #007bff;
    color: #fff;
}
.fs-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.45);
    background: transparent;
    color: #4da3ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fs-sort-btn:hover,
.fs-sort-btn[aria-expanded="true"] {
    background: rgba(0, 123, 255, 0.12);
    color: #7bbcff;
    border-color: #007bff;
}
body:not(.dark-mode) .fs-sort-btn {
    color: #007bff;
}
body:not(.dark-mode) .fs-sort-btn:hover,
body:not(.dark-mode) .fs-sort-btn[aria-expanded="true"] {
    background: rgba(0, 123, 255, 0.1);
    color: #0056b3;
}
.fs-sort-menu {
    min-width: 160px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}
.fs-sort-menu .dropdown-item {
    display: flex;
    align-items: center;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
}
.fs-sort-menu .dropdown-item.active {
    background: rgba(0, 123, 255, 0.18);
    color: #4da3ff;
}
body:not(.dark-mode) .fs-sort-menu .dropdown-item.active {
    color: #007bff;
}
.fs-feed-loader {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.25rem;
}
.fs-feed-loader[hidden] {
    display: none !important;
}
.fs-feed-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: fs-feed-spin 0.7s linear infinite;
}
@keyframes fs-feed-spin {
    to { transform: rotate(360deg); }
}
.fs-feed-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}
.fs-profile-follow-meta {
    font-size: 0.85rem;
    color: var(--fs-muted, #94a3b8);
}
.fs-notif-bell {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 123, 255, 0.35);
    background: transparent;
    color: #4da3ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.fs-notif-bell:hover {
    background: rgba(0, 123, 255, 0.12);
}
.fs-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.fs-notif-panel {
    width: min(360px, 92vw);
    padding: 0;
    border-radius: 14px !important;
    overflow: hidden;
    background: #1a1a1a !important;
}
body:not(.dark-mode) .fs-notif-panel {
    background: #fff !important;
}
.fs-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #333;
}
body:not(.dark-mode) .fs-notif-head {
    border-bottom-color: #e5e9ef;
}
.fs-notif-mark {
    border: 0;
    background: transparent;
    color: #4da3ff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.fs-notif-list {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1a1a1a;
}
.fs-notif-list::-webkit-scrollbar {
    width: 6px;
}
.fs-notif-list::-webkit-scrollbar-track {
    background: #141414;
    border-radius: 999px;
    margin: 4px 0;
}
.fs-notif-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 999px;
    border: 1px solid #0f172a;
}
.fs-notif-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}
body:not(.dark-mode) .fs-notif-list {
    scrollbar-color: #94a3b8 #f1f5f9;
}
body:not(.dark-mode) .fs-notif-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}
body:not(.dark-mode) .fs-notif-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    border-color: #e2e8f0;
}
body:not(.dark-mode) .fs-notif-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b, #475569);
}
.fs-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #2a2a2a;
}
body:not(.dark-mode) .fs-notif-item {
    border-bottom-color: #f1f5f9;
}
.fs-notif-item:hover {
    background: rgba(0, 123, 255, 0.08);
    color: inherit;
    text-decoration: none;
}
.fs-notif-item.is-unread {
    background: rgba(0, 123, 255, 0.1);
}
.fs-notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #1e293b;
}
.fs-notif-item-body {
    min-width: 0;
    flex: 1;
}
.fs-notif-item-title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
}
.fs-notif-item-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}
.fs-cat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fs-cat-icon.lg { width: 60px; height: 60px; font-size: 1.4rem; }

/* Thread cards */
.fs-thread-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: var(--fs-card);
    border: 1px solid var(--fs-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: visible;
    min-width: 0;
}
.fs-thread-card:hover {
    border-color: rgba(0,123,255,0.35);
    box-shadow: 0 8px 20px rgba(0,123,255,0.08);
}
.fs-thread-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.fs-thread-card-link:hover {
    color: inherit;
    text-decoration: none;
}
.fs-thread-menu {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 2px;
}
.fs-stats .fs-thread-menu .fs-reply-menu-btn {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
}
.fs-reply-menu-drop a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-size: 0.88rem;
    text-align: left;
}
.fs-reply-menu-drop a:hover {
    background: #2a2a2a;
    color: inherit;
    text-decoration: none;
}
body:not(.dark-mode) .fs-reply-menu-drop a:hover {
    background: #f1f5f9;
}
.fs-thread-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body:not(.dark-mode) .fs-thread-thumb {
    background: #f1f5f9;
    border-color: #e5e9ef;
}
@media (max-width: 575px) {
    .fs-thread-thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }
}
.fs-thread-card-link > div {
    min-width: 0;
    overflow: hidden;
}
.fs-thread-card-link h2,
.fs-thread-card-link h3,
.fs-thread-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fs-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fs-muted);
    min-width: 64px;
    flex-shrink: 0;
    text-align: right;
}
.fs-stats i { color: var(--fs-blue); margin-right: 4px; }
.fs-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Badges */
.fs-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: 0.2px;
}
.badge-verified-owner { background: #e8f5e9; color: #1b5e20; }
.badge-trusted-earner { background: #e3f2fd; color: #0d47a1; }
.badge-scam-hunter { background: #fce4ec; color: #880e4f; }
.badge-member { background: #111111; color: #ffffff; }
.badge-member i { color: #ffffff; }
body.dark-mode .badge-member { background: #000000; color: #ffffff; }
body.dark-mode .badge-member i { color: #ffffff; }
.fs-badge.badge-level {
    background: color-mix(in srgb, var(--lvl-color, #6c757d) 18%, transparent);
    color: var(--lvl-color, #6c757d);
    border: 1px solid color-mix(in srgb, var(--lvl-color, #6c757d) 40%, transparent);
}
.fs-badge.badge-level i { color: inherit; }
body:not(.dark-mode) .fs-badge.badge-level {
    background: color-mix(in srgb, var(--lvl-color, #6c757d) 12%, #fff);
}

/* Sidebar */
.fs-side-block {
    background: var(--fs-card);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    overflow: hidden;
}
.fs-side-title {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fs-border);
}
.fs-feed-list { list-style: none; margin: 0; padding: 0; }
.fs-feed-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--fs-border);
    transition: background 0.15s;
}
.fs-feed-list li:last-child a { border-bottom: none; }
.fs-feed-list li a:hover { background: var(--fs-blue-soft); }
body.dark-mode .fs-feed-list li a:hover,
html.dark-mode .fs-feed-list li a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.fs-feed-list .fs-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 2px;
}
.fs-feed-dot {
    width: 8px; height: 8px; border-radius: 50%;
    margin-top: 6px; flex-shrink: 0;
}
.fs-feed-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-feed-body strong {
    font-size: 0.85rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-feed-body small { color: var(--fs-muted); font-size: 0.72rem; }

/* Thread view */
.fs-thread-view {
    background: var(--fs-card);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    padding: 24px;
    padding-top: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    position: relative;
    overflow: visible;
}
.fs-thread-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    position: relative;
    width: 56px;
    height: 56px;
    padding: 0;
    margin-bottom: 12px;
    overflow: visible;
}
.fs-thread-author .fs-user-link {
    display: block;
    line-height: 0;
    width: 100%;
    height: 100%;
}
.fs-thread-author .fs-user-link .fs-avatar,
.fs-thread-author > .fs-avatar {
    width: 100%;
    height: 100%;
}
.fs-avatar-follow-btn {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--fs-card, #1e1e1e);
    background: #007bff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.45);
    z-index: 3;
    transition: background 0.15s ease, transform 0.15s ease;
}
.fs-avatar-follow-btn:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
    transform: translate(-50%, 50%) scale(1.08);
}
.fs-avatar-follow-btn.is-following {
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}
.fs-avatar-follow-btn.is-following:hover {
    background: #16a34a;
}
.fs-avatar-follow-btn.is-follow-flash {
    animation: fs-follow-pop 0.45s ease;
    pointer-events: none;
}
.fs-avatar-follow-btn.is-follow-gone {
    opacity: 0;
    transform: translate(-50%, 50%) scale(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
@keyframes fs-follow-pop {
    0% { transform: translate(-50%, 50%) scale(0.7); }
    55% { transform: translate(-50%, 50%) scale(1.15); }
    100% { transform: translate(-50%, 50%) scale(1); }
}
.fs-reply-author {
    width: 44px;
    height: 44px;
    padding: 0;
}
.fs-reply-author .fs-avatar-follow-btn {
    width: 16px;
    height: 16px;
    font-size: 0.5rem;
    border-width: 2px;
}
.fs-reply-author.is-nested {
    width: 28px;
    height: 28px;
}
.fs-reply-author.is-nested .fs-avatar-follow-btn {
    width: 14px;
    height: 14px;
    font-size: 0.45rem;
}
.fs-reply .fs-reply-author {
    margin-top: 0;
}
.fs-rich-body { line-height: 1.7; color: #333; word-break: break-word; }
.fs-rich-body img { max-width: 100%; border-radius: 10px; }
.fs-rich-body a,
.fs-rich-body a.fs-auto-link {
    color: var(--fs-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.fs-rich-body a:hover {
    color: #0056b3;
}
.fs-mention {
    color: inherit;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
}
.fs-mention:hover,
.fs-mention:focus {
    color: var(--fs-blue, #007bff);
    text-decoration: none !important;
}
body.dark-mode .fs-mention:hover,
body.dark-mode .fs-mention:focus {
    color: #4da3ff;
}
body:not(.dark-mode) .fs-mention:hover,
body:not(.dark-mode) .fs-mention:focus {
    color: #007bff;
}
.fs-rich-body a.fs-mention {
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important;
}
.fs-reply .fs-rich-body a {
    text-decoration: none !important;
    border-bottom: none !important;
}
.fs-reply .fs-rich-body a:hover,
.fs-reply .fs-rich-body a:focus {
    text-decoration: none !important;
}
.fs-user-link {
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}
.fs-user-link:hover {
    color: var(--fs-blue, #007bff);
    text-decoration: none;
}
.fs-user-link .fs-avatar,
.fs-user-link .fs-avatar-sm {
    display: block;
    transition: opacity 0.15s ease;
}
.fs-user-link:hover .fs-avatar,
.fs-user-link:hover .fs-avatar-sm {
    opacity: 0.85;
}
.fs-thread-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--fs-border);
    border-radius: 14px;
    box-sizing: border-box;
}
body:not(.dark-mode) .fs-thread-media {
    background: #f4f6f8;
}
.fs-thread-media > a {
    display: flex;
    justify-content: center;
    max-width: 100%;
}
.fs-proof-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 560px);
    max-height: min(72vh, 720px);
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--fs-border);
    object-fit: contain;
    background: #111;
}
body:not(.dark-mode) .fs-proof-img {
    background: #f8f9fa;
}
.fs-vote-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-vote-btn {
    border: 1px solid rgba(0,123,255,0.25);
    background: #f8fbff;
    color: var(--fs-blue);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.08s ease, color 0.08s ease, border-color 0.08s ease, transform 0.08s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.fs-vote-btn:hover { background: var(--fs-blue); color: #fff; }
.fs-vote-btn:active { transform: scale(0.94); }
.fs-vote-btn.is-active {
    background: var(--fs-blue);
    color: #fff;
    border-color: var(--fs-blue);
}
.fs-vote-btn.down { border-color: rgba(220,53,69,0.25); color: #dc3545; background: #fff5f5; }
.fs-vote-btn.down:hover,
.fs-vote-btn.down.is-active { background: #dc3545; color: #fff; border-color: #dc3545; }

.fs-replies {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 8px 14px 6px;
}
.fs-replies[hidden] {
    display: none !important;
}
body:not(.dark-mode) .fs-replies {
    background: #fff;
    border-color: var(--fs-border);
}

.fs-comments-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
}
.fs-view-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 123, 255, 0.35);
    background: rgba(0, 123, 255, 0.12);
    color: #4da3ff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fs-view-comments-btn:hover {
    background: rgba(0, 123, 255, 0.22);
    border-color: rgba(0, 123, 255, 0.55);
    color: #7bb8ff;
}
.fs-view-comments-btn.is-hide {
    background: transparent;
    border-color: #3a3a3a;
    color: #94a3b8;
}
.fs-view-comments-btn.is-hide:hover {
    border-color: #4da3ff;
    color: #4da3ff;
    background: rgba(0, 123, 255, 0.08);
}
body:not(.dark-mode) .fs-view-comments-btn {
    background: rgba(0, 123, 255, 0.08);
    color: #007bff;
}
body:not(.dark-mode) .fs-view-comments-btn.is-hide {
    background: #fff;
    border-color: #dee2e6;
    color: #6c757d;
}

.fs-reply {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 4px;
    margin-bottom: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    position: relative;
}

.fs-reply-block { margin-bottom: 0; }

.fs-replies-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 2px 0 12px;
    cursor: pointer;
}
.fs-replies-toggle:hover { color: var(--fs-blue); }
.fs-replies-toggle i { font-size: 0.75rem; }
.fs-reply-block.is-replies-open > .fs-replies-toggle:not(.is-open) {
    display: none;
}

.fs-nested-replies {
    position: relative;
}
/* YouTube-style thread chain: each nesting level gets its own spine */
.fs-nested-rail {
    position: relative;
    margin-left: 20px;
    padding-left: 0;
    border-left: none;
}
.fs-nested-rail > .fs-reply-block {
    position: relative;
    padding-left: 28px;
}
.fs-nested-rail > .fs-reply-block > .fs-reply {
    margin-left: 0 !important;
}
/* Continuous vertical spine through siblings (and into nested kids) */
.fs-nested-rail > .fs-reply-block::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3a3a3a;
}
/* Last sibling with no further nest: stop spine at avatar */
.fs-nested-rail > .fs-reply-block:last-child:not(:has(> .fs-nested-rail)):not(:has(> .fs-nested-replies))::before {
    bottom: auto;
    height: 30px;
}
/* Horizontal branch into avatar */
.fs-nested-rail > .fs-reply-block::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 26px;
    width: 16px;
    height: 2px;
    background: #3a3a3a;
}
body:not(.dark-mode) .fs-nested-rail > .fs-reply-block::before,
body:not(.dark-mode) .fs-nested-rail > .fs-reply-block::after {
    background: #cfd6dd;
}
.fs-avatar-sm {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem;
}

/* Fixed @mention chip (cannot be deleted while typing) */
.fs-mention-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,123,255,0.18);
    color: #4da3ff;
    font-size: 0.82rem;
    font-weight: 700;
    user-select: none;
    pointer-events: none;
}
body:not(.dark-mode) .fs-mention-chip {
    background: rgba(0,123,255,0.12);
    color: #007bff;
}

.fs-reply-menu {
    position: relative;
    margin-left: auto !important;
    flex-shrink: 0;
}
.fs-reply-menu-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 0.95rem;
    box-shadow: none !important;
}
.fs-reply-menu-btn:hover,
.fs-reply-menu-btn:focus {
    background: rgba(255,255,255,0.06) !important;
    color: #fff;
    outline: none;
}
body:not(.dark-mode) .fs-reply-menu-btn:hover,
body:not(.dark-mode) .fs-reply-menu-btn:focus {
    background: rgba(0,0,0,0.06) !important;
    color: #334155;
}
.fs-reply-menu-drop {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 40;
    min-width: 148px;
    padding: 6px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
body:not(.dark-mode) .fs-reply-menu-drop {
    background: #fff;
    border-color: var(--fs-border);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.fs-reply-menu-drop button {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    cursor: pointer;
}
body:not(.dark-mode) .fs-reply-menu-drop button { color: #334155; }
.fs-reply-menu-drop button:hover { background: #2a2a2a; }
body:not(.dark-mode) .fs-reply-menu-drop button:hover { background: #f1f5f9; }
.fs-reply-menu-drop button.text-danger { color: #f87171; }
body:not(.dark-mode) .fs-reply-menu-drop button.text-danger { color: #dc3545; }

.fs-reply-edit {
    margin: 8px 0 4px;
}
.fs-reply-edit-box {
    min-height: 72px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #212529;
    outline: none;
}
body.dark-mode .fs-reply-edit-box {
    border-color: #333;
    background: #121212;
    color: #f1f5f9;
}
.fs-reply-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.fs-reply-save,
.fs-reply-cancel {
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}
.fs-reply-save { background: #007bff; color: #fff; }
.fs-reply-cancel { background: #eef2f6; color: #334155; }
body.dark-mode .fs-reply-cancel { background: #2a2a2a; color: #cbd5e1; }

/* Fragrind-style edit mode on composer */
.fs-edit-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}
.fs-edit-mode-bar span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}
.fs-edit-mode-bar #btn-cancel-edit {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}
.fs-edit-mode-bar #btn-cancel-edit:hover { color: #fff; }
.fs-reply.fs-reply-editing {
    opacity: 0.55;
    outline: none;
    background: rgba(0,123,255,0.06);
    border-radius: 10px;
}
.fs-composer-bar.is-editing .fs-comment-field {
    border-color: rgba(0,123,255,0.45);
}

/* Fragrind-style comment composer */
.fs-composer-bar {
    position: relative;
    padding: 12px 0 4px;
}
.fs-reply-hint {
    font-size: 0.8rem;
    color: var(--fs-blue);
    margin-bottom: 8px;
}
.fs-comment-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-comment-avatar { width: 40px; height: 40px; flex-shrink: 0; }
.fs-comment-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f5f7;
    border: 1px solid #e5e9ef;
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
    min-height: 44px;
}
.fs-comment-tools {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.fs-comment-tool {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.fs-comment-tool:hover { background: rgba(0,123,255,0.1); color: var(--fs-blue); }
.fs-gif-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    padding: 2px 4px;
    line-height: 1;
}
.fs-comment-input {
    flex: 1;
    min-width: 0;
    min-height: 24px;
    max-height: 96px;
    overflow-y: auto;
    overflow-x: hidden;
    outline: none;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1e293b;
    padding: 4px 2px;
    background: transparent;
    white-space: pre-wrap;
    word-break: break-word;
}
.fs-comment-input *,
.fs-comment-input *::before,
.fs-comment-input *::after {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    box-shadow: none !important;
    border: 0 !important;
}
/* Never show pasted screenshots inside the pill — preview sits above */
.fs-comment-input img {
    display: none !important;
}
.fs-comment-input:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.fs-comment-words {
    display: none;
}
.fs-comment-send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,123,255,0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}
.fs-comment-send:hover { background: #0062cc; transform: scale(1.05); }
.fs-comment-send:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.fs-comment-attach:not(:empty) {
    margin: 0 0 8px 50px;
    display: flex;
    align-items: flex-start;
}
.fs-attach-thumb {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: visible;
    flex-shrink: 0;
}
.fs-attach-thumb img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #333;
    background: #0f0f0f;
}
.fs-attach-thumb .fs-attach-clear {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    padding: 0;
    line-height: 1;
}
.fs-attach-thumb .fs-attach-clear:hover {
    background: #dc3545;
}

/* Posted comment GIFs — compact square */
.fs-reply [data-reply-image] img,
.fs-reply .fs-proof-img {
    width: 160px;
    height: 170px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* GIF picker panel — compact popover */
.fs-gif-picker {
    position: absolute;
    left: 50px;
    bottom: calc(100% + 8px);
    width: min(400px, calc(100% - 60px));
    max-width: 400px;
    background: #161616;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.4);
    z-index: 40;
}
.fs-gif-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0d0d0d;
    border: 1px solid rgba(0,123,255,0.55);
    border-radius: 999px;
    padding: 6px 12px;
    color: #94a3b8;
}
.fs-gif-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #f1f5f9;
    outline: none;
    font-size: 0.82rem;
    min-width: 0;
}
.fs-gif-powered {
    margin: 6px 2px 8px;
    font-size: 0.68rem;
    color: #64748b;
}
.fs-gif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: 168px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1a1a1a;
}
/* Beautiful custom scrollbar (WebKit) */
.fs-gif-grid::-webkit-scrollbar {
    width: 6px;
}
.fs-gif-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 999px;
}
.fs-gif-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 999px;
    border: 1px solid #0f172a;
}
.fs-gif-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}
.fs-gif-grid button {
    border: 0;
    padding: 0;
    background: #0d0d0d;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fs-gif-grid button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.45);
}
.fs-gif-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-gif-badge {
    margin-top: 8px;
    border: 0;
    background: #007bff;
    color: #fff;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
}
@media (max-width: 576px) {
    .fs-gif-picker {
        left: 0;
        width: 100%;
        max-width: none;
    }
    .fs-gif-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: 150px;
    }
    .fs-comment-attach:not(:empty) { margin-left: 0; }
}

/* Editor */
.fs-editor {
    min-height: 140px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    outline: none;
    color: #212529;
    caret-color: #212529;
}
.fs-editor :is(p, div, span, li, font, b, strong, i, em, u, h3, h4, blockquote) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}
.fs-editor:empty:before {
    content: attr(data-placeholder);
    color: #adb5bd;
}
.fs-editor-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fs-editor-toolbar button,
.fs-editor-toolbar label {
    width: 36px; height: 36px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #495057;
}
.fs-editor-toolbar button:hover,
.fs-editor-toolbar label:hover {
    background: var(--fs-blue-soft);
    color: var(--fs-blue);
}

.fs-thread-publish-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.fs-thread-publish-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.fs-thread-image-btn {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    background: #2a2a2a;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fs-thread-image-btn:hover {
    background: rgba(0, 123, 255, 0.15);
    color: #4da3ff;
    border-color: rgba(0, 123, 255, 0.45);
}
body:not(.dark-mode) .fs-thread-image-btn {
    background: #f3f5f7;
    border-color: #e5e9ef;
    color: #64748b;
}
body:not(.dark-mode) .fs-thread-image-btn:hover {
    background: var(--fs-blue-soft, #e8f1ff);
    color: var(--fs-blue, #007bff);
    border-color: rgba(0, 123, 255, 0.35);
}
.fs-thread-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b9eff 0%, #007bff 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.fs-thread-publish-btn i {
    font-size: 0.95rem;
    line-height: 1;
}
.fs-thread-publish-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.45);
    transform: translateY(-1px);
    color: #fff;
}
.fs-thread-publish-btn:active {
    transform: translateY(0);
}
.fs-thread-publish-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Profile */
.fs-profile-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #e0eaff 0%, #ffffff 100%);
    border-radius: var(--fs-radius);
    border: 1px solid var(--fs-border);
    position: relative;
}
.fs-profile-edit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-blue, #007bff);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 2;
}
.fs-profile-edit-btn:hover {
    background: #0056b3;
    color: #fff !important;
    transform: scale(1.05);
}
.fs-edit-avatar {
    display: flex;
    align-items: center;
    gap: 18px;
}
.fs-avatar-picker {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.fs-avatar-picker-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid rgba(0, 123, 255, 0.35);
    background: #1e293b;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.fs-avatar-picker:hover .fs-avatar-picker-img,
.fs-avatar-picker:focus-within .fs-avatar-picker-img {
    transform: scale(1.03);
    border-color: #007bff;
}
.fs-avatar-picker-icon {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b9eff, #007bff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.45);
    border: 2px solid #111;
    pointer-events: none;
}
body:not(.dark-mode) .fs-avatar-picker-icon {
    border-color: #fff;
}
.fs-avatar-picker-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 0;
}
.fs-avatar-picker-meta {
    min-width: 0;
    flex: 1;
}
.fs-avatar-filename {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.12);
    color: #4da3ff;
    font-size: 0.78rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fs-avatar-filename::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    flex-shrink: 0;
}
body:not(.dark-mode) .fs-avatar-filename {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}
.fs-profile-stats {
    display: flex;
    gap: 24px;
}
.fs-profile-stats div {
    text-align: center;
}
.fs-profile-stats strong {
    display: block;
    font-size: 1.25rem;
    color: var(--fs-blue);
}
.fs-profile-stats span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fs-muted);
    font-weight: 700;
}

/* Profile / page referrals (dark-theme friendly) */
.fs-referrals-card {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 16px;
    padding: 18px 18px 16px;
    color: #e2e8f0;
}
body:not(.dark-mode) .fs-referrals-card {
    background: #fff !important;
    border-color: #e8edf3 !important;
    color: inherit;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.fs-ref-earn-pill {
    font-size: 0.78rem;
    color: #94a3b8;
    background: rgba(0, 123, 255, 0.12);
    border: 1px solid rgba(0, 123, 255, 0.22);
    border-radius: 999px;
    padding: 4px 12px;
}
.fs-ref-earn-pill strong {
    color: #4da3ff;
}
body:not(.dark-mode) .fs-ref-earn-pill {
    color: #64748b;
    background: rgba(0, 123, 255, 0.08);
}
body:not(.dark-mode) .fs-ref-earn-pill strong {
    color: #007bff;
}
.fs-ref-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.fs-ref-link-row .form-control,
.fs-ref-input {
    border-radius: 999px;
    font-size: 0.8rem;
    background: #121212 !important;
    border-color: #333 !important;
    color: #e2e8f0 !important;
}
body:not(.dark-mode) .fs-ref-link-row .form-control,
body:not(.dark-mode) .fs-ref-input {
    background: #fff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}
.fs-ref-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 575.98px) {
    .fs-ref-stat-row {
        grid-template-columns: 1fr;
    }
}
.fs-ref-mini-stat {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.fs-ref-mini-stat strong {
    display: block;
    font-size: 1.15rem;
    color: #4da3ff;
}
.fs-ref-mini-stat span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 700;
}
body:not(.dark-mode) .fs-ref-mini-stat {
    background: #f8fafc;
    border-color: #e8edf3;
}
body:not(.dark-mode) .fs-ref-mini-stat strong {
    color: #007bff;
}
.fs-ref-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fs-ref-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit !important;
    background: #121212;
    border: 1px solid #2a2a2a;
    transition: background 0.15s ease, border-color 0.15s ease;
}
body:not(.dark-mode) .fs-ref-item {
    background: #f8fafc;
    border-color: #e8edf3;
}
.fs-ref-item:hover {
    border-color: rgba(0, 123, 255, 0.35);
    background: rgba(0, 123, 255, 0.08);
    color: inherit !important;
}
.fs-ref-comm {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #22c55e;
}

/* FSP Wallet */
.fs-wallet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 767px) {
    .fs-wallet-grid { grid-template-columns: 1fr; }
}
.fs-wallet-stat {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 14px;
    padding: 16px;
    color: #e2e8f0;
}
body:not(.dark-mode) .fs-wallet-stat {
    background: #fff !important;
    border-color: #e8edf3 !important;
    color: inherit;
}
.fs-wallet-stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 700;
}
.fs-wallet-stat .value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #007bff;
    line-height: 1.2;
}
.fs-wallet-stat .value small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}
.fs-wallet-stat .sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}
.fs-xp-bar {
    height: 6px;
    background: rgba(148,163,184,0.25);
    border-radius: 999px;
    overflow: hidden;
}
.fs-xp-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 999px;
}
.fs-wallet-card {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 16px;
    padding: 18px;
    color: #e2e8f0;
}
body:not(.dark-mode) .fs-wallet-card {
    background: #fff !important;
    border-color: #e8edf3 !important;
    color: inherit;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
body.dark-mode .fs-wallet-card .form-control,
body.dark-mode .fs-wallet-card .form-select,
.fs-wallet-card .form-control,
.fs-wallet-card .form-select {
    background: #121212;
    border-color: #333;
    color: #e2e8f0;
}
body:not(.dark-mode) .fs-wallet-card .form-control,
body:not(.dark-mode) .fs-wallet-card .form-select {
    background: #fff;
    border-color: #ced4da;
    color: inherit;
}
body.dark-mode .fs-wallet-card .form-control:focus,
body.dark-mode .fs-wallet-card .form-select:focus,
.fs-wallet-card .form-control:focus,
.fs-wallet-card .form-select:focus {
    background: #121212;
    border-color: #007bff;
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.2);
}
body:not(.dark-mode) .fs-wallet-card .form-control:focus,
body:not(.dark-mode) .fs-wallet-card .form-select:focus {
    background: #fff;
    color: inherit;
}
body.dark-mode .fs-wallet-card h2,
body.dark-mode .fs-wallet-card .fw-semibold,
.fs-wallet-card h2 {
    color: #f1f5f9;
}
body:not(.dark-mode) .fs-wallet-card h2 {
    color: inherit;
}
body.dark-mode .fs-wallet-card strong,
.fs-wallet-card strong {
    color: #93c5fd;
}
body:not(.dark-mode) .fs-wallet-card strong {
    color: inherit;
}

.fs-wd-recent {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fs-wd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body:not(.dark-mode) .fs-wd-row {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}
.fs-wd-amt {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.88rem;
}
.fs-wd-amt span {
    color: var(--fs-muted, #94a3b8);
    font-size: 0.75rem;
    font-weight: 600;
}
.fs-wd-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.fs-wd-status.is-pending {
    background: rgba(255, 193, 7, 0.18);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.35);
}
.fs-wd-status.is-rejected {
    background: rgba(220, 53, 69, 0.16);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.35);
}
.fs-wd-status.is-paid {
    background: rgba(40, 167, 69, 0.16);
    color: #5dd879;
    border: 1px solid rgba(40, 167, 69, 0.35);
}
body:not(.dark-mode) .fs-wd-status.is-pending { color: #b8860b; }
body:not(.dark-mode) .fs-wd-status.is-rejected { color: #c82333; }
body:not(.dark-mode) .fs-wd-status.is-paid { color: #1e7e34; }

.fs-auth-card { border-radius: 20px !important; }
.fs-turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
}
.fs-turnstile-wrap .cf-turnstile {
    min-height: 65px;
}

.tracking { letter-spacing: 1px; }

/* Hybrid home layout */
.fs-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}
.fs-sites-grid > .item-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}
.fs-sites-grid > .fs-sites-ad {
    grid-column: 1 / -1;
    width: 100%;
}
#sites-feed-sentinel {
    height: 8px;
    width: 100%;
    pointer-events: none;
}
@media (max-width: 1199.98px) {
    .fs-sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .fs-sites-grid { grid-template-columns: 1fr; }
}

/* Dark mode */
body.dark-mode .fs-category-card,
body.dark-mode .fs-thread-card,
body.dark-mode .fs-side-block,
body.dark-mode .fs-thread-view,
body.dark-mode .fs-composer.card,
body.dark-mode .fs-composer-bar,
body.dark-mode .fs-auth-card,
body.dark-mode .fs-editor {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: #e8e8e8;
}
body.dark-mode .fs-editor :is(p, div, span, li, font, b, strong, i, em, u, h3, h4, blockquote, pre, code) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit;
}
body.dark-mode .fs-editor a {
    color: #4da3ff !important;
    -webkit-text-fill-color: #4da3ff;
}

/* Dark inputs — new thread, submit site, wallet, auth, etc. */
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode textarea.form-control,
html.dark-mode .form-control,
html.dark-mode .form-select {
    background-color: #121212 !important;
    border-color: #333 !important;
    color: #e8eef5 !important;
    box-shadow: none;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.2) !important;
}
body.dark-mode .form-control::placeholder,
body.dark-mode textarea.form-control::placeholder {
    color: #64748b !important;
    opacity: 1;
}
body.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%94a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}
body.dark-mode .form-select option {
    background-color: #1e1e1e;
    color: #e8eef5;
}
body.dark-mode .form-label {
    color: #cbd5e1;
}
body.dark-mode .card .form-control,
body.dark-mode .card .form-select {
    background-color: #121212 !important;
}
body.dark-mode .fs-category-card h5,
body.dark-mode .fs-thread-card h2,
body.dark-mode .fs-feed-body strong,
body.dark-mode .fs-rich-body { color: #f1f1f1 !important; }
body.dark-mode .fs-rich-body a,
body.dark-mode .fs-rich-body a.fs-auto-link {
    color: #4da3ff;
}
body.dark-mode .fs-rich-body a:hover {
    color: #7bbfff;
}
body.dark-mode .fs-replies {
    background: #111111 !important;
    border-color: #2a2a2a !important;
}
body.dark-mode .fs-reply {
    background: transparent !important;
    border-color: transparent !important;
}
body.dark-mode .fs-profile-hero {
    background: linear-gradient(135deg, #1a2332 0%, #1e1e1e 100%);
}
body.dark-mode .navbar {
    background: #1a1a1a !important;
    border-color: #333 !important;
}
body.dark-mode .navbar .nav-link { color: #ccc !important; }
body.dark-mode .navbar .nav-link.active { color: #4da3ff !important; }
body.dark-mode .navbar-brand .logo-link { color: #fff !important; }
body.dark-mode .fs-vote-btn { background: #2a2a2a; }
body.dark-mode .fs-vote-btn.is-active { background: #007bff; color: #fff; }
body.dark-mode .fs-vote-btn.down.is-active { background: #dc3545; color: #fff; }
body:not(.dark-mode) .fs-avatar-follow-btn { border-color: #fff; }
body.dark-mode .fs-avatar-follow-btn { border-color: #1e1e1e; }
body.dark-mode .fs-comment-field {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
body.dark-mode .fs-comment-input { color: #f1f5f9; background: transparent; }
body.dark-mode .fs-comment-input *,
body.dark-mode .fs-comment-input *::before,
body.dark-mode .fs-comment-input *::after {
    color: #f1f5f9 !important;
    background: transparent !important;
}
body.dark-mode .fs-comment-tool { color: #94a3b8; }
body.dark-mode .stats-wrapper { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .stats-wrapper .text-dark { color: #fff !important; }

/* Dark theme — no white surfaces */
body.dark-mode .badge-blue,
html.dark-mode .badge-blue {
    background-color: rgba(0, 123, 255, 0.18) !important;
    color: #7bb8ff !important;
    border: 1px solid rgba(77, 163, 255, 0.35);
}
body.dark-mode .alert-light,
body.dark-mode .alert-secondary,
html.dark-mode .alert-light {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .alert-light a,
body.dark-mode .alert a {
    color: #4da3ff !important;
}
body.dark-mode .bg-white,
body.dark-mode .bg-light,
html.dark-mode .bg-white,
html.dark-mode .bg-light {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}
body.dark-mode .text-dark,
body.dark-mode .fs-thread-card .text-dark,
body.dark-mode .fs-thread-title {
    color: #f1f1f1 !important;
}
body.dark-mode .card,
body.dark-mode .dropdown-menu {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .fs-nav-account-menu {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}
body.dark-mode .fs-nav-account-menu .dropdown-item {
    background: transparent !important;
    color: #e8e8e8 !important;
    border-radius: 8px;
}
body.dark-mode .fs-nav-account-menu .dropdown-item:hover,
body.dark-mode .fs-nav-account-menu .dropdown-item:focus,
body.dark-mode .fs-nav-account-menu .dropdown-item:active {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}
body.dark-mode .fs-nav-account-menu .fs-nav-logout,
body.dark-mode .fs-nav-account-menu .dropdown-item.text-danger {
    color: #f87171 !important;
    background: transparent !important;
}
body.dark-mode .fs-nav-account-menu .fs-nav-logout:hover,
body.dark-mode .fs-nav-account-menu .fs-nav-logout:focus,
body.dark-mode .fs-nav-account-menu .dropdown-item.text-danger:hover,
body.dark-mode .fs-nav-account-menu .dropdown-item.text-danger:focus {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}
body.dark-mode .list-group-item {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .breadcrumb {
    background: transparent !important;
    --bs-breadcrumb-item-active-color: #d0d0d0;
    --bs-breadcrumb-divider-color: #888;
}
body.dark-mode .breadcrumb-item,
body.dark-mode .breadcrumb-item.active {
    color: #d0d0d0 !important;
}
body.dark-mode .breadcrumb-item a {
    color: #6ea8fe !important;
}
body.dark-mode .breadcrumb-item a:hover {
    color: #93c5fd !important;
}
body.dark-mode .breadcrumb-item + .breadcrumb-item::before {
    color: #888 !important;
}
body.dark-mode .table,
body.dark-mode .table > :not(caption) > * > * {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}
body.dark-mode .fs-empty {
    background: #1e1e1e;
    border: 1px dashed #333;
    border-radius: 14px;
    color: #94a3b8;
}
.fs-join-prompt {
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #cbd5e1;
}
.fs-join-prompt a {
    color: #4da3ff;
    font-weight: 700;
    text-decoration: none;
}
.fs-join-prompt a:hover {
    color: #7bb8ff;
    text-decoration: underline;
}
body:not(.dark-mode) .fs-join-prompt {
    background: #f8fafc;
    border-color: #e5e9ef;
    color: #334155;
}
body:not(.dark-mode) .fs-join-prompt a {
    color: #007bff;
}

/* Nav / thread cards on tablet+phone */
@media (max-width: 991px) {
    .fs-thread-card {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .fs-thread-card-link {
        align-items: flex-start;
        width: 100%;
        flex: 0 0 auto;
        overflow: visible;
        min-height: 0;
        height: auto;
    }
    .fs-stats {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 12px 16px;
        text-align: left;
        margin-top: 0;
        padding-top: 10px;
        border-top: 1px solid var(--fs-border, #2a2a2a);
    }
    body.dark-mode .fs-stats {
        border-top-color: #2a2a2a;
    }
    body:not(.dark-mode) .fs-stats {
        border-top-color: #eef2f6;
    }
    .fs-stats .fs-thread-menu {
        width: auto;
        margin: 0 0 0 auto;
        order: 99;
    }
    .fs-profile-hero .fs-profile-stats {
        width: 100%;
        justify-content: space-around;
        margin-left: 0 !important;
    }
    .fs-reply { margin-left: 0 !important; }
}

/* In-page toast (no browser alert / hostname title) */
.fs-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}
.fs-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.fs-toast strong { font-weight: 700; }
.fs-toast span { opacity: 0.85; font-size: 0.85rem; }
.fs-toast-success { background: #0f766e; }
.fs-toast-error { background: #b91c1c; }
.fs-toast-warning { background: #b45309; }

.fs-link-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    width: min(360px, 92vw);
}
.fs-link-prompt label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.fs-link-prompt input {
    width: 100%;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    padding: 10px 12px;
}
.fs-link-prompt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.fs-link-prompt-actions button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}
.fs-link-prompt-actions [data-ok] {
    background: #007bff;
    color: #fff;
}
.fs-link-prompt-actions [data-cancel] {
    background: #eef2f6;
    color: #334155;
}

/* In-app confirm modal (never browser confirm / localhost title) */
.fs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fs-modal {
    width: min(360px, 100%);
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    color: #f1f5f9;
}
.fs-modal-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}
.fs-modal-text {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: #94a3b8;
}
.fs-modal:has(.fs-analytics-grid) {
    width: min(420px, 100%);
}
.fs-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 18px;
}
.fs-analytics-stat {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}
.fs-analytics-stat span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.fs-analytics-stat strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 6px 0 4px;
    color: #fff;
}
.fs-analytics-stat small {
    color: #64748b;
    font-size: 0.72rem;
}
body:not(.dark-mode) .fs-analytics-stat {
    background: #f1f5f9;
}
body:not(.dark-mode) .fs-analytics-stat strong {
    color: #0f172a;
}
.fs-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.fs-modal-cancel,
.fs-modal-danger {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}
.fs-modal-cancel {
    background: #2a2a2a;
    color: #e2e8f0;
}
.fs-modal-danger {
    background: #dc3545;
    color: #fff;
}
.fs-thread-view { position: relative; }
.fs-thread-more {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
}
.fs-thread-more-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
}
.fs-thread-more-btn:hover { background: transparent; color: #fff; }
.fs-thread-more-menu {
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 180px;
    background: #1a1f2b;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.fs-thread-more-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    padding: 10px 16px;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
}
.fs-thread-more-item:hover { background: rgba(59,130,246,.18); }
.fs-thread-more-item.is-danger { color: #ff4d5a; font-weight: 600; }
.fs-thread-more-item.is-danger:hover { background: rgba(220,53,69,.15); }

.fs-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: auto;
}
.fs-report-overlay[hidden] { display: none !important; }
.fs-report-sheet {
    width: min(440px, 100%);
    max-height: min(calc(100vh - 48px), 720px);
    overflow: auto;
    background: #1a2230;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    color: #f1f5f9;
}
.fs-report-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    background: #1a2230;
    z-index: 1;
}
.fs-report-close {
    border: 0;
    background: transparent;
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    cursor: pointer;
}
.fs-report-title {
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.fs-report-head-spacer { display: block; }
.fs-report-prompt {
    padding: 18px 18px 10px;
    margin: 0;
    font-weight: 700;
    font-size: 1.02rem;
}
.fs-report-reason {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #e8eef7;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    font-size: 0.98rem;
}
.fs-report-reason:hover { background: rgba(59,130,246,.18); }
.fs-report-reason i { color: #94a3b8; font-size: 0.72rem; }
.fs-report-step[data-report-step="1"] { padding: 0 0 10px; }
.fs-report-step[data-report-step="2"] { padding: 0 18px 18px; }
.fs-report-step[data-report-step="2"] .fs-report-prompt { padding: 18px 0 8px; }
.fs-report-selected {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: #cbd5e1;
}
.fs-report-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.fs-report-field { position: relative; }
.fs-report-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #38bdf8;
    background: #121826;
    color: #fff;
    padding: 12px 12px 28px;
    resize: vertical;
    min-height: 130px;
    outline: none;
}
.fs-report-textarea:focus { border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
.fs-report-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    pointer-events: none;
}
.fs-report-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #e11d2e;
    color: #fff;
    font-weight: 700;
    padding: 13px;
    cursor: pointer;
    margin-top: 14px;
}
.fs-report-submit:hover { background: #c41222; }
body:not(.dark-mode) .fs-thread-more-menu { background: #fff; border-color: #e2e8f0; }
body:not(.dark-mode) .fs-thread-more-item { color: #1a2332; }
body:not(.dark-mode) .fs-report-sheet,
body:not(.dark-mode) .fs-report-head { background: #fff; color: #111; }
body:not(.dark-mode) .fs-report-reason { color: #111; }
body:not(.dark-mode) .fs-report-textarea { background: #f8fafc; color: #111; }

.fs-ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.85rem 0;
    overflow: visible;
}
.fs-ad-slot .fs-ad-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.fs-ad-slot .fs-ad-inner iframe,
.fs-ad-slot .fs-ad-inner ins,
.fs-ad-slot .fs-ad-inner img {
    max-width: 100% !important;
    height: auto;
}
.fs-ad-slot--sidebar { margin: 0 0 1rem; }
.fs-ad-slot--home_feed {
    grid-column: 1 / -1;
}
.fs-ad-slot--home_feed .fs-ad-inner { padding: 4px 0; }

