* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    background: #0b0b0f;
    color: #ffffff;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    line-height: 1.5;
}

.app {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ========== ЛЕВАЯ КОЛОНКА (SIDEBAR) ========== */
.sidebar {
    width: 260px;
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 28px 16px 24px 20px;
}

.logo-image-container {
    margin-bottom: 40px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    box-shadow: 0 6px 14px rgba(168, 85, 247, 0.25);
    transition: transform 0.2s ease;
    cursor: pointer;
}
.sidebar-logo-img:hover {
    transform: scale(1.02);
}
.sidebar-logo-img {
    background: #1e1e2a;
}
.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}
.brand-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #9ca3af;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

/* ========== ЦЕНТРАЛЬНАЯ КОЛОНКА ========== */
.main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 36px;
    scroll-behavior: smooth;
}

/* Профиль */
.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.profile-header.profile-header-stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-large {
    width: 96px;
    height: 96px;
    background: linear-gradient(145deg, #2a2a35, #1a1a22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 600;
    border: 3px solid #a855f7;
    flex-shrink: 0;
    position: relative;
}

.status-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #0b0b0f;
}

.profile-info-compact {
    flex: 1;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.profile-username {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.profile-bio {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 14px;
    max-width: 500px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-primary {
    background: #ffffff;
    color: #0b0b0f;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
}

.profile-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 20px;
    margin-top: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
    stroke-width: 1.7;
    fill: none;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
}

.join-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 8px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 28px 0 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
}

.tab {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: #9ca3af;
    transition: 0.2s;
}

.tab.active {
    background: #ffffff;
    color: #0b0b0f;
}

.create-post {
    background: #1a1a1f;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 28px;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px);
    padding: 40px 16px;
}
.auth-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: none;
}
.auth-card h2 {
    margin-bottom: 20px;
    font-size: 1.35rem;
    font-weight: 700;
}
.auth-card label {
    display: block;
    margin-bottom: 10px;
    color: #9ca3af;
    font-size: 0.85rem;
}
.auth-input {
    width: 100%;
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    outline: none;
    font-family: inherit;
}
.auth-card .btn-primary {
    width: 100%;
    padding: 12px 18px;
    border-radius: 16px;
}
.profile-edit-panel {
    background: #1a1a1f;
    border-radius: 20px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-edit-panel label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
}
.profile-edit-panel .auth-input {
    margin-bottom: 16px;
}
.profile-save-message {
    min-height: 22px;
    margin-top: 14px;
    font-size: 0.95rem;
}
.profile-save-message.error {
    color: #f87171;
}
.profile-save-message.success {
    color: #34d399;
}
.auth-note {
    margin-top: 18px;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
}
.auth-message {
    min-height: 22px;
    margin-top: 10px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}
.auth-message.error {
    color: #f87171;
}
.auth-message.success {
    color: #34d399;
}
.auth-note a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.chats-panel {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.conversations-list {
    width: 320px;
    min-width: 280px;
    max-width: 340px;
    background: rgba(18, 18, 24, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.conv-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.conv-search {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0f0f15;
    color: #ffffff;
    padding: 12px 14px;
    outline: none;
    margin-bottom: 14px;
}

.chat-list-messenger {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.chat-item-m {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.chat-item-m:hover,
.chat-item-m.active-chat {
    background: rgba(168, 85, 247, 0.12);
}

.chat-avatar-m {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
}

.chat-info-m {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-name-m {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.chat-preview {
    color: #9ca3af;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time-m {
    color: #9ca3af;
    font-size: 0.78rem;
    margin-left: auto;
}

.messenger-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 24, 0.95);
    border-radius: 24px;
    margin-left: 24px;
    overflow: hidden;
    min-width: 0;
}

.msg-header {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(11, 11, 15, 0.96);
}

.messenger-window.active-chat .msg-header {
    display: flex;
}

.chat-avatar-m {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.msg-area {
    flex: 1;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.95rem;
    min-height: 260px;
}

.empty-chat-label {
    text-align: center;
}

.msg-input-area {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(11, 11, 15, 0.96);
}

.messenger-window.active-chat .msg-input-area {
    display: flex;
}

.msg-input {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0f0f15;
    color: #fff;
    padding: 14px 16px;
    outline: none;
}

.send-msg-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: none;
    background: #a855f7;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.send-msg-btn svg {
    width: 18px;
    height: 18px;
}

.chat-name-m {
    font-weight: 700;
    color: #ffffff;
}

.msg-back {
    display: none;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.95rem;
}

.messenger-window.active-chat .msg-back {
    display: inline-flex;
}

@media (max-width: 900px) {
    .sidebar {
        width: 220px;
    }
    .conversations-list {
        width: 280px;
    }
}

@media (max-width: 700px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 16px;
    }

    .logo-image-container {
        margin-bottom: 0;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .conversations-list,
    .messenger-window {
        width: 100%;
        margin-left: 0;
    }

    .conv-header {
        display: none;
    }
}
.auth-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #9ca3af;
}
.auth-note a {
    color: #a855f7;
    text-decoration: none;
}

.post-input {
    width: 100%;
    background: #25252d;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 20px;
    font-family: inherit;
    resize: vertical;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-icons {
    display: flex;
    gap: 24px;
    margin-left: 6px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.icon-btn svg {
    stroke: #ffffff;
    stroke-width: 1.5;
    width: 22px;
    height: 22px;
    fill: none;
    transition: opacity 0.2s;
}

.icon-btn:hover svg {
    opacity: 0.7;
}

.post-submit {
    background: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.post-card {
    background: #1a1a1f;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    background: #2d2d3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.post-author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.post-time {
    font-size: 0.7rem;
    color: #7a7a8c;
}

.post-content {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #e5e5e5;
}

.post-image {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #2d2d3a, #1a1a22);
    padding: 32px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    border: 1px dashed rgba(255,255,255,0.1);
}

/* ========== ЧАТЫ ========== */
.chats-panel {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    background: #0b0b0f;
}

.chats-panel.active-tab-content {
    display: flex;
}

.conversations-list {
    width: 320px;
    background: rgba(15, 15, 20, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.conv-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.conv-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.conv-search {
    background: #1e1e26;
    border-radius: 30px;
    padding: 12px 18px;
    margin: 16px 20px 8px 20px;
    border: none;
    color: white;
    font-size: 0.9rem;
    outline: none;
    width: calc(100% - 40px);
}

.chat-list-messenger {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 14px 14px;
}

.chat-item-m {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.02);
}

.chat-item-m:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(1px);
}

.chat-item-m.active-chat {
    background: rgba(168, 85, 247, 0.18);
}

.chat-avatar-m {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
}

.chat-info-m {
    flex: 1;
    min-width: 0;
}

.chat-name-m {
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

.active-chat-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    max-width: calc(100% - 10px);
}

.active-chat-link:hover {
    text-decoration: underline;
}

.chat-preview {
    font-size: 0.84rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time-m {
    font-size: 0.78rem;
    color: #8b94a9;
}

.messenger-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 28, 0.94);
    border-radius: 24px;
    overflow: hidden;
}

.msg-header {
    display: none;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
    gap: 12px;
}

.messenger-window.active-chat .msg-header {
    display: flex;
}

.msg-back {
    display: none;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
}

.messenger-window.active-chat .msg-back {
    display: inline-flex;
}

.msg-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
}

.empty-chat-label {
    width: 100%;
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
    margin: auto;
    padding: 0 24px;
}

.message-bubble {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message-bubble.out {
    align-self: flex-end;
}

.message-bubble.in {
    align-self: flex-start;
}

.bubble-text {
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #2a2a35;
}

.out .bubble-text {
    background: #a855f7;
}

.msg-time {
    font-size: 0.55rem;
    color: #7a7a8c;
    margin-top: 4px;
    padding: 0 6px;
}

.msg-input-area {
    display: none;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.messenger-window.active-chat .msg-input-area {
    display: flex;
}

.msg-input {
    flex: 1;
    background: #1e1e26;
    border: none;
    border-radius: 30px;
    padding: 12px 18px;
    color: white;
    outline: none;
}

.send-msg-btn {
    background: #a855f7;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Scroll */
.main::-webkit-scrollbar, .chat-list-messenger::-webkit-scrollbar, .msg-area::-webkit-scrollbar {
    width: 4px;
}
.main::-webkit-scrollbar-track, .chat-list-messenger::-webkit-scrollbar-track, .msg-area::-webkit-scrollbar-track {
    background: transparent;
}
.main::-webkit-scrollbar-thumb, .chat-list-messenger::-webkit-scrollbar-thumb, .msg-area::-webkit-scrollbar-thumb {
    background: #3a3a4a;
    border-radius: 4px;
}

@media (max-width: 800px) {
    .sidebar {
        width: 240px;
    }
    .main {
        padding: 20px;
    }
    .conversations-list {
        width: 280px;
    }
}
@media (max-width: 650px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .sidebar.open-mobile {
        transform: translateX(0);
    }
    .menu-toggle-mobile {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 16px;
        z-index: 65;
        background: #1a1a1f;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .msg-back {
        display: inline-flex;
    }
}
.menu-toggle-mobile {
    display: none;
}

.sidebar-footer-version {
    margin-top: auto;
    padding: 12px 16px;
    font-size: 0.75rem;
    color: #ffffff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    border: 1px solid #000;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
}
.logout-item {
    width: 100%;
    border-radius: 14px;
    padding: 10px 12px;
}
.logout-item svg {
    width: 20px;
    height: 20px;
}
.version-chip {
    background: transparent;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    backdrop-filter: none;
}
.search-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}
.search-panel h2 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}
.search-panel p {
    margin-bottom: 24px;
    color: #9ca3af;
}
.search-field {
    margin-bottom: 24px;
}
.search-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.search-result-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
}
.search-result-avatar {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(168, 85, 247, 0.16);
    color: #a855f7;
    font-weight: 700;
}
.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-result-name {
    font-weight: 700;
}
.search-result-username {
    color: #9ca3af;
}
.search-result-bio {
    color: #c1c1d0;
    font-size: 0.95rem;
}
.build-info {
    display: none;
}

/* Посты */
.post-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.post-stat svg {
    width: 20px;
    height: 20px;
}

.post-stat:hover {
    color: #a855f7;
}

/* Комментарии */
.comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    background: #2d2d3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.comment-text {
    font-size: 0.85rem;
    color: #e5e5e5;
    margin-top: 4px;
}

.comment-time {
    font-size: 0.7rem;
    color: #7a7a8c;
    margin-top: 4px;
}

.add-comment {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.comment-input {
    flex: 1;
    background: #25252d;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.comment-submit {
    background: #a855f7;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Уведомления */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255,255,255,0.06);
}

.notification-avatar {
    width: 48px;
    height: 48px;
    background: #2d2d3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-content {
    flex: 1;
}

.notification-message {
    color: #ffffff;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.7rem;
    color: #7a7a8c;
}

/* ========== АДАПТИВНЫЕ СТИЛИ ========== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        width: 280px;
    }
    
    .sidebar.open-mobile {
        left: 0;
    }
    
    .menu-toggle-mobile {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 1001;
        background: #a855f7;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .main {
        padding: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .post-card {
        margin-bottom: 16px;
    }
    
    .post-stats {
        justify-content: space-around;
    }
}

@media (max-width: 650px) {
    .chats-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 100;
        width: 100%;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
    
    .chats-sidebar.hide {
        transform: translateX(-100%);
    }
    
    .chat-window {
        width: 100%;
    }
    
    .back-btn {
        display: block;
    }
    
    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .auth-card {
        margin: 16px;
        padding: 20px;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .avatar-large {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .post-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .post-content {
        font-size: 0.85rem;
    }
    
    .search-panel {
        padding: 20px;
    }
}

/* Остальные стили остаются без изменений */
.menu-toggle-mobile {
    display: none;
}