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

:root {
    --blsc-font-scale: 1;
    --blsc-bg: #ffffff;
    --blsc-bg-soft: #f7f7f9;
    --blsc-bg-hover: #eff3f4;
    --blsc-border: #eaedf0;
    --blsc-text: #0f1419;
    --blsc-text-soft: #536471;
    --blsc-text-muted: #8b98a5;
    --blsc-card: #ffffff;
    --blsc-overlay: rgba(0,0,0,.4);
    --blsc-glass: rgba(255,255,255,.85);
    --blsc-shadow: 0 4px 24px rgba(15,20,25,.1);
    --blsc-accent: #1d9bf0;
    --blsc-accent-hover: #1a8cd8;
    --blsc-on-accent: #ffffff;
    --blsc-primary: var(--blsc-accent);
    --blsc-primary-soft: color-mix(in srgb, var(--blsc-accent) 12%, transparent);
    --blsc-on-primary: #ffffff;
    --blsc-radius: 16px;
}

[data-theme="dark"] {
    --blsc-bg: #000000;
    --blsc-bg-soft: #16181c;
    --blsc-bg-hover: #1d1f23;
    --blsc-border: #2f3336;
    --blsc-text: #e7e9ea;
    --blsc-text-soft: #71767b;
    --blsc-text-muted: #565a5e;
    --blsc-card: #000000;
    --blsc-overlay: rgba(0,0,0,.6);
    --blsc-glass: rgba(0,0,0,.72);
    --blsc-shadow: 0 4px 24px rgba(0,0,0,.5);
    --blsc-accent: #1d9bf0;
    --blsc-accent-hover: #4cb0f5;
    --blsc-on-accent: #ffffff;
    --blsc-primary: var(--blsc-accent);
    --blsc-on-primary: #ffffff;
}

[data-theme="dim"] {
    --blsc-bg: #15202b;
    --blsc-bg-soft: #1e2732;
    --blsc-bg-hover: #273340;
    --blsc-border: #38444d;
    --blsc-text: #f7f9f9;
    --blsc-text-soft: #8b98a5;
    --blsc-text-muted: #5c6e7e;
    --blsc-card: #15202b;
    --blsc-overlay: rgba(0,0,0,.55);
    --blsc-glass: rgba(21,32,43,.78);
    --blsc-shadow: 0 4px 24px rgba(0,0,0,.45);
    --blsc-accent: #1d9bf0;
    --blsc-accent-hover: #4cb0f5;
    --blsc-on-accent: #ffffff;
    --blsc-primary: var(--blsc-accent);
    --blsc-on-primary: #ffffff;
}

[data-theme="midnight"] {
    --blsc-bg: #08090a;
    --blsc-bg-soft: #121417;
    --blsc-bg-hover: #1a1d21;
    --blsc-border: #23272c;
    --blsc-text: #f2f4f6;
    --blsc-text-soft: #6e7681;
    --blsc-text-muted: #4a5159;
    --blsc-card: #08090a;
    --blsc-overlay: rgba(0,0,0,.65);
    --blsc-glass: rgba(8,9,10,.8);
    --blsc-shadow: 0 4px 24px rgba(0,0,0,.6);
    --blsc-accent: #2aa3f0;
    --blsc-accent-hover: #54b6f4;
    --blsc-on-accent: #ffffff;
    --blsc-primary: var(--blsc-accent);
    --blsc-on-primary: #ffffff;
}

[data-theme="sepia"] {
    --blsc-bg: #f6f1e7;
    --blsc-bg-soft: #efe7d6;
    --blsc-bg-hover: #e8dcc4;
    --blsc-border: #ddd0b8;
    --blsc-text: #3a2f22;
    --blsc-text-soft: #7a6a55;
    --blsc-text-muted: #a3937c;
    --blsc-card: #f6f1e7;
    --blsc-overlay: rgba(58,47,34,.4);
    --blsc-glass: rgba(246,241,231,.85);
    --blsc-shadow: 0 4px 24px rgba(58,47,34,.12);
    --blsc-accent: #2080c4;
    --blsc-accent-hover: #1a6fa8;
    --blsc-on-accent: #ffffff;
    --blsc-primary: var(--blsc-accent);
    --blsc-on-primary: #ffffff;
}

html { -webkit-text-size-adjust: 100%; }

[data-theme] { --blsc-primary-soft: color-mix(in srgb, var(--blsc-accent) 14%, transparent); --blsc-accent-bright: var(--blsc-accent); --blsc-icon: var(--blsc-text); --blsc-icon-hover: var(--blsc-bg-hover); }
[data-theme="dark"], [data-theme="dim"], [data-theme="midnight"] { --blsc-accent-bright: #4cb0f5; --blsc-icon: #e7e9ea; --blsc-icon-hover: rgba(231,233,234,.12); }

body.blsc-body {
    font-family: var(--blsc-font);
    background: var(--blsc-bg);
    color: var(--blsc-text);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    font-size: calc(15px * var(--blsc-font-scale, 1));
    transition: background .25s ease, color .25s ease;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; }


.blsc-boot {
    position: fixed; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
    background: var(--blsc-bg); z-index: 9999;
}
.blsc-boot-logo { font-size: 28px; font-weight: 800; color: var(--blsc-text); letter-spacing: -.5px; }
.blsc-spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--blsc-border); border-top-color: var(--blsc-primary);
    animation: blsc-spin .8s linear infinite;
}
@keyframes blsc-spin { to { transform: rotate(360deg); } }


.blsc-shell { display: flex; max-width: 1280px; margin: 0 auto; min-height: 100vh; }

.blsc-nav {
    position: sticky; top: 0; height: 100vh; width: 260px; flex-shrink: 0;
    padding: 12px 8px; display: flex; flex-direction: column;
    border-left: 1px solid var(--blsc-border);
}
.blsc-nav-logo {
    font-size: 24px; font-weight: 800; color: var(--blsc-text);
    padding: 12px 16px; letter-spacing: -.5px; cursor: pointer;
}
.blsc-nav-items { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.blsc-nav-item {
    display: flex; align-items: center; gap: 16px; padding: 12px 16px;
    border-radius: 999px; font-size: 19px; font-weight: 500; transition: background .15s;
    width: fit-content;
}
.blsc-nav-item:hover { background: var(--blsc-bg-hover); }
.blsc-nav-item.active { font-weight: 800; }
.blsc-nav-item svg { width: 26px; height: 26px; flex-shrink: 0; }
.blsc-nav-badge {
    background: var(--blsc-primary); color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center; padding: 0 5px;
}
.blsc-compose-btn {
    margin: 16px 8px 0; padding: 15px; border-radius: 999px;
    background: var(--blsc-accent); color: var(--blsc-on-accent); font-weight: 700; font-size: 16px;
    transition: background .15s; text-align: center;
}
.blsc-compose-btn:hover { background: var(--blsc-accent-hover); }
.blsc-nav-user {
    margin-top: auto; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 999px; transition: background .15s;
}
.blsc-nav-user:hover { background: var(--blsc-bg-hover); }
.blsc-nav-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.blsc-nav-user-info { flex: 1; min-width: 0; }
.blsc-nav-user-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blsc-nav-user-handle { color: var(--blsc-text-soft); font-size: 13px; }

.blsc-main {
    flex: 1; min-width: 0; max-width: 600px;
    border-left: 1px solid var(--blsc-border);
}
.blsc-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px); background: var(--blsc-glass);
    border-bottom: 1px solid var(--blsc-border);
    padding: 14px 18px; display: flex; align-items: center; gap: 16px;
    min-height: 56px;
}
.blsc-header-title { font-size: 20px; font-weight: 800; }
.blsc-header-back { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; transition: background .15s; }
.blsc-header-back:hover { background: var(--blsc-bg-hover); }

.blsc-tabs { display: flex; border-bottom: 1px solid var(--blsc-border); position: sticky; top: 56px; z-index: 99; background: var(--blsc-glass); backdrop-filter: blur(12px); }
.blsc-tab { flex: 1; padding: 16px; text-align: center; font-weight: 600; color: var(--blsc-text-soft); position: relative; transition: background .15s; }
.blsc-tab:hover { background: var(--blsc-bg-hover); }
.blsc-tab.active { color: var(--blsc-text); font-weight: 800; }
.blsc-tab.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 56px; height: 4px; border-radius: 999px; background: var(--blsc-primary);
}

.blsc-aside {
    width: 320px; flex-shrink: 0; padding: 12px 20px; position: sticky; top: 0;
    height: 100vh; overflow-y: auto;
}
.blsc-search-box {
    display: flex; align-items: center; gap: 10px; background: var(--blsc-bg-soft);
    border: 1px solid transparent; border-radius: 999px; padding: 11px 18px; margin-bottom: 16px;
}
.blsc-search-box:focus-within { border-color: var(--blsc-primary); background: var(--blsc-bg); }
.blsc-search-box svg { width: 20px; height: 20px; color: var(--blsc-text-soft); }
.blsc-search-box input { flex: 1; border: none; background: none; outline: none; color: var(--blsc-text); font-size: 15px; }
.blsc-widget { background: var(--blsc-bg-soft); border-radius: var(--blsc-radius); padding: 16px; margin-bottom: 16px; }
.blsc-widget-title { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.blsc-trend { padding: 10px 0; border-bottom: 1px solid var(--blsc-border); }
.blsc-trend:last-child { border-bottom: none; }
.blsc-trend-tag { font-weight: 700; }
.blsc-trend-count { color: var(--blsc-text-soft); font-size: 13px; }


.blsc-post {
    display: block; padding: 14px 18px;
    border-bottom: 1px solid var(--blsc-border); transition: background .12s; cursor: pointer;
}
.blsc-post-row { display: flex; gap: 12px; }
.blsc-post:hover { background: var(--blsc-bg-soft); }
.blsc-post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blsc-post-body { flex: 1; min-width: 0; }
.blsc-post-head { display: flex; align-items: center; gap: 5px; font-size: 15px; flex-wrap: wrap; }
.blsc-post-name { font-weight: 700; }
.blsc-post-handle, .blsc-post-time { color: var(--blsc-text-soft); }
.blsc-verified { display: inline-flex; width: 18px; height: 18px; color: var(--blsc-accent-bright); vertical-align: middle; cursor: pointer; }
.blsc-verified + .blsc-verified { margin-right: 2px; }
.blsc-post-content { margin-top: 4px; font-size: 15px; white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
.blsc-post-content .blsc-hashtag, .blsc-post-content .blsc-mention { color: var(--blsc-accent-bright); }
.blsc-post-media { margin-top: 12px; border-radius: var(--blsc-radius); overflow: hidden; border: 1px solid var(--blsc-border); background: var(--blsc-bg-soft); }
.blsc-post-media img { width: 100%; display: block; max-height: 420px; object-fit: cover; cursor: zoom-in; }
.blsc-post-media video { width: 100%; display: block; max-height: 420px; background: #000; }

.blsc-lightbox {
    position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: blsc-fade .2s; cursor: zoom-out;
}
.blsc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.blsc-lightbox-close {
    position: fixed; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3001;
}
.blsc-lightbox-close svg { width: 24px; height: 24px; }

.blsc-actions { display: flex; justify-content: space-around; align-items: center; max-width: 425px; margin: 12px auto 0; }
.blsc-action { display: flex; align-items: center; gap: 6px; color: var(--blsc-text-soft); font-size: 13px; transition: color .15s; padding: 4px; border-radius: 999px; }
.blsc-action svg { width: 19px; height: 19px; transition: transform .15s; }
.blsc-action:hover { color: var(--blsc-accent-bright); }
.blsc-action.comment:hover { color: #1d9bf0; }
.blsc-action.repost.active, .blsc-action.repost:hover { color: #00ba7c; }
.blsc-action.like.active, .blsc-action.like:hover { color: #f91880; }
.blsc-action.like.active svg { fill: #f91880; transform: scale(1.1); }
.blsc-action.repost.active svg { stroke: #00ba7c; }


.blsc-composer { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--blsc-border); }
.blsc-composer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blsc-composer-body { flex: 1; min-width: 0; }
.blsc-composer textarea {
    width: 100%; border: none; outline: none; resize: none; background: none;
    font-size: 19px; color: var(--blsc-text); min-height: 28px; line-height: 1.6;
}
.blsc-composer textarea::placeholder { color: var(--blsc-text-muted); }
.blsc-composer-preview { margin-top: 12px; position: relative; border-radius: var(--blsc-radius); overflow: hidden; border: 1px solid var(--blsc-border); }
.blsc-composer-preview img, .blsc-composer-preview video { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.blsc-composer-preview-remove {
    position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center;
}
.blsc-composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; border-top: 1px solid var(--blsc-border); padding-top: 12px; }
.blsc-composer-tools { display: flex; gap: 4px; }
.blsc-composer-tool { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blsc-accent-bright); transition: background .15s; }
.blsc-composer-tool:hover { background: var(--blsc-icon-hover); }
.blsc-char-counter { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--blsc-text-soft); margin-right: 6px; }
.blsc-char-counter.over { color: #f4212e; }
.blsc-composer-tool svg { width: 20px; height: 20px; }
.blsc-btn {
    padding: 9px 20px; border-radius: 999px; background: var(--blsc-accent);
    color: var(--blsc-on-accent); font-weight: 700; font-size: 15px; transition: background .15s, opacity .15s;
}
.blsc-btn:hover { background: var(--blsc-accent-hover); }
.blsc-btn:disabled { opacity: .5; cursor: not-allowed; }
.blsc-btn-outline { background: transparent; border: 1px solid var(--blsc-border); color: var(--blsc-text); }
.blsc-btn-outline:hover { background: var(--blsc-bg-hover); filter: none; }

.blsc-topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 90; padding: 10px 16px; min-height: 54px;
    background: var(--blsc-bg); border-bottom: 1px solid var(--blsc-border); cursor: pointer;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .blsc-topbar { background: var(--blsc-glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
}
.blsc-topbar-name { font-size: 20px; font-weight: 800; color: var(--blsc-text); flex: 1; text-align: right; }
.blsc-topbar-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.blsc-topbar-logo img { max-height: 36px; width: auto; display: block; }
.blsc-topbar-spacer { flex: 1; }

.blsc-mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--blsc-bg); border-top: 1px solid var(--blsc-border);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: center;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .blsc-mobile-nav { background: var(--blsc-glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
}
.blsc-mobile-nav-item { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--blsc-icon); position: relative; transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.blsc-mobile-nav-item svg { width: 26px; height: 26px; display: block; }
.blsc-nav-img-icon { width: 26px; height: 26px; object-fit: contain; display: block; flex-shrink: 0; }
.blsc-nav-item .blsc-nav-img-icon { width: 26px; height: 26px; }
.blsc-mobile-nav-item.active { color: var(--blsc-accent-bright); }
.blsc-mobile-nav-item:active { background: var(--blsc-icon-hover); color: var(--blsc-accent-bright); }
.blsc-mobile-nav-item .blsc-nav-badge { position: absolute; top: 6px; right: 8px; }
.blsc-mobile-compose {
    display: none; position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); left: 18px; z-index: 201;
    width: 56px; height: 56px; border-radius: 50%; background: var(--blsc-accent); color: #fff;
    align-items: center; justify-content: center; box-shadow: var(--blsc-shadow);
    -webkit-tap-highlight-color: transparent;
}
.blsc-mobile-compose svg { width: 28px; height: 28px; }
.blsc-mobile-header { display: none; }


.blsc-modal-overlay {
    position: fixed; inset: 0; background: var(--blsc-overlay); z-index: 1000;
    display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px;
    backdrop-filter: blur(2px); animation: blsc-fade .2s;
}
@keyframes blsc-fade { from { opacity: 0; } }
.blsc-modal {
    background: var(--blsc-card); border-radius: 20px; width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto; box-shadow: var(--blsc-shadow); animation: blsc-pop .2s;
}
@keyframes blsc-pop { from { transform: scale(.96); opacity: 0; } }
.blsc-modal-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; position: sticky; top: 0; background: var(--blsc-card); border-bottom: 1px solid var(--blsc-border); z-index: 1; }
.blsc-modal-close { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.blsc-modal-close:hover { background: var(--blsc-bg-hover); }
.blsc-modal-body { padding: 20px; }


.blsc-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.blsc-auth-card { width: 100%; max-width: 420px; }
.blsc-auth-logo { font-size: 40px; font-weight: 800; color: var(--blsc-text); text-align: center; margin-bottom: 8px; letter-spacing: -1px; }
.blsc-auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 28px; }
.blsc-field { margin-bottom: 16px; }
.blsc-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--blsc-text-soft); }
.blsc-input {
    width: 100%; padding: 14px 16px; border: 1px solid var(--blsc-border); border-radius: 12px;
    background: var(--blsc-bg-soft); color: var(--blsc-text); font-size: 15px; outline: none; transition: border-color .15s;
}
.blsc-input:focus { border-color: var(--blsc-primary); background: var(--blsc-bg); }
.blsc-auth-switch { display: flex; gap: 8px; margin-bottom: 24px; background: var(--blsc-bg-soft); padding: 4px; border-radius: 12px; }
.blsc-auth-switch button { flex: 1; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--blsc-text-soft); transition: all .15s; }
.blsc-auth-switch button.active { background: var(--blsc-card); color: var(--blsc-text); box-shadow: var(--blsc-shadow); }
.blsc-btn-block { width: 100%; padding: 14px; font-size: 16px; }
.blsc-auth-foot { text-align: center; margin-top: 20px; color: var(--blsc-text-soft); font-size: 14px; }
.blsc-auth-foot button { color: var(--blsc-primary); font-weight: 700; }


.blsc-profile-cover { height: 180px; background: linear-gradient(135deg, var(--blsc-primary), color-mix(in srgb, var(--blsc-primary) 60%, #000)); }
.blsc-profile-head { padding: 0 18px 16px; position: relative; }
.blsc-profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--blsc-bg); object-fit: cover; margin-top: -60px; background: var(--blsc-bg); }
.blsc-profile-avatar-wrap { display: inline-block; }
.blsc-profile-avatar-wrap .blsc-profile-avatar { display: flex; margin-top: -60px; }
.blsc-profile-avatar-wrap .blsc-avatar-initial.blsc-profile-avatar { width: 120px; height: 120px; font-size: 48px; border: 4px solid var(--blsc-bg); }
.blsc-profile-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
.blsc-profile-name { font-size: 22px; font-weight: 800; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.blsc-profile-handle { color: var(--blsc-text-soft); }
.blsc-profile-bio { margin-top: 12px; line-height: 1.7; }
.blsc-profile-stats { display: flex; gap: 20px; margin-top: 14px; }
.blsc-profile-stat strong { font-weight: 800; }
.blsc-profile-stat span { color: var(--blsc-text-soft); }


.blsc-notif { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--blsc-border); transition: background .12s; }
.blsc-notif:hover { background: var(--blsc-bg-soft); }
.blsc-notif.unread { background: var(--blsc-primary-soft); }
.blsc-notif-icon { width: 32px; height: 32px; flex-shrink: 0; }
.blsc-notif-icon.like { color: #f91880; }
.blsc-notif-icon.repost { color: #00ba7c; }
.blsc-notif-icon.follow { color: var(--blsc-primary); }
.blsc-notif-icon.comment { color: #1d9bf0; }
.blsc-notif-text { font-size: 15px; }
.blsc-notif-text strong { font-weight: 700; }


.blsc-explore-tabs { display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; }
.blsc-chip { padding: 8px 16px; border-radius: 999px; background: var(--blsc-bg-soft); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .15s; }
.blsc-chip.active { background: var(--blsc-primary); color: #fff; }
.blsc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.blsc-grid-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--blsc-bg-soft); position: relative; }
.blsc-grid-item img, .blsc-grid-item video { width: 100%; height: 100%; object-fit: cover; }
.blsc-grid-item-text { padding: 12px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }


.blsc-user-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; transition: background .12s; }
.blsc-user-row:hover { background: var(--blsc-bg-soft); }
.blsc-user-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.blsc-user-row-info { flex: 1; min-width: 0; }
.blsc-empty { text-align: center; padding: 60px 20px; color: var(--blsc-text-soft); }
.blsc-empty-title { font-size: 20px; font-weight: 800; color: var(--blsc-text); margin-bottom: 8px; }
.blsc-loading { text-align: center; padding: 40px; }
.blsc-loading .blsc-spinner { margin: 0 auto; }
.blsc-toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 2000;
    background: var(--blsc-primary); color: #fff; padding: 12px 22px; border-radius: 999px;
    font-weight: 600; box-shadow: var(--blsc-shadow); animation: blsc-toast .3s;
}
@keyframes blsc-toast { from { transform: translate(-50%, 20px); opacity: 0; } }
.blsc-divider { height: 1px; background: var(--blsc-border); }
.blsc-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--blsc-border); transition: background .2s; flex-shrink: 0; }
.blsc-switch.on { background: var(--blsc-primary); }
.blsc-switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.blsc-switch.on::after { transform: translateX(-20px); }
.blsc-settings-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--blsc-border); }
.blsc-settings-row-label { font-weight: 600; }
.blsc-settings-row-sub { font-size: 13px; color: var(--blsc-text-soft); margin-top: 2px; }


.blsc-header-logo { display: flex; align-items: center; }
.blsc-header-logo img { max-height: 30px; width: auto; display: block; }
.blsc-header-logo .blsc-header-title { font-size: 20px; font-weight: 800; }


.blsc-avatar-initial {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blsc-accent), var(--blsc-accent-hover));
    color: #fff; font-weight: 800; text-transform: uppercase; flex-shrink: 0;
}


.blsc-verified.gold { color: #f5b800; }


.blsc-profile-banner { height: 200px; width: 100%; object-fit: cover; display: block; background: var(--blsc-bg-soft); }
.blsc-profile-banner-empty { height: 200px; width: 100%; background: linear-gradient(135deg, var(--blsc-accent), var(--blsc-accent-hover)); }


.blsc-ad {
    display: block; margin: 0; border-bottom: 1px solid var(--blsc-border);
    position: relative; overflow: hidden;
}
.blsc-ad img { width: 100%; display: block; max-height: 240px; object-fit: cover; }
.blsc-ad-label {
    position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff;
    font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 600;
}


.blsc-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 16px 18px; }
.blsc-theme-card {
    border: 2px solid var(--blsc-border); border-radius: 14px; padding: 12px; cursor: pointer;
    display: flex; flex-direction: column; gap: 8px; transition: border-color .15s;
}
.blsc-theme-card.active { border-color: var(--blsc-accent); }
.blsc-theme-swatch { height: 44px; border-radius: 8px; display: flex; overflow: hidden; }
.blsc-theme-swatch span { flex: 1; }
.blsc-theme-name { font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- Footer settings list ---------- */
.blsc-foot-list { padding-bottom: 30px; }
.blsc-range { width: 100%; accent-color: var(--blsc-accent); }
.blsc-range-row { padding: 16px 18px; border-bottom: 1px solid var(--blsc-border); }
.blsc-range-row label { font-weight: 600; display: block; margin-bottom: 10px; }
.blsc-range-val { color: var(--blsc-text-soft); font-size: 13px; }

/* ---------- Post menu (three dots) ---------- */
.blsc-post-menu-btn { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blsc-text-soft); transition: background .15s, color .15s; }
.blsc-post-menu-btn:hover { background: var(--blsc-icon-hover); color: var(--blsc-accent-bright); }
.blsc-post-menu-btn svg { width: 18px; height: 18px; }
.blsc-post { position: relative; }
.blsc-menu-pop { position: absolute; top: 40px; left: 12px; background: var(--blsc-card); border: 1px solid var(--blsc-border); border-radius: 14px; box-shadow: var(--blsc-shadow); z-index: 50; overflow: hidden; min-width: 180px; }
.blsc-menu-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .12s; }
.blsc-menu-item:hover { background: var(--blsc-bg-hover); }
.blsc-menu-item svg { width: 18px; height: 18px; }
.blsc-menu-item.danger { color: #f4212e; }

/* ---------- Repost label ---------- */
.blsc-repost-bar { display: flex; align-items: center; gap: 6px; color: #00ba7c; font-size: 13px; font-weight: 700; padding: 2px 4px 10px; }
.blsc-repost-bar svg { width: 16px; height: 16px; }
.blsc-repost-bar span { color: #00ba7c; }

/* ---------- Poll ---------- */
.blsc-poll { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.blsc-poll-option { position: relative; border: 1px solid var(--blsc-border); border-radius: 10px; padding: 11px 14px; cursor: pointer; overflow: hidden; transition: border-color .15s; font-size: 14px; }
.blsc-poll-option:hover { border-color: var(--blsc-accent-bright); }
.blsc-poll-fill { position: absolute; inset: 0; right: 0; background: var(--blsc-primary-soft); z-index: 0; transition: width .4s ease; }
.blsc-poll-option.voted { cursor: default; }
.blsc-poll-option.voted:hover { border-color: var(--blsc-border); }
.blsc-poll-option.mine { border-color: var(--blsc-accent-bright); font-weight: 700; }
.blsc-poll-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.blsc-poll-total { color: var(--blsc-text-soft); font-size: 12px; margin-top: 4px; }
.blsc-poll-editor { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.blsc-poll-editor input { padding: 10px 12px; border: 1px solid var(--blsc-border); border-radius: 10px; background: var(--blsc-bg-soft); color: var(--blsc-text); outline: none; font-size: 14px; }
.blsc-poll-editor input:focus { border-color: var(--blsc-accent-bright); }
.blsc-poll-editor-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--blsc-text-soft); }
.blsc-poll-add { color: var(--blsc-accent-bright); font-weight: 700; font-size: 13px; }

/* ---------- Verify reason popover ---------- */
.blsc-reason-pop {
    position: fixed; z-index: 1200; background: var(--blsc-card); border: 1px solid var(--blsc-border);
    border-radius: 14px; box-shadow: var(--blsc-shadow); padding: 14px 16px; max-width: 280px;
    animation: blsc-pop .18s; transform-origin: top;
}
.blsc-reason-pop-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.blsc-reason-pop-head .blsc-verified { cursor: default; }
.blsc-reason-pop-body { font-size: 13px; line-height: 1.7; color: var(--blsc-text-soft); }

/* ---------- Blocked notice ---------- */
.blsc-blocked-notice { text-align: center; padding: 50px 24px; }
.blsc-blocked-notice .blsc-empty-title { color: var(--blsc-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .blsc-aside { display: none; }
    .blsc-main { max-width: none; }
}
@media (max-width: 700px) {
    .blsc-nav { display: none; }
    .blsc-main { border: none; }
    .blsc-mobile-nav { display: flex; }
    .blsc-mobile-compose { display: flex; }
    .blsc-shell { padding-bottom: 80px; }
    .blsc-grid-item-text { -webkit-line-clamp: 4; font-size: 12px; }
    .blsc-modal-overlay { padding: 0; }
    .blsc-modal { max-width: none; height: 100vh; max-height: 100vh; border-radius: 0; }
    .blsc-profile-banner, .blsc-profile-banner-empty { height: 140px; }
    .blsc-profile-avatar { width: 88px; height: 88px; margin-top: -44px; }
    .blsc-ad img { max-height: 160px; }
    .blsc-header-logo img { max-height: 26px; }
}

.blsc-stories { padding: 16px 12px; border-bottom: 1px solid var(--blsc-border); overflow: hidden; }
.blsc-stories-track { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.blsc-stories-track::-webkit-scrollbar { display: none; }
.blsc-story-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; width: 74px; -webkit-tap-highlight-color: transparent; }
.blsc-story-ring { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 3px; display: flex; align-items: center; justify-content: center; background: conic-gradient(from 215deg, #2aa7f5, #8fd3ff, #1d6fd8, #2aa7f5); }
.blsc-story-ring.seen { background: #2f3b47; }
.blsc-story-ring.loading { background: conic-gradient(from 0deg, #1d9bf0, #8fd3ff, #1d9bf0); }
.blsc-story-ring.loading .blsc-story-ring-spin { opacity: 1; animation: blsc-ring-spin .7s linear infinite; }
.blsc-story-ring-spin { position: absolute; inset: -3px; border-radius: 50%; opacity: 0; border: 3px solid transparent; border-top-color: #fff; border-right-color: rgba(255,255,255,.6); }
@keyframes blsc-ring-spin { to { transform: rotate(360deg); } }
.blsc-story-av { width: 62px !important; height: 62px !important; border-radius: 50% !important; border: 2px solid var(--blsc-bg); object-fit: cover; display: block; }
.blsc-story-name { font-size: 12px; color: var(--blsc-text-soft); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.blsc-story-ring-add { background: none; border: 2px dashed #2aa7f5; padding: 2px; }
.blsc-story-add .blsc-story-av { border-color: transparent; opacity: .55; }
.blsc-story-plus { position: absolute; bottom: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blsc-accent); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--blsc-bg); }
.blsc-story-plus svg { width: 14px; height: 14px; }
.blsc-story-add .blsc-story-name { color: var(--blsc-text-soft); }

.blsc-story-viewer { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.blsc-story-viewer.open { opacity: 1; }
.blsc-story-viewer.closing { opacity: 0; }
.blsc-story-stage { position: relative; width: 100%; max-width: 440px; height: 100%; max-height: 92vh; background: #000; border-radius: 14px; overflow: hidden; transform: scale(.92); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.blsc-story-viewer.open .blsc-story-stage { transform: scale(1); }
.blsc-story-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; gap: 4px; }
.blsc-story-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.blsc-story-bar-fill { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.blsc-story-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }
.blsc-story-top { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.blsc-story-userinfo { display: flex; align-items: center; gap: 9px; }
.blsc-story-uav { width: 34px !important; height: 34px !important; border-radius: 50% !important; object-fit: cover; }
.blsc-story-uname { color: #fff; font-weight: 700; font-size: 14px; }
.blsc-story-utime { color: rgba(255,255,255,.7); font-size: 12px; }
.blsc-story-close, .blsc-story-del { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: flex; }
.blsc-story-close svg, .blsc-story-del svg { width: 24px; height: 24px; }
.blsc-story-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.blsc-story-img { width: 100%; height: 100%; object-fit: contain; }
.blsc-story-text { position: absolute; transform: translate(50%, -50%); font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.5); white-space: pre-wrap; text-align: center; pointer-events: none; }
.blsc-story-nav { position: absolute; top: 0; bottom: 0; width: 33%; background: none; border: 0; cursor: pointer; z-index: 4; }
.blsc-story-prev { right: 0; }
.blsc-story-next { left: 0; }

.blsc-editor { position: fixed; inset: 0; z-index: 4100; background: #000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.blsc-editor.open { opacity: 1; }
.blsc-editor-stage { position: relative; width: 100%; max-width: 440px; height: 100%; max-height: 100vh; display: flex; flex-direction: column; }
.blsc-editor-canvas { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #111; }
.blsc-editor-canvas img { width: 100%; height: 100%; object-fit: contain; }
.blsc-editor-text { position: absolute; transform: translate(50%, -50%); font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); outline: none; cursor: move; padding: 4px 8px; min-width: 20px; text-align: center; }
.blsc-editor-text.active { outline: 1px dashed rgba(255,255,255,.6); }
.blsc-editor-top { position: absolute; top: 16px; left: 14px; right: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.blsc-editor-close { background: rgba(0,0,0,.4); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.blsc-editor-close svg { width: 22px; height: 22px; }
.blsc-editor-tool { background: rgba(0,0,0,.4); border: 0; color: #fff; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.blsc-editor-tool svg { width: 18px; height: 18px; }
.blsc-editor-panel { position: absolute; bottom: 84px; left: 14px; right: 14px; z-index: 5; background: rgba(0,0,0,.55); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.blsc-editor-fonts, .blsc-editor-colors { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.blsc-editor-fonts button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.blsc-color-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; }
.blsc-editor-sizes { display: flex; align-items: center; justify-content: center; gap: 16px; color: #fff; }
.blsc-editor-sizes button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 22px; cursor: pointer; }
.blsc-editor-share { position: absolute; bottom: 18px; left: 14px; right: 14px; z-index: 6; height: 52px; border: 0; border-radius: 999px; background: var(--blsc-accent); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.blsc-editor-share:disabled { opacity: .6; }

.blsc-resend { text-align: center; margin-top: 14px; font-size: 14px; color: var(--blsc-text-soft); }
.blsc-resend button { background: none; border: 0; color: var(--blsc-accent); font-weight: 700; cursor: pointer; font-size: 14px; }
.blsc-resend button:hover { text-decoration: underline; }

.blsc-onb { position: fixed; inset: 0; z-index: 4500; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.blsc-onb.open { opacity: 1; }
.blsc-onb-card { width: 100%; max-width: 440px; background: var(--blsc-bg); border: 1px solid var(--blsc-border); border-radius: 18px; padding: 28px 24px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.blsc-onb-body { transition: opacity .2s, transform .2s; }
.blsc-onb-body.out { opacity: 0; transform: translateY(-8px); }
.blsc-onb-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.blsc-onb-sub { color: var(--blsc-text-soft); font-size: 14px; margin: 0 0 22px; }
.blsc-onb-label { display: block; font-size: 14px; font-weight: 700; margin: 18px 0 10px; color: var(--blsc-text-soft); }
.blsc-onb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.blsc-onb-chip { background: var(--blsc-bg-soft); color: var(--blsc-text); border: 1px solid var(--blsc-border); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: all .15s; font-family: inherit; }
.blsc-onb-chip:hover { border-color: var(--blsc-accent); }
.blsc-onb-chip.active { background: var(--blsc-accent); color: #fff; border-color: var(--blsc-accent); }
.blsc-onb-idwrap { position: relative; }
.blsc-onb-idwrap input { padding-left: 38px !important; }
.blsc-onb-idcheck { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.blsc-onb-idcheck.ok { color: #00ba7c; animation: blsc-onb-pop .35s cubic-bezier(.2,1.4,.5,1); }
.blsc-onb-idcheck svg { width: 22px; height: 22px; }
@keyframes blsc-onb-pop { 0% { transform: translateY(-50%) scale(0); } 70% { transform: translateY(-50%) scale(1.3); } 100% { transform: translateY(-50%) scale(1); } }
.blsc-onb-idmsg { font-size: 13px; margin-top: 8px; min-height: 18px; color: var(--blsc-text-soft); }
.blsc-onb-idmsg.ok { color: #00ba7c; }
.blsc-onb-idmsg.bad { color: #f4212e; }
.blsc-onb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--blsc-border); border-top-color: var(--blsc-accent); animation: blsc-ring-spin .7s linear infinite; display: inline-block; }
.blsc-onb-media { margin-bottom: 22px; }
.blsc-onb-banner { width: 100%; height: 110px; border-radius: 12px; background: var(--blsc-bg-soft); border: 2px dashed var(--blsc-border); display: flex; align-items: center; justify-content: center; color: var(--blsc-text-soft); cursor: pointer; background-size: cover; background-position: center; transition: border-color .15s; }
.blsc-onb-banner:hover { border-color: var(--blsc-accent); }
.blsc-onb-banner.filled { border-style: solid; }
.blsc-onb-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--blsc-bg-soft); border: 2px dashed var(--blsc-border); display: flex; align-items: center; justify-content: center; color: var(--blsc-text-soft); cursor: pointer; margin: -45px auto 0; background-size: cover; background-position: center; font-size: 28px; transition: border-color .15s; }
.blsc-onb-avatar:hover { border-color: var(--blsc-accent); }
.blsc-onb-avatar.filled { border-style: solid; }
.blsc-onb-final { text-align: center; padding: 20px 0; }
.blsc-onb-check-big { width: 80px; height: 80px; border-radius: 50%; background: #00ba7c; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: blsc-onb-pop .5s cubic-bezier(.2,1.4,.5,1); }
.blsc-onb-check-big svg { width: 44px; height: 44px; }
.blsc-onb-final a { color: var(--blsc-accent); text-decoration: underline; }
.blsc-onb-countdown { margin-top: 24px; font-size: 36px; font-weight: 800; color: var(--blsc-text-soft); }
.blsc-btn-text { background: none; border: 0; color: var(--blsc-text-soft); padding: 12px; margin-top: 6px; cursor: pointer; font-family: inherit; font-size: 14px; width: 100%; }
.blsc-btn-text:hover { color: var(--blsc-text); }

.blsc-violator-wrap .blsc-profile-avatar { filter: blur(8px); }
.blsc-violator-wrap .blsc-profile-banner { filter: blur(12px) brightness(0.6); }
.blsc-violator-icon { display: inline-flex; vertical-align: middle; color: #f4212e; width: 22px; height: 22px; margin-right: 4px; }
.blsc-violator-icon svg { width: 22px; height: 22px; }
.blsc-violator-bio { color: #f4212e !important; font-weight: 700; border-right: 3px solid #f4212e; padding-right: 10px; background: rgba(244,33,46,.08); padding: 10px; border-radius: 8px; }

.blsc-blocked-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--blsc-border); }
.blsc-blocked-row:last-child { border-bottom: 0; }
.blsc-blocked-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blsc-blocked-info { flex: 1; min-width: 0; }
.blsc-blocked-name { font-weight: 700; font-size: 14px; }
.blsc-blocked-handle { color: var(--blsc-text-soft); font-size: 13px; }
.blsc-session-row { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border: 1px solid var(--blsc-border); border-radius: 12px; margin-bottom: 10px; }
.blsc-session-row.current { background: rgba(29,155,240,.06); border-color: var(--blsc-accent); }
.blsc-session-info { flex: 1; min-width: 0; }
.blsc-session-device { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.blsc-session-current-badge { background: var(--blsc-accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.blsc-session-meta { color: var(--blsc-text-soft); font-size: 12px; margin-top: 4px; }

.blsc-onb-media-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
