/* ============================================================
   CX Family — main.css
   Единый файл стилей для всего приложения
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #040716;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Nav ── */
nav {
    height: 88px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: #040716;
    z-index: 100;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-center a {
    color: #898989;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
}

.nav-center a:hover { color: #ffffff; background: rgba(255,255,255,0.06); }
.nav-center a.active { color: #ffffff; background: rgba(255,255,255,0.08); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-username { color: #898989; font-size: 14px; }

.nav-username-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #898989;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-username-link:hover, .nav-username-link.active { color: #fff; }

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
}

.nav-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    background: #ffffff;
    color: #081957;
    border: none;
    padding: 9px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn:hover { background: #1673ff; color: #ffffff; }

.btn-ghost {
    background: transparent;
    color: #898989;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── Page container ── */
.page {
    width: 100%;
    max-width: 960px;
    margin: 56px auto;
    padding: 0 24px;
}

/* ── Bottom nav (mobile only) ── */
.bottom-nav { display: none; }

/* ── Common ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover { color: #aaa; }

.page-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #898989;
    font-size: 16px;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.empty-state {
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    color: #555;
    font-size: 15px;
}

/* ── Feed layout ── */
.feed-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.feed-sidebar {
    position: sticky;
    top: 96px;
}

.feed-main {}

/* ── Post cards ── */
.post-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.post-card:hover { border-color: rgba(255,255,255,0.18); }

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.post-author-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.post-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.post-author-name { font-size: 14px; font-weight: 600; color: #fff; }
.post-author-handle { font-size: 12px; color: #555; margin-top: 2px; }

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

.post-action-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #555;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.post-action-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.post-action-btn.danger:hover { color: #f87171; border-color: rgba(248,113,113,0.3); }

.post-content {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 14px;
    white-space: pre-line;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
}

.post-images.single { grid-template-columns: 1fr; }

.post-images img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.post-images.single img { height: 360px; }

.post-video-link { margin-bottom: 14px; }

.post-video-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1673ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(22,115,255,0.25);
    border-radius: 12px;
    transition: background 0.2s;
}

.post-video-link a:hover { background: rgba(22,115,255,0.08); }

.post-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.reaction-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px 10px;
}

.react-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    font-family: 'Inter', sans-serif;
}

.react-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.react-btn.active-up { color: #4ade80; }
.react-btn.active-down { color: #f87171; }

.score {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    min-width: 24px;
    text-align: center;
}

.comment-count {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-count:hover { color: #aaa; }

.visibility-badge { font-size: 11px; color: #444; margin-left: auto; }

/* ── Sidebar ── */
.sidebar-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    font-weight: 600;
}

/* ── Load more ── */
#load-more-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #555;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

#load-more-btn:hover { border-color: rgba(255,255,255,0.25); color: #aaa; }

.empty-feed {
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 56px 40px;
    text-align: center;
    color: #555;
}

.empty-feed p { margin-bottom: 8px; }

/* ── Topics list ── */
.topics-header { margin-bottom: 40px; }
.topics-header h1 { font-family: 'Dela Gothic One', sans-serif; font-size: 40px; margin-bottom: 8px; }
.topics-header p { color: #555; font-size: 15px; }

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

.topic-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.topic-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.02); }
.topic-card.following { border-color: rgba(22,115,255,0.35); }

.topic-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topic-rank {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 28px;
    color: rgba(255,255,255,0.12);
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
    line-height: 1;
}

.topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.topic-name {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.3;
}

.topic-name:hover { color: #1673ff; }

.topic-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    margin-top: 8px;
    padding-left: 88px; /* rank(32) + gap(12) + icon(44) */
}

.topic-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #444;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-left: 88px; /* rank(32) + gap(12) + icon(44) */
}

.topic-stats span b { color: #898989; }

.topic-follow-btn {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 7px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-short { display: none; }

.topic-follow-btn.not-following {
    background: rgba(22,115,255,0.15);
    border: 1px solid rgba(22,115,255,0.4);
    color: #4d9eff;
}

.topic-follow-btn.not-following:hover { background: #1673ff; color: #fff; border-color: #1673ff; }

.topic-follow-btn.is-following {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: #555;
}

.topic-follow-btn.is-following:hover { border-color: rgba(248,113,113,0.4); color: #f87171; }

/* ── Topic detail ── */
.topic-hero {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 32px 36px;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.topic-hero h1 { font-family: 'Dela Gothic One', sans-serif; font-size: 36px; margin-bottom: 10px; }
.topic-hero p { font-size: 15px; color: #666; line-height: 1.6; max-width: 560px; }
.topic-hero-stats { display: flex; gap: 24px; margin-top: 16px; font-size: 13px; color: #555; }
.topic-hero-stats b { color: #aaa; }

.follow-topic-btn {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-topic-btn.not-following { background: #1673ff; border: 1px solid #1673ff; color: #fff; }
.follow-topic-btn.not-following:hover { background: #0f5ed8; }
.follow-topic-btn.is-following { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #555; }
.follow-topic-btn.is-following:hover { border-color: rgba(248,113,113,0.4); color: #f87171; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: #555;
    transition: all 0.2s;
}

.pagination a:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.pagination .current { border-color: rgba(22,115,255,0.4); color: #4d9eff; }

/* ── Post detail ── */
.detail-layout { max-width: 720px; }

.comments-section {}

.comments-header {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.comment-form {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-form textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: none;
    min-height: 44px;
}

.comment-form textarea::placeholder { color: #444; }

.comment-submit {
    background: #fff;
    color: #081957;
    border: none;
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    align-self: flex-end;
}

.comment-submit:hover { background: #1673ff; color: #fff; }

.comment-node { margin-bottom: 12px; }
.comment-node.depth-1 { margin-left: 44px; }
.comment-node.depth-2 { margin-left: 88px; }

.comment-bubble {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.comment-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.comment-author { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.comment-time { font-size: 11px; color: #444; }
.comment-text { font-size: 14px; color: #ccc; line-height: 1.55; margin-bottom: 10px; }

.comment-footer { display: flex; align-items: center; gap: 12px; }

.comment-reaction-bar { display: flex; align-items: center; gap: 3px; }

.c-react-btn {
    background: transparent;
    border: none;
    color: #444;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: color 0.15s;
    font-family: 'Inter', sans-serif;
}

.c-react-btn:hover { color: #aaa; }
.c-react-btn.active-up { color: #4ade80; }
.c-react-btn.active-down { color: #f87171; }
.c-score { font-size: 12px; color: #555; min-width: 20px; text-align: center; font-weight: 600; }

.reply-btn {
    background: transparent;
    border: none;
    color: #444;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
    padding: 0;
}

.reply-btn:hover { color: #aaa; }

.reply-form {
    display: none;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
}

.reply-form.open { display: flex; gap: 8px; align-items: flex-start; }

.reply-form textarea {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    outline: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: none;
    min-height: 36px;
    padding: 6px 10px;
}

.reply-form textarea::placeholder { color: #444; }

.reply-submit {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #aaa;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.reply-submit:hover { background: rgba(255,255,255,0.15); color: #fff; }

.disabled-comments {
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    color: #444;
    font-size: 14px;
}

/* ── Post form ── */
.form-card { max-width: 680px; }

.form-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 32px;
    margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    color: #898989;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus { border-color: rgba(255,255,255,0.3); }
.form-control::placeholder { color: #444; }
textarea.form-control { resize: vertical; min-height: 180px; }

.form-select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 11px 16px;
    outline: none;
}

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

/* ── Composer card (title + body + toolbar) ── */
.composer-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    margin-bottom: 8px;
}

.composer-title-input,
.composer-body-input {
    border-radius: 0;
}

.composer-title-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    padding: 18px 20px 14px;
    outline: none;
    box-sizing: border-box;
}
.composer-title-input::placeholder { color: #444; }

.composer-sep {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0 20px;
}

.composer-body-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding: 14px 20px 18px;
    outline: none;
    resize: none;
    min-height: 160px;
    display: block;
    box-sizing: border-box;
}
.composer-body-input::placeholder { color: #444; }

/* ── Composer toolbar ── */
.composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.toolbar-left { display: flex; align-items: center; gap: 8px; }
.toolbar-right { display: flex; align-items: center; }

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.toolbar-btn:hover { border-color: rgba(255,255,255,0.25); color: #ccc; }
.toolbar-btn.active { border-color: rgba(22,115,255,0.5); color: #4d9eff; }

/* ── Attach dropdown ── */
.attach-wrap { position: relative; }

.attach-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    z-index: 200;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.attach-dropdown.open { display: block; }

.attach-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    color: #bbb;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, color 0.12s;
}
.attach-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.attach-option + .attach-option { border-top: 1px solid rgba(255,255,255,0.06); }

/* ── Video URL row ── */
.video-url-row { margin-bottom: 8px; }

/* ── Attach preview ── */
.attach-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.attach-preview:empty { display: none; }
.attach-preview-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    color: #aaa;
}

/* ── Comments toggle ── */
.comments-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.toggle-label-text {
    font-size: 13px;
    color: #777;
}
.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-track::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #555;
    transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: rgba(22,115,255,0.45); }
.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(16px);
    background: #1673ff;
}

/* ── Post settings card (visibility + topics) ── */
.post-settings-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 12px;
}

.settings-visibility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.settings-label {
    font-size: 14px;
    color: #777;
    white-space: nowrap;
}
.settings-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ccc;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 7px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.settings-select:focus { border-color: rgba(255,255,255,0.25); }

.topics-section { margin-top: 16px; }
.topics-section-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 14px;
}
.topics-info {
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}
.topics-info.has-topics { color: #4d9eff; }

.existing-images { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

.existing-img-item { position: relative; }

.existing-img-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.existing-img-item label {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: #f87171;
}

.btn-row { display: flex; gap: 12px; margin-top: 32px; }

.error-msg {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    color: #f87171;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.topic-chip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #888;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
}
.topic-chip:hover { border-color: rgba(255,255,255,0.22); color: #ccc; }
.topic-chip.checked { background: rgba(22,115,255,0.15); border-color: rgba(22,115,255,0.5) !important; color: #4d9eff !important; }
.topic-chip.disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Profile ── */
.profile-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    margin-bottom: 48px;
    gap: 24px;
}

.profile-header-left { display: flex; align-items: flex-start; gap: 28px; }

.avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 34px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.profile-meta { padding-top: 4px; }

.profile-label {
    font-size: 12px;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-name {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 48px;
    line-height: 1.0;
    margin-bottom: 8px;
}

.profile-handle { color: #555; font-size: 16px; }

.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.profile-tag {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    text-decoration: none;
}

.profile-tag.company { border-color: rgba(124,58,237,0.35); color: #b08af5; }

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #898989;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-edit:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 24px 28px;
}

.stat-value {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label { color: #898989; font-size: 13px; }

.info-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 6px 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.info-key {
    color: #555;
    font-size: 13px;
    width: 140px;
    flex-shrink: 0;
}

.info-val { font-size: 15px; color: #fff; overflow-wrap: break-word; word-break: break-word; min-width: 0; }

.hidden-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

/* ── Profile edit ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.section-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 32px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 24px;
}

.field-group { margin-bottom: 18px; }
.field-group:last-child { margin-bottom: 0; }

.field-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.field-group input,
.field-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    color: #666; display: flex; align-items: center;
}
.password-toggle:hover { color: #fff; }
.eye-icon { width: 18px; height: 18px; }

.field-group input::placeholder,
.field-group textarea::placeholder { color: #444; }
.field-group input:focus,
.field-group textarea:focus { border-color: rgba(255,255,255,0.3); }

.avatar-section { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }

.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 26px;
    color: #fff;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.avatar-overlay {
    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;
    font-size: 18px;
}

.avatar-preview:hover .avatar-overlay { opacity: 1; }
.avatar-info { font-size: 13px; color: #555; line-height: 1.5; }
.avatar-info strong { display: block; color: #aaa; margin-bottom: 4px; font-size: 14px; }
#avatarFileInput { display: none; }

.roles-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }

.role-pill {
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #aaa;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.role-pill:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.role-pill.selected { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.custom-role-wrap { display: none; margin-top: 10px; }
.custom-role-wrap.visible { display: block; }

.search-wrap { position: relative; margin-bottom: 8px; }

.search-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 16px 12px 40px;
    font-size: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-input::placeholder { color: #444; }
.search-input:focus { border-color: rgba(255,255,255,0.3); }

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
}

.companies-dropdown {
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.companies-dropdown.open { display: flex; }

.company-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
    background: transparent;
    font-family: 'Inter', sans-serif;
    text-align: left;
    width: 100%;
    transition: all 0.15s;
}

.company-opt:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); color: #fff; }

.company-letter-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    flex-shrink: 0;
}

.create-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(124,58,237,0.35);
    cursor: pointer;
    font-size: 14px;
    color: #9d6cf5;
    background: transparent;
    font-family: 'Inter', sans-serif;
    text-align: left;
    width: 100%;
    transition: all 0.15s;
}

.create-opt:hover { border-color: #7c3aed; background: rgba(124,58,237,0.07); }

.selected-company {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.08);
    font-size: 14px;
    color: #b08af5;
    margin-bottom: 8px;
}

.selected-company.visible { display: flex; }

.clear-company {
    margin-left: auto;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.clear-company:hover { color: #aaa; }

.privacy-options { display: flex; flex-direction: column; gap: 8px; }

.privacy-opt {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.15s;
}

.privacy-opt:hover { border-color: rgba(255,255,255,0.2); }
.privacy-opt.selected { border-color: #7c3aed; background: rgba(124,58,237,0.08); }
.privacy-opt input[type="radio"] { display: none; }
.privacy-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.privacy-text .privacy-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.privacy-text .privacy-desc { font-size: 12px; color: #666; }

.form-actions { display: flex; gap: 12px; margin-top: 32px; }

.btn-save {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover { background: #6d28d9; }

.btn-cancel {
    background: transparent;
    color: #666;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 13px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-cancel:hover { border-color: rgba(255,255,255,0.3); color: #aaa; }

/* ── Companies ── */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.company-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s, background 0.2s;
}

.company-card:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); }

.company-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(22,115,255,0.3));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 18px;
}

.company-name { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.company-count { font-size: 13px; color: #898989; margin-bottom: 16px; }

.member-avatars { display: flex; gap: -4px; }

.member-avatar-item {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #0c0c0e;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-left: -6px;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar-item:first-child { margin-left: 0; }
.member-avatar-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Company detail ── */
.company-header { display: flex; align-items: center; gap: 24px; margin-bottom: 56px; }

.company-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(22,115,255,0.3));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 32px;
    color: #fff;
    flex-shrink: 0;
}

.company-header-info h1 { font-family: 'Dela Gothic One', sans-serif; font-size: 40px; line-height: 1.1; margin-bottom: 6px; }
.company-meta { color: #898989; font-size: 15px; }

.members-list { display: flex; flex-direction: column; gap: 8px; }

.member-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px 24px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.member-row:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }

.member-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.member-ava img { width: 100%; height: 100%; object-fit: cover; }
.member-info { flex: 1; }
.member-name { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.member-role { font-size: 13px; color: #898989; }

/* ── Friends ── */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.friend-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s, background 0.2s;
}

.friend-card:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.03); }

.friend-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.12);
    margin: 0 auto 12px; display: block;
}

.friend-avatar-placeholder {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: #fff;
    margin: 0 auto 12px;
}

.friend-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.friend-handle { font-size: 12px; color: #555; margin-bottom: 8px; }
.friend-role { font-size: 12px; color: #898989; }

/* ── Friend requests ── */
.requests-list { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

.request-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.req-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; border: 1px solid rgba(255,255,255,0.12); flex-shrink: 0;
}

.req-avatar-placeholder {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0;
}

.req-info { flex: 1; }
.req-name { font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.req-name:hover { text-decoration: underline; }
.req-meta { font-size: 12px; color: #555; margin-top: 3px; }
.req-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-accept {
    background: #fff; color: #081957; border: none;
    padding: 8px 18px; border-radius: 14px;
    font-size: 13px; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-accept:hover { background: #1673ff; color: #fff; }

.btn-decline {
    background: transparent; color: #555;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 18px; border-radius: 14px;
    font-size: 13px; font-weight: 500;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: all 0.2s;
}

.btn-decline:hover { border-color: rgba(248,113,113,0.4); color: #f87171; }

/* ── Calendar ── */
.events-list { display: flex; flex-direction: column; gap: 8px; }

.event-row {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 22px 28px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.event-row:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); }
.event-row.past { opacity: 0.4; }
.event-row.past:hover { opacity: 0.65; }

.event-date-box { width: 56px; flex-shrink: 0; text-align: center; }

.event-day {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.event-month {
    font-size: 12px;
    color: #898989;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.event-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.event-info { flex: 1; }
.event-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.event-meta { font-size: 13px; color: #898989; }

.attending-badge {
    font-size: 12px;
    font-weight: 600;
    color: #1673ff;
    background: rgba(22,115,255,0.12);
    border-radius: 20px;
    padding: 5px 14px;
    flex-shrink: 0;
}

.past-badge { font-size: 12px; color: #555; flex-shrink: 0; }

/* ── Event detail ── */
.event-date-label {
    font-size: 13px;
    color: #898989;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.event-title-lg {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 32px;
}

.meta-row { display: flex; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }

.meta-item { display: flex; flex-direction: column; gap: 4px; }

.meta-key {
    font-size: 12px;
    color: #898989;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-val { font-size: 16px; font-weight: 500; color: #fff; }

.attend-block {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.attend-block.going { border-color: rgba(22,115,255,0.35); background: rgba(22,115,255,0.06); }
.attend-status { font-size: 16px; font-weight: 500; color: #fff; }
.attend-status.going { color: #4d9eff; }
.attend-count { font-size: 14px; color: #898989; margin-top: 4px; }

.btn-attend {
    background: #1673ff; color: #fff; border: none;
    padding: 12px 28px; border-radius: 20px;
    font-size: 15px; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: background 0.2s; flex-shrink: 0;
}

.btn-attend:hover { background: #0f5ee0; }

.btn-unattend {
    background: transparent; color: #898989;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 28px; border-radius: 20px;
    font-size: 15px; font-weight: 500;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: border-color 0.2s, color 0.2s; flex-shrink: 0;
}

.btn-unattend:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

.description-block h2 { font-family: 'Dela Gothic One', sans-serif; font-size: 22px; margin-bottom: 16px; }
.description-text { font-size: 16px; color: #ccc; line-height: 1.7; white-space: pre-wrap; }

/* ── Login ── */
.login-wrap { max-width: 460px; margin: 0 auto; }

.login-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.login-subtitle { color: #898989; font-size: 16px; margin-bottom: 48px; }

.login-card {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 40px;
}

.btn-submit {
    width: 100%; margin-top: 8px; padding: 15px;
    font-size: 15px; border-radius: 20px; font-weight: 600;
    cursor: pointer; border: none; background: #ffffff; color: #081957;
    font-family: 'Inter', sans-serif; transition: background 0.2s, color 0.2s;
}

.btn-submit:hover { background: #1673ff; color: #ffffff; }

/* ── Auth bottom links ── */
.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #555;
}

.auth-links a { color: #aaa; text-decoration: none; }
.auth-links a:hover { color: #fff; }

/* ── Feed heading ── */
.feed-heading {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 40px;
    margin-bottom: 32px;
}

/* ── Materials list ── */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.material-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s, background 0.2s;
}

.material-card:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); }
.materials-grid .empty-state { grid-column: 1 / -1; }

.material-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 16px;
}

.type-article { background: rgba(255,255,255,0.08); color: #aaa; }
.type-video { background: rgba(22, 115, 255, 0.15); color: #4d9eff; }

.material-title { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 10px; }

.material-desc {
    font-size: 13px;
    color: #898989;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.material-footer { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.material-author { font-size: 12px; color: #555; }
.material-date { font-size: 12px; color: #555; }

/* ── Material detail ── */
.material-title-lg {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 48px;
    line-height: 1.08;
    margin-bottom: 24px;
}

.material-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; color: #898989; font-size: 14px; }
.meta-dot { color: #333; }

.video-embed {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1673ff;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.video-link:hover { background: #0f5ee0; }

.material-content { font-size: 16px; color: #ccc; line-height: 1.8; white-space: pre-wrap; max-width: 720px; }

.material-desc-block {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
}

/* ── Dashboard ── */
.section-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 28px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-link {
    color: #1673ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.section-link:hover { text-decoration: underline; }

.greeting { margin-bottom: 56px; }

.greeting-label {
    font-size: 13px;
    color: #898989;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.greeting-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 52px;
    line-height: 1.05;
}

/* ── Legal pages ── */
.legal-page { max-width: 760px; }
.legal-title { font-family: 'Dela Gothic One', sans-serif; font-size: 32px; margin-bottom: 8px; }
.legal-meta { color: rgba(255,255,255,0.35); font-size: 14px; margin-bottom: 40px; }
.legal-body h2 { font-size: 16px; font-weight: 700; color: #fff; margin: 32px 0 10px; }
.legal-body p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 10px; }
.legal-body ul { padding-left: 20px; margin-bottom: 10px; }
.legal-body li { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 4px; }
.legal-body a { color: #4d9eff; text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: rgba(255,255,255,0.8); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 13px; }
.legal-table th { text-align: left; padding: 10px 14px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); font-weight: 600; border: 1px solid rgba(255,255,255,0.08); }
.legal-table td { padding: 10px 14px; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.06); vertical-align: top; line-height: 1.6; }
.legal-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Error pages ── */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.error-code { font-family: 'Dela Gothic One', sans-serif; font-size: 120px; line-height: 1; color: rgba(255,255,255,0.06); margin-bottom: -16px; }
.error-title { font-family: 'Dela Gothic One', sans-serif; font-size: 28px; color: #fff; margin-bottom: 12px; }
.error-text { font-size: 15px; color: rgba(255,255,255,0.4); margin-bottom: 32px; }

/* ── Inline style replacements ── */

.btn-edit-mobile { display: none; margin-top: 12px; }
.block-link { display: block; text-decoration: none; }

/* nav */
.nav-btn-write { padding: 8px 18px; font-size: 13px; }

.nav-requests-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #898989;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: color 0.2s;
}

.nav-requests-link:hover { color: #fff; }

.nav-requests-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    background: #1673ff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-logout-form { margin: 0; }

.footer-bar {
    margin-top: auto;
    text-align: center;
    padding: 24px 0 32px;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}
.footer-link { color: rgba(255,255,255,0.2); text-decoration: none; }
.footer-link:hover { color: rgba(255,255,255,0.45); }

.bottom-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.bottom-nav-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* profile page */
.profile-header-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.btn-edit-following {
    color: #4ade80;
    border-color: rgba(74,222,128,0.3);
}

.btn-edit-status {
    cursor: default;
    opacity: 0.6;
}

.btn-edit-friends {
    cursor: default;
    color: #4ade80;
    border-color: rgba(74,222,128,0.3);
}

.form-inline { display: inline; }

.stat-card-clickable { cursor: pointer; }

.friends-preview { margin-bottom: 28px; }

.friends-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.friends-preview-label {
    font-size: 14px;
    color: #898989;
    font-weight: 500;
}

.friends-preview-link {
    font-size: 13px;
    color: #1673ff;
    text-decoration: none;
}

.friends-preview-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.friend-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #898989;
    font-size: 12px;
}

.friend-preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
}

.friend-preview-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.info-val-link {
    color: #b08af5;
    text-decoration: none;
}

.profile-posts { margin-top: 40px; }

.profile-section-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.profile-post-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.profile-post-item:hover { border-color: rgba(255,255,255,0.2); }

.profile-post-topics {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-post-topic-link {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(22,115,255,0.3);
    color: #4d9eff;
    text-decoration: none;
}

.profile-post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.profile-post-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
}

.profile-post-body {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-post-meta {
    font-size: 12px;
    color: #444;
    margin-top: 10px;
}

.score-positive { font-size: 13px; font-weight: 600; flex-shrink: 0; color: #4ade80; }
.score-negative { font-size: 13px; font-weight: 600; flex-shrink: 0; color: #f87171; }
.score-zero { font-size: 13px; font-weight: 600; flex-shrink: 0; color: #555; }

.profile-comments { margin-top: 40px; }

.profile-comment-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 18px 24px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.profile-comment-item:hover { border-color: rgba(255,255,255,0.2); }

.profile-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-comment-post-ref { font-size: 13px; color: #555; }
.profile-comment-post-link { color: #1673ff; }
.profile-comment-reply-note { color: #444; }

.profile-comment-body {
    font-size: 15px;
    color: #ccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-comment-date { font-size: 12px; color: #444; margin-top: 8px; }

/* post detail — author block */
.post-author-block {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.post-author-block-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.post-author-block-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.post-author-block-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.post-author-block-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.post-author-block-name { font-size: 16px; font-weight: 600; color: #fff; }
.post-author-block-handle { font-size: 13px; color: #555; }
.post-author-block-role { font-size: 12px; color: #898989; margin-top: 2px; }

.post-author-block-bio { font-size: 14px; color: #aaa; margin-top: 16px; line-height: 1.6; }

.post-author-block-stats {
    display: flex;
    gap: 24px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: #555;
}

.post-author-block-stats b { color: #aaa; }

.post-detail-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.post-detail-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.post-detail-topic-link {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(22,115,255,0.35);
    color: #4d9eff;
    text-decoration: none;
    transition: background 0.2s;
}

.post-detail-topic-link:hover { background: rgba(22,115,255,0.1); }

.author-follow-btn {
    background: #1673ff;
    border: 1px solid #1673ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    transition: all 0.2s;
}

.author-follow-btn.following {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
    color: #898989;
}

.comments-empty { color: #444; font-size: 14px; text-align: center; padding: 24px 0; }

/* feed — sidebar */
.sidebar-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.sidebar-author-row + .sidebar-author-row { border-top: 1px solid rgba(255,255,255,0.05); }

.sidebar-author-rank { font-size: 12px; color: #444; width: 18px; flex-shrink: 0; text-align: right; }
.sidebar-author-rank-self { color: #1673ff; }

.sidebar-author-avatar-wrap { flex-shrink: 0; }

.sidebar-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #1673ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.sidebar-author-info { flex: 1; min-width: 0; }

.sidebar-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-author-stats { font-size: 11px; color: #444; }

.sidebar-follow-btn {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all 0.2s;
    background: rgba(22,115,255,0.15);
    border: 1px solid rgba(22,115,255,0.4);
    color: #4d9eff;
}

.sidebar-follow-btn.following {
    background: transparent;
    border-color: rgba(255,255,255,0.1);
    color: #555;
}

.sidebar-empty { font-size: 13px; color: #444; }

.sidebar-requests-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.sidebar-requests-badge {
    background: #1673ff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* feed.html — empty */
.empty-feed-hint { font-size: 13px; }

/* posts_list */
.post-list-title-link { text-decoration: none; }

.post-list-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 20px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 10px;
}

.post-list-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

/* post form */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-checkbox-hidden { display: none; }

/* ── File attachments (form + detail) ── */
.file-ext-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,115,255,0.15);
    border: 1px solid rgba(22,115,255,0.3);
    color: #4d9eff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    padding: 2px 6px;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

/* In form (edit mode) */
.existing-files { margin-top: 12px; }
.existing-files-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}
.existing-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 6px;
    transition: opacity 0.2s;
}
.existing-file-item.marked-delete {
    opacity: 0.4;
    text-decoration: line-through;
}
.file-name {
    flex: 1;
    font-size: 13px;
    color: #bbb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-size { font-size: 12px; color: #555; flex-shrink: 0; }
.file-delete-btn {
    cursor: pointer;
    color: #f87171;
    font-size: 13px;
    flex-shrink: 0;
    padding: 2px 4px;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.file-delete-btn:hover { opacity: 1; }

/* In post detail */
.post-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
}
.post-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.post-file-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}
.post-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.post-file-name {
    font-size: 13px;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-file-size { font-size: 11px; color: #555; }
.post-file-dl { color: #555; flex-shrink: 0; }
.post-file-item:hover .post-file-dl { color: #4d9eff; }

/* ── Error pages (403, 404, 500) ── */
.error-page-block {
    text-align: center;
    max-width: 420px;
    padding: 0 20px;
}
.error-page-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}
.error-page-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 36px;
    margin-bottom: 16px;
    color: #fff;
}
.error-page-text {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 28px;
}
.error-page-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* profile_edit */
.section-card-mb { margin-bottom: 16px; }
.field-group-no-mb { margin-bottom: 0; }
.privacy-desc-text { font-size: 13px; color: #666; margin-bottom: 18px; }

/* friends */
.back-link-blue { color: #1673ff; text-decoration: none; }

/* dashboard */
.feed-cta-link { color: #1673ff; text-decoration: none; }

/* password_reset_confirm */
.email-highlight { color: #fff; }

/* step3 */
.field-group-no-mb-step3 { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    body { padding-bottom: 74px; }
    nav { height: 64px; }
    .nav-center { display: none !important; }
    .btn-ghost { display: none !important; }
    .nav-username-link .nav-username-text { display: none; }
    .page { width: 100%; margin: 20px auto; padding: 0 16px; }
    .feed-layout { grid-template-columns: 1fr; }
    .feed-sidebar { display: none; }
    .profile-name { font-size: 28px !important; }
    .stat-value { font-size: 26px !important; }
    .stat-card { padding: 16px 18px !important; }
    .btn-edit-desktop { display: none !important; }
    .btn-edit-mobile { display: inline-block !important; }
    .profile-header { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
    .profile-header-actions { width: 100%; }
    .edit-grid { grid-template-columns: 1fr !important; }
    .page-title { font-size: 32px !important; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .form-actions { flex-direction: column; }
    .btn-save, .btn-cancel { width: 100%; justify-content: center; text-align: center; }
    .section-card { padding: 20px !important; }
    .companies-grid { grid-template-columns: 1fr 1fr; }

    /* Compact follow buttons: post cards + post detail author */
    .post-action-btn.follow-toggle,
    .author-follow-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 400;
    }

    /* composer mobile */
    .composer-title-input { font-size: 15px; padding: 14px 16px 12px; }
    .composer-body-input { padding: 12px 16px 14px; }
    .composer-sep { margin: 0 16px; }
    .composer-toolbar { padding: 8px 12px; }
    .toggle-label-text { display: none; }
    .post-settings-card { padding: 14px 16px; }

    /* topics mobile */
    .topic-rank { font-size: 18px; min-width: 22px; }
    .topic-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
    .topic-name { font-size: 15px; }
    .topic-desc { padding-left: 0; margin-top: 10px; }
    .topic-stats { padding-left: 0; flex-wrap: wrap; gap: 10px; }

    /* Compact follow buttons on mobile */
    .btn-full { display: none; }
    .btn-short { display: inline; }

    .topic-follow-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 400;
    }
    .topic-follow-btn.is-following { font-size: 16px; }

    /* topic-hero: compact on mobile */
    .topic-hero {
        padding: 20px;
        gap: 14px;
        align-items: flex-start;
    }
    .topic-hero h1 { font-size: 22px; }
    .topic-hero-stats { gap: 14px; flex-wrap: wrap; }
    .follow-topic-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }
    .topic-desc { padding-left: 0; margin-top: 10px; }
    .topic-stats { padding-left: 0; flex-wrap: wrap; gap: 10px; }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #040716;
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 200;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #898989;
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        min-width: 44px;
        padding: 4px;
        transition: color 0.2s;
    }

    .bottom-nav a svg { width: 22px; height: 22px; }
    .bottom-nav a.bottom-nav-active { color: #ffffff; }

    .bottom-nav-create {
        width: 48px !important;
        height: 48px !important;
        background: #1673ff;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        flex-direction: row !important;
        padding: 0 !important;
    }

    .bottom-nav-create svg { width: 26px !important; height: 26px !important; }
}
