/* ============================================================
   BODHOLDT SOCIAL ENGINE — Stylesheet v1.0.0
   Palette: #E81123 #FF8C00 #FDF250 #BAD80A #459C51
            #4FAF96 #00BCF2 #00188F #D82E8A #68217A
   ============================================================ */

:root {
    --s-bg: #0f0f0f;
    --s-panel: #1a1a1a;
    --s-card: #141414;
    --s-border: #2a2a2a;
    --s-text: #ffffff;
    --s-mute: #888888;
    --s-dim: #555555;

    --s-red: #E81123;
    --s-orange: #FF8C00;
    --s-yellow: #FDF250;
    --s-lime: #BAD80A;
    --s-green: #459C51;
    --s-teal: #4FAF96;
    --s-cyan: #00BCF2;
    --s-blue: #00188F;
    --s-pink: #D82E8A;
    --s-purple: #68217A;
}

/* ---- PROFILE WRAPPER ---- */
.bst-profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Roboto', 'Inter', -apple-system, sans-serif;
    color: var(--s-text);
}

/* ---- HERO CARD ---- */
.bst-profile-hero {
    background: var(--s-panel);
    border: 1px solid var(--s-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bst-profile-avatar-wrap {
    flex-shrink: 0;
}

.bst-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--s-cyan);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 188, 242, 0.3);
}

.bst-profile-info {
    flex: 1;
    min-width: 0;
}

.bst-profile-name {
    margin: 0 0 4px 0;
    font-size: 1.8em;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
}

.bst-profile-location {
    color: var(--s-mute);
    font-size: 0.9em;
    margin-bottom: 2px;
}

.bst-profile-joined {
    color: var(--s-dim);
    font-size: 0.8em;
    margin-bottom: 8px;
}

.bst-profile-bio {
    color: #ccc;
    font-size: 0.9em;
    margin: 8px 0;
    line-height: 1.4;
}

.bst-profile-actions {
    margin-top: 10px;
}

/* ---- STATS BAR ---- */
.bst-profile-stats-bar {
    display: flex;
    background: var(--s-card);
    border: 1px solid var(--s-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bst-stat-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid var(--s-border);
}

.bst-stat-item:last-child {
    border-right: none;
}

.bst-stat-num {
    display: block;
    font-size: 1.4em;
    font-weight: 900;
    color: #fff;
}

.bst-stat-label {
    display: block;
    font-size: 0.7em;
    color: var(--s-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ---- BUTTONS ---- */
.bst-btn-follow {
    background: transparent;
    color: var(--s-cyan);
    border: 2px solid var(--s-cyan);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bst-btn-follow:hover {
    background: var(--s-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 188, 242, 0.4);
}

.bst-btn-follow.following {
    background: var(--s-green);
    border-color: var(--s-green);
    color: #000;
}

.bst-btn-follow.following:hover {
    background: var(--s-red);
    border-color: var(--s-red);
    color: #fff;
}

.bst-btn-edit-profile {
    background: transparent;
    color: var(--s-mute);
    border: 1px solid var(--s-border);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: 0.3s;
}

.bst-btn-edit-profile:hover {
    border-color: var(--s-cyan);
    color: var(--s-cyan);
}

.bst-btn-neon {
    background: linear-gradient(90deg, var(--s-cyan), var(--s-purple));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 0.9em;
}

.bst-btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 188, 242, 0.4);
}

/* ---- TABS ---- */
.bst-profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--s-border);
    background: var(--s-panel);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.bst-profile-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 10px;
    color: var(--s-mute);
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    text-align: center;
}

.bst-profile-tab:hover,
.bst-profile-tab.active {
    color: var(--s-text);
    border-bottom-color: var(--s-cyan);
    background: rgba(0, 188, 242, 0.05);
}

.bst-profile-tab-content {
    display: none;
}

.bst-profile-tab-content.active {
    display: block;
}

/* ---- SOCIAL CARD ---- */
.bst-social-card {
    background: var(--s-panel);
    border: 1px solid var(--s-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

/* ---- TEST CARDS ---- */
.bst-test-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bst-test-card {
    background: var(--s-panel);
    border: 1px solid var(--s-border);
    border-radius: 12px;
    padding: 18px;
    transition: border-color 0.3s;
}

.bst-test-card:hover {
    border-color: var(--s-cyan);
}

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

.bst-test-provider {
    font-weight: 700;
    font-size: 1em;
    color: var(--s-cyan);
}

.bst-test-date {
    color: var(--s-dim);
    font-size: 0.8em;
}

.bst-speed-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.bst-speed-dot.excellent { background: var(--s-green); box-shadow: 0 0 6px var(--s-green); }
.bst-speed-dot.good { background: var(--s-orange); box-shadow: 0 0 6px var(--s-orange); }
.bst-speed-dot.poor { background: var(--s-red); box-shadow: 0 0 6px var(--s-red); }

.bst-test-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.bst-test-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bst-metric-val {
    font-size: 1.3em;
    font-weight: 900;
}

.bst-metric-unit {
    font-size: 0.65em;
    color: var(--s-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bst-test-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bst-test-meta {
    color: var(--s-dim);
    font-size: 0.8em;
}

.bst-test-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bst-test-actions button {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--s-border);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.85em;
    color: var(--s-mute);
    transition: 0.2s;
}

.bst-test-actions button:hover {
    background: rgba(0, 188, 242, 0.1);
    border-color: var(--s-cyan);
    color: #fff;
}

.bst-test-actions button.reacted {
    background: rgba(0, 188, 242, 0.12);
    border-color: var(--s-cyan);
    color: var(--s-cyan);
    box-shadow: 0 0 8px rgba(0, 188, 242, 0.15);
}

.bst-btn-delete-test:hover {
    background: rgba(232, 17, 35, 0.1) !important;
    border-color: var(--s-red) !important;
    color: var(--s-red) !important;
}

/* ---- COMMENTS ---- */
.bst-comments-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--s-border);
}

.bst-comments-list {
    max-height: 300px;
    overflow-y: auto;
}

.bst-comment-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    align-items: flex-start;
}

.bst-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.bst-comment-author {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--s-cyan);
}

.bst-comment-text {
    font-size: 0.85em;
    color: #ccc;
    margin-top: 2px;
}

.bst-comment-time {
    font-size: 0.7em;
    color: var(--s-dim);
    margin-top: 2px;
}

.bst-comment-delete {
    background: none;
    border: none;
    color: var(--s-dim);
    cursor: pointer;
    font-size: 0.7em;
    padding: 2px 4px;
}

.bst-comment-delete:hover {
    color: var(--s-red);
}

.bst-comment-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bst-comment-input {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid var(--s-border);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
}

.bst-comment-input:focus {
    border-color: var(--s-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 188, 242, 0.2);
}

.bst-btn-submit-comment {
    background: var(--s-cyan);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85em;
    transition: 0.2s;
}

.bst-btn-submit-comment:hover {
    box-shadow: 0 0 15px rgba(0, 188, 242, 0.4);
}

/* ---- NOTIFICATION BELL ---- */
.bst-notif-bell-wrap {
    position: relative;
    display: inline-block;
}

.bst-notif-bell-btn {
    background: none;
    border: 1px solid var(--s-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1em;
    position: relative;
    transition: 0.3s;
}

.bst-notif-bell-btn:hover {
    border-color: var(--s-cyan);
    box-shadow: 0 0 10px rgba(0, 188, 242, 0.2);
}

.bst-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--s-red);
    color: #fff;
    font-size: 0.6em;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

.bst-notif-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 340px;
    max-height: 400px;
    background: var(--s-panel);
    border: 1px solid var(--s-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 9999;
    overflow: hidden;
}

.bst-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--s-border);
    color: #fff;
}

.bst-notif-mark-btn {
    background: none;
    border: none;
    color: var(--s-cyan);
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 700;
}

.bst-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.bst-notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
    cursor: pointer;
}

.bst-notif-item:hover {
    background: rgba(0, 188, 242, 0.05);
}

.bst-notif-item.unread {
    background: rgba(0, 188, 242, 0.03);
    border-left: 3px solid var(--s-cyan);
}

.bst-notif-msg {
    flex: 1;
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.3;
}

.bst-notif-time {
    font-size: 0.7em;
    color: var(--s-dim);
    margin-top: 3px;
}

/* ---- LEADERBOARD ---- */
.bst-leaderboard-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--s-bg);
    border: 1px solid var(--s-border);
    border-radius: 12px;
    padding: 25px;
    font-family: 'Roboto', 'Inter', sans-serif;
    color: var(--s-text);
}

.bst-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.bst-leaderboard-header h2 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.bst-leaderboard-filters {
    display: flex;
    gap: 10px;
}

.bst-leaderboard-body {
    transition: opacity 0.3s;
}

.bst-lb-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--s-border);
    transition: background 0.2s;
}

.bst-lb-row:hover {
    background: rgba(0, 188, 242, 0.05);
}

.bst-lb-row:last-child {
    border-bottom: none;
}

.bst-lb-top1 {
    background: rgba(253, 242, 80, 0.05);
    border-left: 3px solid var(--s-yellow);
}

.bst-lb-top2 {
    background: rgba(192, 192, 192, 0.05);
    border-left: 3px solid #c0c0c0;
}

.bst-lb-top3 {
    background: rgba(205, 127, 50, 0.05);
    border-left: 3px solid #cd7f32;
}

.bst-lb-rank {
    width: 40px;
    text-align: center;
    font-weight: 900;
    font-size: 1.1em;
    color: var(--s-mute);
}

.bst-lb-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.bst-lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--s-border);
    object-fit: cover;
}

.bst-lb-user span {
    font-weight: 700;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bst-lb-value {
    font-weight: 900;
    font-size: 1.2em;
    color: var(--s-cyan);
    white-space: nowrap;
}

.bst-lb-value small {
    font-size: 0.6em;
    color: var(--s-mute);
    font-weight: 400;
}

.bst-lb-meta {
    color: var(--s-dim);
    font-size: 0.8em;
    white-space: nowrap;
}

/* ---- ACTIVITY FEED ---- */
.bst-feed-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--s-border);
}

.bst-feed-item:last-child {
    border-bottom: none;
}

.bst-feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--s-border);
}

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

.bst-feed-user {
    font-weight: 700;
    color: var(--s-cyan);
    font-size: 0.9em;
}

.bst-feed-text {
    color: #ccc;
    font-size: 0.85em;
    margin-top: 2px;
}

.bst-feed-speed {
    display: inline-flex;
    gap: 12px;
    margin-top: 6px;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
}

.bst-feed-time {
    color: var(--s-dim);
    font-size: 0.75em;
    margin-top: 4px;
}

/* ---- FORMS ---- */
.bst-social-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--s-border);
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    box-sizing: border-box;
}

.bst-social-input:focus {
    border-color: var(--s-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 188, 242, 0.2);
}

.bst-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bst-form-group label {
    display: block;
    font-size: 0.8em;
    color: var(--s-mute);
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bst-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* ---- LIVE INDICATOR ---- */
.bst-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232, 17, 35, 0.1);
    border: 1px solid rgba(232, 17, 35, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    color: var(--s-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bst-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--s-red);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 17, 35, 0.7); }
    50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(232, 17, 35, 0); }
}

/* ---- SSE TOAST ---- */
.bst-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--s-panel);
    border: 1px solid var(--s-cyan);
    border-radius: 12px;
    padding: 16px 20px;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0, 188, 242, 0.2);
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 380px;
    animation: toastIn 0.4s ease;
    font-family: 'Roboto', sans-serif;
}

.bst-toast-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.bst-toast-user {
    font-weight: 700;
    font-size: 0.9em;
    color: var(--s-cyan);
}

.bst-toast-speed {
    font-size: 0.85em;
    color: #ccc;
    margin-top: 2px;
}

.bst-toast-close {
    background: none;
    border: none;
    color: var(--s-dim);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0;
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .bst-profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .bst-profile-avatar {
        width: 70px;
        height: 70px;
    }

    .bst-profile-name {
        font-size: 1.4em;
    }

    .bst-profile-stats-bar {
        flex-wrap: wrap;
    }

    .bst-stat-item {
        flex: 1 1 33%;
        padding: 10px 5px;
    }

    .bst-stat-num {
        font-size: 1.1em;
    }

    .bst-test-metrics {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bst-test-metric {
        flex: 1 1 40%;
    }

    .bst-test-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .bst-form-row {
        grid-template-columns: 1fr;
    }

    .bst-leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bst-leaderboard-filters {
        width: 100%;
    }

    .bst-leaderboard-filters select {
        flex: 1;
    }

    .bst-lb-meta {
        display: none;
    }

    .bst-notif-dropdown {
        width: 300px;
        right: -10px;
    }

    .bst-toast {
        left: 10px;
        right: 10px;
        bottom: 80px; /* Above the floating notification bell */
        max-width: none;
    }

    .bst-feed-speed {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .bst-profile-tabs {
        font-size: 0.8em;
    }

    .bst-profile-tab {
        padding: 12px 6px;
    }

    .bst-stat-item {
        flex: 1 1 50%;
    }

    .bst-lb-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .bst-lb-avatar {
        width: 28px;
        height: 28px;
    }

    .bst-lb-value {
        font-size: 1em;
    }

    .bst-btn-follow {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .bst-test-actions {
        flex-wrap: wrap;
    }

    .bst-test-actions button {
        min-height: 36px;
        padding: 6px 12px;
    }

    .bst-comment-form {
        flex-direction: column;
    }

    .bst-btn-submit-comment {
        align-self: flex-end;
        padding: 10px 20px;
    }

    .bst-leaderboard-wrapper {
        padding: 15px;
    }

    .bst-toast {
        bottom: 72px;
    }
}

/* ---- SELECT STYLING (leaderboard, filters) ---- */
.bst-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #0a0a0a;
    color: #fff;
    border: 1px solid var(--s-border);
    padding: 10px 32px 10px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.3s;
}

.bst-select:focus {
    border-color: var(--s-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 188, 242, 0.2);
}

/* ---- TOUCH TARGETS ---- */
@media (pointer: coarse) {
    .bst-test-actions button,
    .bst-btn-follow,
    .bst-btn-edit-profile,
    .bst-comment-delete,
    .bst-profile-tab {
        min-height: 44px;
    }
}

/* ================================================================
   LOCAL DISCUSSION THREADS
   ================================================================ */
.bst-disc-wrapper {
    max-width: 900px; margin: 0 auto;
    font-family: 'Roboto Mono', monospace;
    background: #0a0a0a; border: 1px solid #1a1a1a;
}
.bst-disc-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bst-disc-header h2 {
    font-size: 16px; color: #fff; letter-spacing: 3px; margin: 0;
}
.bst-disc-brand {
    display: block; font-size: 9px; color: #555; letter-spacing: 4px;
}
.bst-disc-btn-new {
    background: var(--s-cyan); color: #000; border: none;
    padding: 8px 16px; font-family: 'Roboto Mono', monospace;
    font-weight: 700; font-size: 11px; letter-spacing: 2px;
    cursor: pointer; transition: all 0.2s;
}
.bst-disc-btn-new:hover { background: #4FAF96; }

/* Filters */
.bst-disc-filters {
    display: flex; gap: 8px; padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.bst-disc-select {
    background: #111; border: 1px solid #333; color: #aaa;
    padding: 6px 10px; font-size: 11px;
    font-family: 'Roboto Mono', monospace;
}
.bst-disc-input {
    background: #111; border: 1px solid #333; color: #fff;
    padding: 8px 12px; font-size: 12px;
    font-family: 'Roboto Mono', monospace; width: 100%;
}
.bst-disc-textarea {
    background: #111; border: 1px solid #333; color: #fff;
    padding: 10px 12px; font-size: 12px; width: 100%;
    font-family: 'Roboto Mono', monospace; resize: vertical;
}

/* New Thread Form */
.bst-disc-form {
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,188,242,0.02);
}
.bst-disc-form-title {
    font-size: 10px; color: #00BCF2; letter-spacing: 3px;
    font-weight: 700; margin-bottom: 10px;
}
.bst-disc-form > input,
.bst-disc-form > textarea { margin-bottom: 8px; }
.bst-disc-form-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.bst-disc-form-actions {
    display: flex; gap: 8px;
}
.bst-disc-btn-submit {
    background: var(--s-green); color: #000; border: none;
    padding: 8px 20px; font-family: 'Roboto Mono', monospace;
    font-weight: 700; font-size: 11px; letter-spacing: 2px;
    cursor: pointer; transition: all 0.2s;
}
.bst-disc-btn-submit:hover { background: var(--s-lime); }
.bst-disc-btn-cancel {
    background: none; color: #555; border: 1px solid #333;
    padding: 8px 20px; font-family: 'Roboto Mono', monospace;
    font-size: 11px; cursor: pointer;
}

/* Thread List */
.bst-disc-list { padding: 0; }
.bst-disc-thread {
    display: flex; gap: 12px; padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer; transition: background 0.2s;
}
.bst-disc-thread:hover { background: rgba(255,255,255,0.02); }
.bst-disc-thread-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; border: 1px solid #333;
}
.bst-disc-thread-body { flex: 1; min-width: 0; }
.bst-disc-thread-title {
    font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.bst-disc-thread-preview {
    font-size: 11px; color: #666; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.bst-disc-thread-meta {
    display: flex; gap: 10px; margin-top: 4px; font-size: 10px; color: #444;
}
.bst-disc-cat-badge {
    font-size: 8px; padding: 1px 6px; border: 1px solid;
    letter-spacing: 1px; text-transform: uppercase;
}
.bst-disc-cat-outage { color: var(--s-red); border-color: var(--s-red); }
.bst-disc-cat-coverage { color: var(--s-orange); border-color: var(--s-orange); }
.bst-disc-cat-upgrade { color: var(--s-cyan); border-color: var(--s-cyan); }
.bst-disc-cat-speed { color: var(--s-green); border-color: var(--s-green); }
.bst-disc-cat-carrier { color: var(--s-pink); border-color: var(--s-pink); }
.bst-disc-cat-general { color: var(--s-dim); border-color: var(--s-dim); }

/* Thread Detail */
.bst-disc-detail { padding: 20px; }
.bst-disc-back {
    background: none; border: 1px solid #333; color: #555;
    padding: 6px 14px; font-size: 10px; cursor: pointer;
    font-family: 'Roboto Mono', monospace; margin-bottom: 16px;
    letter-spacing: 1px; transition: all 0.2s;
}
.bst-disc-back:hover { border-color: var(--s-cyan); color: var(--s-cyan); }
.bst-disc-detail-header {
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 16px;
}
.bst-disc-detail-title {
    font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px;
    line-height: 1.3;
}
.bst-disc-replies-header {
    font-size: 10px; font-weight: 700; color: var(--s-cyan);
    letter-spacing: 3px; text-transform: uppercase;
    padding: 12px 0 8px; margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.bst-disc-detail-body {
    font-size: 12px; color: #aaa; line-height: 1.6; margin-bottom: 16px;
    padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bst-disc-reply {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.bst-disc-reply-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.bst-disc-reply-body { flex: 1; min-width: 0; }
.bst-disc-reply-author {
    font-size: 12px; font-weight: 700; color: var(--s-cyan);
}
.bst-disc-reply-text {
    font-size: 12px; color: #aaa; line-height: 1.5; margin-top: 4px;
}
.bst-disc-reply-meta {
    display: flex; gap: 8px; align-items: center;
    font-size: 10px; color: #444; margin-bottom: 2px;
}
.bst-disc-reply-form {
    margin-top: 16px; display: flex; gap: 8px;
}
.bst-disc-reply-form textarea {
    flex: 1; min-height: 40px;
}
.bst-disc-reply-form button {
    background: var(--s-cyan); color: #000; border: none;
    padding: 8px 16px; font-family: 'Roboto Mono', monospace;
    font-weight: 700; font-size: 11px; cursor: pointer; white-space: nowrap;
}

@media (max-width: 768px) {
    .bst-disc-header { flex-direction: column; gap: 8px; }
    .bst-disc-form-row { flex-direction: column; }
    .bst-disc-form-row .bst-disc-input,
    .bst-disc-form-row .bst-disc-select { max-width: 100% !important; }
    .bst-disc-reply-form { flex-direction: column; }
    .bst-disc-reply-form button { width: 100%; }
}
@media (max-width: 480px) {
    .bst-disc-thread { padding: 10px 14px; }
    .bst-disc-thread-meta { flex-wrap: wrap; gap: 6px; font-size: 9px; }
    .bst-disc-thread-title { font-size: 12px; }
    .bst-disc-thread-avatar { width: 28px; height: 28px; }
    .bst-disc-detail { padding: 14px; }
    .bst-disc-detail-title { font-size: 15px; }
    .bst-disc-detail-header { flex-direction: column; }
    .bst-disc-filters { flex-direction: column; }
    .bst-disc-select { width: 100%; }
}
