#left-sidebar.ls-sidebar {
    width: 252px;
    padding: 0 !important;
    background: linear-gradient(180deg, #1a232c 0%, #24313b 48%, #1e2830 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: flex-start !important;
}

.ls-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.ls-block {
    margin-bottom: 6px;
}

.ls-block-identity .ls-identity-card {
    border-radius: 10px;
    padding: 8px;
    background:
        radial-gradient(100% 70% at 0% 0%, rgba(16, 185, 129, 0.1), transparent 50%),
        rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ls-profile-head {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ls-avatar-btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.ls-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #22c55e;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ls-avatar-btn:hover .ls-avatar-img {
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.ls-avatar-edit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    color: #fff;
    font-size: 10px;
}

.ls-avatar-btn:hover .ls-avatar-edit { opacity: 1; }

.ls-online-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border: 2px solid #1e2830;
    border-radius: 50%;
}

.ls-profile-text {
    flex: 1;
    min-width: 0;
}

.ls-nick-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    max-width: 100%;
    text-align: left;
}

.ls-nick-btn:hover .ls-nick { text-decoration: underline; text-underline-offset: 2px; }

.ls-rank-icon {
    height: 11px;
    width: auto;
    flex-shrink: 0;
}

.ls-nick {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ls-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 3px;
    margin-top: 2px;
    line-height: 1.25;
}

.ls-sep {
    font-size: 7px;
    color: #475569;
    user-select: none;
}

.ls-rank-badge {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    flex-shrink: 0;
}

.ls-level-tag {
    font-size: 7px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.ls-level-tag span {
    color: #e2e8f0;
    font-weight: 800;
}

.ls-level-name {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    color: #4ade80;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
}

.ls-bio {
    margin: 4px 0 0;
    font-size: 8px;
    line-height: 1.3;
    color: #b8c4d0;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-xp-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

.ls-xp-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
}

.ls-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.ls-xp-pct {
    font-size: 7px;
    font-weight: 700;
    color: #4ade80;
    font-family: ui-monospace, monospace;
    flex-shrink: 0;
    min-width: 22px;
    text-align: right;
}

.ls-next-goal:empty { display: none; }

.ls-goal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 5px;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 7px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ls-goal-label {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.ls-goal-label i { font-size: 6px; color: #64748b; }

.ls-goal-val {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-goal-val em {
    font-style: normal;
    color: #64748b;
    font-size: 7px;
    font-weight: 600;
}

.ls-duo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 6px;
}

.ls-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.ls-mini-stat:hover { background: rgba(255, 255, 255, 0.05); }

.ls-mini-label {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
}

.ls-mini-label i { font-size: 7px; }

.ls-mini-stat:not(.ls-mini-streak) .ls-mini-label i { color: #60a5fa; }
.ls-mini-streak .ls-mini-label i { color: #f97316; }

.ls-mini-val {
    font-size: 11px;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1.1;
}

.ls-mini-streak .ls-mini-val { color: #fdba74; }

.ls-block-stats {
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.ls-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 9px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}

.ls-section-toggle span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ls-section-toggle i.fa-chart-line { color: #38bdf8; font-size: 9px; }

.ls-chevron {
    font-size: 8px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.ls-section-toggle[aria-expanded="false"] .ls-chevron {
    transform: rotate(-90deg);
}

.ls-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    padding: 0 7px;
}

.ls-collapse-body.is-open {
    max-height: 210px;
    padding-bottom: 7px;
}

.ls-rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.ls-rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    min-width: 0;
}

.ls-rank-item:hover { background: rgba(255, 255, 255, 0.05); }

.ls-rank-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    font-weight: 600;
    color: #94a3b8;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-rank-label i { font-size: 8px; flex-shrink: 0; }

.ls-rank-item strong {
    font-size: 9px;
    font-weight: 800;
    color: #f8fafc;
    flex-shrink: 0;
}

.ls-rank-item.ls-rank-wide { grid-column: span 2; }

.ls-rank-item.coin-rank .ls-rank-label i { color: #eab308; }
.ls-rank-item.msg-rank .ls-rank-label i { color: #38bdf8; }
.ls-rank-item.game-rank .ls-rank-label i { color: #c084fc; }
.ls-rank-item.trivia-rank .ls-rank-label i { color: #f97316; }
.ls-rank-item.likes-rank .ls-rank-label i { color: #f43f5e; }

.ls-block-stories.stories-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ls-block-stories .stories-section-title {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    color: #cbd5e1;
    letter-spacing: 0.6px;
    margin: 0;
}

.ls-block-stories .stories-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    min-height: 0;
}

.ls-block-stories .story-card {
    padding: 6px 3px;
    border-radius: 8px;
}

.ls-block-stories .story-avatar-wrap {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
}

.ls-block-stories .story-username {
    font-size: 7px;
}

.ls-block-actions {
    flex-shrink: 0;
    padding: 7px 8px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.18);
}

.ls-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.ls-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
    cursor: pointer;
    font-family: inherit;
}

.ls-action-btn i { font-size: 12px; }
.ls-action-btn span { font-size: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }

.ls-action-btn:hover { background: rgba(255, 255, 255, 0.06); }

.ls-action-btn:nth-child(1) i { color: #ec4899; }
.ls-action-btn:nth-child(2) i { color: #10b981; }
.ls-action-btn:nth-child(3) i { color: #eab308; }
.ls-action-btn:nth-child(4) i { color: #3b82f6; }
.ls-action-btn:nth-child(5) i { color: #34d399; }
.ls-action-btn:nth-child(6) i { color: #a855f7; }

.ls-logout-btn {
    width: 100%;
    margin-top: 5px;
    padding: 7px;
    border-radius: 7px;
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.06);
    color: #fca5a5;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.ls-logout-btn:hover { background: rgba(248, 113, 113, 0.12); }

@media (max-width: 768px) {
    #left-sidebar.ls-sidebar { width: 100%; max-width: 280px; }
}
