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

/* ── Self-hosted fonts ── */
@font-face {
    font-family: 'Dela Gothic One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/DelaGothicOne-Regular.970e69180c11.woff2") format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Inter-Variable.4f2d3cb4ac0e.woff2") format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/Inter-Variable.4f2d3cb4ac0e.woff2") format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Inter-Variable.4f2d3cb4ac0e.woff2") format('woff2');
}

/* ── Z-index scale ── */
:root {
    --z-base: 1;
    --z-sticky: 100;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-bug-panel: 900;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid #1673ff; outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

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: var(--z-sticky);
}

.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-flex;
    align-items: center;
    justify-content: center;
    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;
    min-height: 44px;
}

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

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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;
    min-height: 44px;
}

.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: #898989;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

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

.text-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.page-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 52px;
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: break-word;
    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: #898989;
    font-size: 15px;
}

/* ── Career hub ── */
.career-section {
    margin-bottom: 48px;
}
.career-section:last-child {
    margin-bottom: 0;
}
.career-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.career-section-header .section-title {
    margin-bottom: 0;
}
.career-see-all {
    color: #1673ff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.career-see-all:hover {
    opacity: 0.7;
}

/* ── 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;
    overflow: hidden;
}

.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: #898989; 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: #898989;
    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-link {
    color: #4da3ff;
    text-decoration: underline;
    text-decoration-color: rgba(77, 163, 255, 0.4);
    word-break: break-all;
}
.post-link:hover { color: #74b9ff; text-decoration-color: #74b9ff; }

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

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

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

.post-images.single img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    background: #0a0d1a;
}

@media (max-width: 600px) {
    .post-images.single {
        position: relative;
        left: -24px;
        width: calc(100% + 48px);
        max-width: none;
        border-radius: 0;
        margin-bottom: 12px;
    }
    .post-images.single img {
        border-radius: 0;
    }
}

.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: #898989;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.react-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.react-btn:focus-visible, .c-react-btn:focus-visible, .share-btn:focus-visible { outline: none; }
.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: #898989;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

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

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #898989;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}
.share-btn:hover { color: #aaa; }
.share-btn.copied { color: #4caf50; }

/* ── 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: #898989;
    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: #898989;
    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: #898989;
}

.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: #898989; 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: #999;
    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: #888;
    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-card-link { text-decoration: none; color: inherit; display: block; }
.topic-card-link:hover .topic-desc { color: #888; }
.topic-rank-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.post-images-link { display: block; text-decoration: none; }

.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: #898989;
}

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

/* ── 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: #999; line-height: 1.6; max-width: 560px; }
.topic-hero-stats { display: flex; gap: 24px; margin-top: 16px; font-size: 13px; color: #898989; }
.topic-hero-stats b { color: #aaa; }


.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: #898989;
    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: #777; }

.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: #888; }
.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: #888;
    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: #898989; min-width: 20px; text-align: center; font-weight: 600; }

.reply-btn {
    background: transparent;
    border: none;
    color: #888;
    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: #777; }

.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: #888;
    font-size: 14px;
}

.comments-auth-cta {
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}
.comments-auth-cta p { margin: 0 0 16px; }
.comments-auth-cta-actions { display: flex; gap: 10px; justify-content: center; }

.reaction-bar-anon {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 6px 14px;
    color: #898989;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.reaction-bar-anon:hover { background: rgba(255,255,255,0.08); color: #888; }

.post-login-gate {
    color: #898989;
    font-size: 14px;
    text-decoration: none;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-block;
}
.post-login-gate:hover { color: #888; border-color: rgba(255,255,255,0.2); }

.post-file-item-locked { opacity: 0.5; cursor: pointer; }
.post-file-item-locked:hover { opacity: 0.75; }

/* ── 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: #777; }
textarea.form-control { resize: vertical; min-height: 180px; }



/* ── 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: #777; }

.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: #777; }

/* ── 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: var(--z-dropdown);
    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: #898989;
    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;
}
.success-msg {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.input-error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(248,113,113,0.2);
}

.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: #898989;
    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: #898989; 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;
    margin-top: 24px;
}

.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: #898989;
    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: #898989;
}

/* ── 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: #898989;
    margin-bottom: 24px;
}

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

.field-label {
    display: block;
    font-size: 13px;
    color: #999;
    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: #999; display: flex; align-items: center;
}
.password-toggle:hover { color: #fff; }
.eye-icon { width: 18px; height: 18px; }
.eye-hide { display: none; }

.field-group input::placeholder,
.field-group textarea::placeholder { color: #777; }
.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: #898989; 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: #777; }
.search-input:focus { border-color: rgba(255,255,255,0.3); }

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #898989;
    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: #898989;
    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: #999; }

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


/* ── 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; }
.company-description { font-size: 15px; color: #c0c0c0; line-height: 1.6; margin-bottom: 28px; }

/* Company logo image support */
.company-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.company-logo-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* Edit button on company detail */
.company-header-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Claim CTA on unclaimed company page */
.company-claim-cta {
    display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: 16px 20px; margin-bottom: 28px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-left: 3px solid #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 12px;
}
.company-claim-text { font-size: 14px; color: #d8d8d8; line-height: 1.5; flex: 1 1 260px; }
.company-claim-text strong { color: #fbbf24; display: block; margin-bottom: 4px; }
.company-claim-btn {
    padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.15); color: #fbbf24; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: background 0.15s ease;
    min-height: 44px;
}
.company-claim-btn:hover { background: rgba(251, 191, 36, 0.25); }
.company-claim-note {
    padding: 12px 16px; margin-bottom: 24px;
    border-left: 3px solid rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.04);
    border-radius: 8px;
    font-size: 13px; color: #a0a0a0; line-height: 1.5;
}


/* "Ваши компании" section */
.my-companies-section { margin-bottom: 40px; }
.section-title-first { margin-top: 0; }

.company-card-owned { position: relative; display: block; }
.company-card-inner { display: block; text-decoration: none; color: inherit; }
.company-edit-corner {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    z-index: 1;
}
.company-edit-corner:hover { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); color: #fff; }

/* Company edit page */
.company-logo-edit { display: flex; align-items: center; gap: 20px; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-upload-logo {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-upload-logo:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.logo-hint { font-size: 12px; color: #999; line-height: 1.5; margin: 6px 0 0; }
.btn-clear-logo {
    background: none;
    border: none;
    font-size: 13px;
    color: #f87171;
    cursor: pointer;
    padding: 0;
    text-align: left;
}
.btn-clear-logo:hover { text-decoration: underline; }
.hidden-file-input { display: none; }
.char-counter { font-size: 12px; color: #999; text-align: right; margin-top: 6px; }
.field-hint { font-size: 12px; color: #999; font-weight: 400; margin-left: 6px; }
.section-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 20px 0; }

/* Members page with admin badges */
.member-row-static {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 12px 16px;
    transition: border-color 0.2s, background 0.2s;
}
.member-row-static:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.02); }
.member-row-link { display: flex; align-items: center; gap: 16px; flex: 1; text-decoration: none; color: inherit; }
.admin-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.4);
    color: #b08af5;
    margin-left: 8px;
    vertical-align: middle;
}
.btn-make-admin {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #898989;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.btn-make-admin:hover { border-color: rgba(124,58,237,0.5); color: #b08af5; }
.add-admin-form { margin: 0; }

.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: #898989; 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: #898989; margin-top: 3px; }
.req-actions { display: flex; gap: 8px; flex-shrink: 0; }
.req-status { font-size: 13px; flex-shrink: 0; font-weight: 500; }
.req-status-pending { color: #898989; }
.req-status-accepted { color: #4ade80; }
.req-status-declined { color: #f87171; }

.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: #898989;
    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; min-width: 0; }
.event-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.event-meta { font-size: 13px; color: #898989; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.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: #898989; 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; }


.btn-attend {
    display: inline-flex; align-items: center; justify-content: center;
    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; min-height: 44px;
    text-decoration: none;
}

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

.btn-unattend {
    display: inline-flex; align-items: center; justify-content: center;
    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; min-height: 44px;
}

.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; }

/* ── Event topbar ── */
.event-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

.btn-danger-sm {
    font-size: 13px; font-weight: 500; color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.3); border-radius: 12px;
    padding: 6px 14px; text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn-danger-sm:hover { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.6); }

.btn-danger {
    background: #c0392b; color: #fff; border: none;
    padding: 13px 28px; border-radius: 20px;
    font-size: 15px; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: background 0.2s;
}
.btn-danger:hover { background: #e74c3c; }

.confirm-delete-wrap { max-width: 480px; }
.confirm-delete-name { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.confirm-delete-sub { font-size: 15px; color: #898989; margin-bottom: 36px; line-height: 1.6; }

/* ── Event dateline ── */
.event-dateline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 15px;
}
.event-dateline-date { color: #fff; font-weight: 600; }
.event-dateline-time { color: #ccc; }
.event-dateline-sep { color: #888; }
.event-days-inline {
    color: #ffaa33;
    font-weight: 600;
}
.event-ics-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 4px 10px;
    margin-left: 4px;
    transition: border-color 0.2s, color 0.2s;
}
.event-ics-link:hover { border-color: rgba(255,255,255,0.3); color: #ccc; }

/* ── Event bottom actions ── */
.event-bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.event-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ccc;
    padding: 12px 22px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.event-share-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }

/* ── Event banner ── */
.event-banner {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    max-height: 420px;
}
.event-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Event header row ── */
.event-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* ── Meta val link ── */
.meta-val-link {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, color 0.2s;
}
.meta-val-link:hover { color: #1673ff; border-color: #1673ff; }

/* ── Event actions row ── */
.event-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn-register {
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-block;
}
.btn-register:hover { opacity: 0.88; }


/* ── Attendees block ── */
.attendees-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}
.attendees-stack {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.attendee-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #0d1327;
    background: #1e2a4a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: -10px;
    flex-shrink: 0;
}
.attendee-ava:last-child { margin-left: 0; }
.attendee-ava img { width: 100%; height: 100%; object-fit: cover; }
.attendee-extra {
    background: rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
}
.attendees-label { font-size: 14px; color: #898989; }

/* ── Calendar days pill ── */
.event-row-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.event-days-pill {
    font-size: 12px;
    color: #ffaa33;
    background: rgba(255,165,0,0.1);
    border-radius: 12px;
    padding: 4px 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Event form ── */

/* Banner upload area */
.event-banner-upload {
    position: relative;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-banner-upload:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.02); }
.event-banner-upload.has-image { min-height: 0; }

.event-banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #898989;
    font-size: 14px;
    padding: 32px;
}
.event-banner-placeholder svg { color: #888; }
.event-banner-hint { font-size: 12px; color: #3a3a3a; }

#banner-preview {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 13px;
}

.event-banner-remove {
    position: absolute;
    top: 12px; right: 12px;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.6);
    border: none; border-radius: 50%;
    color: #fff; font-size: 13px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.event-banner-remove:hover { background: rgba(0,0,0,0.85); }

/* Inline fields inside settings card */
.event-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
}
.event-fields-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 0 20px; }
.event-fields-hint { font-size: 12px; color: #888; padding: 0 20px 14px 47px; }

.event-inline-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color-scheme: dark;
}
.event-inline-input::placeholder { color: #777; }

/* Date range */
.event-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.event-date-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color-scheme: dark;
    cursor: pointer;
}
.event-date-input.event-date-end { color: #999; }
.event-date-input.event-date-end:focus,
.event-date-input.event-date-end:not(:placeholder-shown) { color: #fff; }
.event-date-arrow { color: #888; font-size: 14px; flex-shrink: 0; }

/* char counter inside composer */
.composer-char-counter {
    font-size: 12px;
    color: #888;
    text-align: right;
    padding: 0 20px 12px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-optional { font-size: 12px; color: #898989; font-weight: 400; margin-left: 6px; }
.form-hint { font-size: 12px; color: #898989; margin-top: 6px; }
.form-error { font-size: 13px; color: #ff4d4d; margin-top: 5px; }
.form-error-block { background: rgba(255,77,77,0.1); border: 1px solid rgba(255,77,77,0.3); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #ff7070; margin-bottom: 16px; }

.event-company-picker { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.company-pick-item input[type="radio"] { display: none; }
.company-pick-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 10px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.company-pick-item input[type="radio"]:checked + .company-pick-inner {
    border-color: #1673ff;
    background: rgba(22,115,255,0.08);
}
.company-pick-inner:hover { border-color: rgba(255,255,255,0.3); }
.company-pick-logo {
    width: 28px; height: 28px; border-radius: 8px;
    background: #1e2a4a; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0;
}
.company-pick-logo img { width: 100%; height: 100%; object-fit: cover; }
.company-pick-name { font-size: 14px; font-weight: 500; color: #fff; }

/* ── btn-primary-sm ── */
.btn-primary-sm {
    display: inline-block;
    background: #1673ff;
    color: #fff;
    border-radius: 16px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary-sm:hover { background: #0f5ee0; }

/* ── 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: #898989;
}

.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: #898989; }
.material-date { font-size: 12px; color: #898989; }

/* ── 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: #888; }

.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; }

/* ── Nav user dropdown ── */
.nav-user-wrap { position: relative; display: flex; align-items: center; }

.nav-user-trigger {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    color: #898989; font-size: 14px; font-family: inherit;
    padding: 8px; border-radius: 8px; transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px; min-height: 44px; justify-content: center;
}
.nav-user-trigger:hover { color: #fff; }

.nav-avatar-wrap { position: relative; flex-shrink: 0; }

.nav-user-dropdown {
    display: none; position: absolute;
    top: calc(100% + 8px); right: 0;
    background: #1a1a2e; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; overflow: hidden;
    z-index: var(--z-dropdown); min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-user-dropdown.open { display: block; }

.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 12px 16px;
    color: #bbb; text-decoration: none;
    font-size: 14px; font-family: inherit;
    background: transparent; border: none; cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }

.nav-dropdown-badge {
    margin-left: auto;
    min-width: 20px; height: 20px;
    background: #1673ff; border-radius: 10px;
    font-size: 11px; font-weight: 700; color: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }

.nav-dropdown-item.nav-dropdown-logout { color: #f87171; }
.nav-dropdown-item.nav-dropdown-logout:hover { background: rgba(248,113,113,0.1); }

.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;
}


.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: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-post-meta {
    font-size: 12px;
    color: #888;
    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: #898989; }

.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: #898989; }
.profile-comment-post-link { color: #1673ff; }
.profile-comment-reply-note { color: #888; }

.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: #888; 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: #898989; }
.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: #898989;
}

.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: #888; 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: #888; 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: #888; }

.sidebar-follow-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: rgba(22,115,255,0.15);
    border: 1px solid rgba(22,115,255,0.4);
    color: #4d9eff;
    padding: 0 0 2px 0;
}

.sidebar-follow-btn.following {
    background: transparent;
    border-color: rgba(255,255,255,0.1);
    color: #898989;
    font-size: 13px;
}

.sidebar-follow-btn:focus-visible { outline: none; }

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

.sidebar-promo-banner {
    display: block;
    background: linear-gradient(135deg, #0d1f4a 0%, #0a1428 100%);
    border: 1px solid rgba(22, 115, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.sidebar-promo-banner:hover { border-color: rgba(22, 115, 255, 0.7); color: #fff; }
.sidebar-promo-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #1673ff; margin-bottom: 8px; }
.sidebar-promo-title { font-family: 'Dela Gothic One', sans-serif; font-size: 20px; line-height: 1.15; margin-bottom: 8px; }
.sidebar-promo-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.sidebar-promo-cta { font-size: 13px; font-weight: 600; color: #1673ff; }

/* Promo banner — in-feed variant (between posts) */
.promo-banner-feed {
    display: block;
    border: 1px solid rgba(22,115,255,0.3);
    border-radius: 22px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    background: linear-gradient(135deg, #0d1f4a 0%, #0a1428 100%);
}
.promo-banner-feed:hover { border-color: rgba(22,115,255,0.7); color: #fff; }
.promo-banner-feed .sidebar-promo-title { font-size: 22px; }

/* Promo banner — push variant (purple gradient) */
.promo-banner-push { background: linear-gradient(135deg, #1a0d4a 0%, #140a28 100%); border-color: rgba(124,58,237,0.3); }
.promo-banner-push:hover { border-color: rgba(124,58,237,0.7); }
.promo-banner-push .sidebar-promo-label { color: #a78bfa; }
.promo-banner-push .sidebar-promo-cta { color: #a78bfa; }

.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: #999;
    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: #898989; 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: #898989; }
.post-file-dl { color: #898989; flex-shrink: 0; }
.post-file-item:hover .post-file-dl { color: #4d9eff; }



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

/* friends */

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

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

/* step3 */

/* ── Work Experience ── */
.profile-experience { margin-top: 40px; }

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.profile-section-header .profile-section-title { margin-bottom: 0; }

.experience-list { display: flex; flex-direction: column; gap: 16px; }

.experience-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.02);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.experience-main { flex: 1; min-width: 0; }

.experience-position {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.experience-company {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
}
.experience-company a { color: #4d9eff; text-decoration: none; }
.experience-company a:hover { text-decoration: underline; }

.experience-period {
    font-size: 13px;
    color: #898989;
}

.experience-current {
    color: #4ade80;
    font-weight: 500;
}

.experience-description {
    margin-top: 12px;
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

.experience-skills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* experience inside .info-card on profile page */
.experience-info-row {
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.experience-info-row:last-child { border-bottom: none; }
/* create company button (experience form) */
.btn-create-company {
    width: 100%; padding: 13px 16px; margin-top: 8px;
    background: transparent; border: 1px dashed rgba(124,58,237,0.4);
    border-radius: 14px; color: #9d6cf5; font-size: 14px; font-weight: 500;
    cursor: pointer; text-align: left; transition: border-color 0.2s, background 0.2s;
}
.btn-create-company:hover { border-color: #7c3aed; background: rgba(124,58,237,0.08); }

.info-row-compact { margin-bottom: 8px; }
.info-row-compact .info-val { font-size: 15px; color: #fff; }
.info-row-compact .info-sub { font-size: 13px; color: #898989; margin-left: 8px; }

.experience-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
}

.experience-delete-form { display: inline; }

.experience-form .section-card { margin-bottom: 16px; }

.experience-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.experience-current-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
}
.experience-current-check input { cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 768px) {
    body { padding-bottom: 74px; }
    nav { height: 64px; }
    .nav-center { display: none !important; }
    nav .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; }
    .form-actions .btn, .form-actions .btn-ghost { 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; }
    .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: var(--z-dropdown);
        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; }

    /* Touch targets 44px on mobile */
    .react-btn, .c-react-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .reply-btn { min-height: 44px; }
    .share-btn { min-height: 44px; min-width: 44px; }
}

/* ── Bug Report Widget ── */
.bug-hidden { display: none !important; }

.bug-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    z-index: var(--z-bug-panel);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transition: width 0.3s ease, background 0.2s;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    padding: 0;
}

.bug-fab-icon {
    font-size: 18px;
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bug-fab-text {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #fff;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease, width 0.3s ease, padding-right 0.3s ease;
    padding-right: 0;
}

.bug-fab:hover {
    background: rgba(255,255,255,0.14);
    width: 148px;
}

.bug-fab:hover .bug-fab-text {
    opacity: 1;
    width: 94px;
    padding-right: 14px;
}

.bug-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--z-bug-panel) + 10);
    backdrop-filter: blur(2px);
}

.bug-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: #0d1127;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: calc(var(--z-bug-panel) + 20);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bug-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 0;
    flex-shrink: 0;
}

.bug-panel-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}

.bug-panel-subtitle { font-size: 13px; color: #898989; }

.bug-panel-close {
    background: none;
    border: none;
    color: #898989;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-top: -2px;
}
.bug-panel-close:hover { color: #fff; }

.bug-panel-body {
    padding: 20px 24px 32px;
    overflow-y: auto;
    flex: 1;
}

.bug-intro {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 18px;
}

.bug-info-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bug-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.bug-info-key {
    color: #898989;
    flex-shrink: 0;
    width: 72px;
}

.bug-info-val {
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.bug-info-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 2px 0;
    outline: none;
}
.bug-info-input::placeholder { color: #777; }
.bug-info-input:focus { border-bottom-color: rgba(255,255,255,0.4); }

.bug-field { margin-bottom: 16px; }

.bug-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #898989;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bug-req { color: #f87171; }

.bug-input, .bug-textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.bug-input:focus, .bug-textarea:focus { border-color: rgba(255,255,255,0.25); }

.bug-textarea { min-height: 100px; resize: vertical; }

.bug-screenshot-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #4d9eff;
    background: rgba(22,115,255,0.1);
    border: 1px solid rgba(22,115,255,0.3);
    border-radius: 10px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.bug-screenshot-btn:hover { background: rgba(22,115,255,0.2); }

.bug-screenshot-hint {
    font-size: 12px;
    color: #999;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.bug-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #898989;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}
.bug-file-label:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.bug-file-label input { display: none; }

.bug-file-preview {
    position: relative;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.bug-file-preview img { width: 100%; display: block; }
.bug-file-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bug-error {
    font-size: 13px;
    color: #f87171;
    background: rgba(248,113,113,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.bug-submit {
    width: 100%;
    background: #1673ff;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 13px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.bug-submit:hover { background: #0f5ed8; }
.bug-submit:disabled { opacity: 0.5; cursor: default; }

.bug-success {
    text-align: center;
    padding: 40px 0;
}
.bug-success-icon {
    width: 56px;
    height: 56px;
    background: rgba(74,222,128,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4ade80;
    margin: 0 auto 16px;
}
.bug-success-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .bug-fab { bottom: 80px; right: 16px; max-width: 40px; }
    .bug-fab:hover { max-width: 160px; }
    .bug-panel { width: 100vw; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }

    .nav-btn-write-desktop { display: none !important; }

    /* ── Events mobile ── */
    .event-title-lg { font-size: 36px !important; }
    .event-row { gap: 12px; padding: 16px 18px; }
    .event-date-box { width: 44px; }
    .event-day { font-size: 26px; }
    .event-row-right { flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
    .event-days-pill { font-size: 11px; padding: 3px 8px; }
    .attending-badge { font-size: 11px; padding: 4px 10px; }
    .event-dateline { gap: 6px; font-size: 14px; flex-wrap: wrap; }
    .event-ics-link { margin-left: 0; }
    .event-bottom-actions { flex-direction: column; align-items: stretch; }
    .event-bottom-actions .btn-register,
    .event-bottom-actions .btn-attend,
    .event-bottom-actions .btn-unattend,
    .event-bottom-actions .event-share-btn { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
    .event-header-row { flex-direction: column; gap: 12px; }
    .meta-row { gap: 20px; }
}

/* ── Authors Landing & Rules ─────────────────────────────────────── */
.authors-landing, .authors-rules { max-width: 860px; margin: 0 auto; padding-bottom: 80px; }

/* Leaderboard */
.leaderboard-back { margin-bottom: 32px; }
.leaderboard-back a { color: rgba(255,255,255,.45); font-size: 14px; text-decoration: none; }
.leaderboard-back a:hover { color: #fff; }
.leaderboard-header { text-align: center; padding: 48px 0 48px; }
.leaderboard-title { font-family: 'Dela Gothic One', sans-serif; font-size: clamp(36px, 5vw, 56px); color: #fff; margin: 0 0 12px; line-height: 1.05; }
.leaderboard-period { font-size: 16px; color: rgba(255,255,255,.5); margin: 0; }
.leaderboard-table { display: flex; flex-direction: column; gap: 8px; }
.leaderboard-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); text-decoration: none; transition: background .2s, border-color .2s; }
.leaderboard-row:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.leaderboard-row--gold { border-color: rgba(255,200,0,.3); background: rgba(255,200,0,.05); }
.leaderboard-row--silver { border-color: rgba(180,180,200,.25); background: rgba(180,180,200,.04); }
.leaderboard-row--bronze { border-color: rgba(200,130,80,.25); background: rgba(200,130,80,.04); }
.leaderboard-place { width: 32px; font-family: 'Dela Gothic One', sans-serif; font-size: 20px; color: rgba(255,255,255,.3); text-align: center; flex-shrink: 0; }
.leaderboard-row--gold .leaderboard-place { color: #ffc800; }
.leaderboard-row--silver .leaderboard-place { color: #b4b4c8; }
.leaderboard-row--bronze .leaderboard-place { color: #c88250; }
.leaderboard-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.leaderboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: #1673ff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-weight: 600; color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-username { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 2px; }
.leaderboard-growth { text-align: right; flex-shrink: 0; }
.leaderboard-growth-num { display: block; font-family: 'Dela Gothic One', sans-serif; font-size: 22px; color: #fff; }
.leaderboard-growth-label { font-size: 12px; color: rgba(255,255,255,.4); }
.leaderboard-empty { text-align: center; padding: 64px 0; }
.leaderboard-empty p { color: rgba(255,255,255,.5); margin-bottom: 24px; font-size: 16px; }
.leaderboard-user-status { margin-top: 32px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px 24px; }
.leaderboard-user-status-inner { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.leaderboard-user-status-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.leaderboard-user-status-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-user-status-info { flex: 1; }
.leaderboard-user-status-msg { text-align: right; }
.leaderboard-user-posts { display: block; font-size: 20px; font-weight: 700; color: #fff; }
.leaderboard-user-hint { font-size: 12px; color: rgba(255,255,255,.4); }
.leaderboard-user-cta { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 16px; }

/* Hero */
.authors-hero { padding: 72px 0 80px; text-align: center; }
.authors-hero-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #1673ff; margin-bottom: 20px; }
.authors-hero-title { font-family: 'Dela Gothic One', sans-serif; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; color: #fff; margin: 0 0 24px; }
.authors-hero-sub { font-size: 18px; color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.6; margin: 0 auto 36px; }
.authors-hero-sub strong { color: #fff; }
.authors-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary-lg { background: #1673ff; color: #fff; border: none; border-radius: 50px; padding: 14px 32px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .2s; }
.btn-primary-lg:hover { opacity: .85; }
.btn-gold-lg { background: linear-gradient(135deg, #f5c842 0%, #e09b00 100%); color: #1a1000; border: none; border-radius: 50px; padding: 14px 32px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .2s; }
.btn-gold-lg:hover { opacity: .85; color: #1a1000; }
.btn-ghost-lg { background: transparent; color: rgba(255,255,255,.7); border: 1.5px solid rgba(255,255,255,.2); border-radius: 50px; padding: 14px 32px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: border-color .2s, color .2s; }
.btn-ghost-lg:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* Sections */
.authors-section { padding: 60px 0; border-top: 1px solid rgba(255,255,255,.08); }
.authors-section-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #1673ff; margin-bottom: 12px; }
.authors-section-title { font-family: 'Dela Gothic One', sans-serif; font-size: clamp(28px, 4vw, 44px); color: #fff; margin: 0 0 24px; }
.authors-section-desc { font-size: 16px; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0 0 32px; }
.authors-note { font-size: 14px; color: rgba(255,255,255,.45); margin-top: 24px; }

/* Prizes */
.authors-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.authors-prize { border-radius: 16px; padding: 28px 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); text-align: center; }
.authors-prize--gold { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.06); }
.authors-prize--silver { border-color: rgba(148,163,184,.3); background: rgba(148,163,184,.05); }
.authors-prize--bronze { border-color: rgba(180,120,60,.3); background: rgba(180,120,60,.05); }
.authors-prize-place { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.authors-prize--gold .authors-prize-place { color: #fbbf24; }
.authors-prize--silver .authors-prize-place { color: #94a3b8; }
.authors-prize--bronze .authors-prize-place { color: #b47c3c; }
.authors-prize-amount { font-family: 'Dela Gothic One', sans-serif; font-size: clamp(22px, 3vw, 32px); color: #fff; margin-bottom: 6px; }
.authors-prize-share { font-size: 13px; color: rgba(255,255,255,.4); }

/* Steps */
.authors-steps { display: flex; flex-direction: column; gap: 0; }
.authors-step { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.authors-step:last-child { border-bottom: none; }
.authors-step-num { font-family: 'Dela Gothic One', sans-serif; font-size: 40px; color: rgba(255,255,255,.1); flex-shrink: 0; width: 56px; line-height: 1; }
.authors-step-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.authors-step-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* Studio levels */
.authors-studio-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.authors-studio-level { border-radius: 16px; padding: 24px 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.authors-studio-level--pro { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.07); }
.authors-studio-level--expert { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.06); }
.authors-studio-level-name { font-family: 'Dela Gothic One', sans-serif; font-size: 20px; color: #fff; margin-bottom: 6px; }
.authors-studio-level--pro .authors-studio-level-name { color: #818cf8; }
.authors-studio-level--expert .authors-studio-level-name { color: #fbbf24; }
.authors-studio-level-req { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.authors-studio-level-perks { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.5; }

/* Transparency */
.authors-section--transparency { }
.authors-transparency-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.authors-transparency-item { display: flex; align-items: flex-start; gap: 16px; font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.5; }
.authors-transparency-icon { flex-shrink: 0; width: 36px; height: 36px; background: rgba(255,255,255,.06); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #1673ff; }

/* CTA */
.authors-cta { padding: 72px 0 0; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
.authors-cta-title { font-family: 'Dela Gothic One', sans-serif; font-size: clamp(28px, 4vw, 44px); color: #fff; margin: 0 0 16px; }
.authors-cta-sub { font-size: 17px; color: rgba(255,255,255,.55); margin: 0 0 36px; }
.authors-cta .authors-hero-actions { justify-content: center; }
.authors-cta-contact { margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.35); }
.authors-cta-contact a { color: rgba(255,255,255,.5); text-decoration: none; }
.authors-cta-contact a:hover { color: #fff; }

/* Rules page */
.authors-rules-header { padding: 40px 0 36px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.authors-rules-header h1 { font-family: 'Dela Gothic One', sans-serif; font-size: clamp(28px, 4vw, 44px); color: #fff; margin: 12px 0 0; }
.authors-rules-body { padding-top: 8px; }
.authors-rules-section { padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.authors-rules-section h2 { font-family: 'Dela Gothic One', sans-serif; font-size: 24px; color: #fff; margin: 0 0 16px; }
.authors-rules-section h3 { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.7); margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.authors-rules-section p { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.7; margin: 0 0 16px; }
.authors-rules-section ul { padding-left: 20px; margin: 0; }
.authors-rules-section ul li { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 6px; }
.authors-rules-table-wrap { overflow-x: auto; margin: 20px 0; }
.authors-rules-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.authors-rules-table th { text-align: left; padding: 10px 16px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.authors-rules-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.authors-rules-table tr:last-child td { border-bottom: none; }
.authors-rules-contact { padding: 32px 0; font-size: 15px; color: rgba(255,255,255,.5); }
.authors-rules-contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.authors-rules-contact a:hover { color: #fff; }

/* Mobile */
@media (max-width: 600px) {
    .authors-prizes, .authors-studio-levels { grid-template-columns: 1fr; }
    .authors-step-num { font-size: 28px; width: 40px; }
    .authors-cta { text-align: left; }
    .authors-cta .authors-hero-actions { justify-content: flex-start; }
}

/* ── Mentions ─────────────────────────────────────────────────────────────── */

.mention-link {
    color: #4da3ff;
    font-weight: 500;
    text-decoration: none;
}
.mention-link:hover { text-decoration: underline; }

.mention-dropdown {
    display: none;
    position: absolute;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    z-index: var(--z-modal);
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.mention-dropdown.open { display: block; }

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s;
}
.mention-item:hover,
.mention-item.active {
    background: rgba(255,255,255,0.06);
}

.mention-item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mention-item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mention-item-name {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mention-item-username {
    font-size: 12px;
    color: #888;
}

/* ── Notifications ── */

.nav-avatar-dot {
    position: absolute; top: -1px; right: -1px;
    width: 10px; height: 10px;
    background: #f43f5e; border-radius: 50%;
    border: 2px solid #040716;
}

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

.notification-card {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 16px 20px;
    text-decoration: none; color: #bbb;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.notification-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
}
.notification-card.unread {
    background: rgba(22,115,255,0.06);
    border-color: rgba(22,115,255,0.2);
}

.notification-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}
.notification-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;
}

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

.notification-text {
    font-size: 14px; color: #ccc; line-height: 1.4;
}
.notification-text strong { color: #fff; font-weight: 600; }

.notification-meta {
    display: block; font-size: 12px; color: #898989; margin-top: 4px;
}

.notification-unread-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #1673ff; flex-shrink: 0;
}

.notification-empty {
    text-align: center; color: #898989; padding: 48px 0; font-size: 15px;
}

/* ── Poll ── */

.poll-section {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.poll-question-label {
    font-size: 13px; color: #aaa; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.poll-options-list {
    display: flex; flex-direction: column; gap: 8px;
}
.poll-option {
    position: relative; border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.15); cursor: pointer; transition: border-color .15s;
}
.poll-option:hover { border-color: #1673ff; }
.poll-option.poll-option--voted { border-color: #1673ff; background: rgba(22,115,255,.1); }
.poll-option-bar {
    position: absolute; top: 0; left: 0; height: 100%;
    background: rgba(22,115,255,.15); border-radius: 7px; transition: width .4s ease;
    z-index: 0;
}
.poll-option-inner {
    position: relative; z-index: 1; display: flex; align-items: center;
    justify-content: space-between; padding: 10px 12px; gap: 8px;
}
.poll-option-text {
    font-size: 14px; color: #fff; flex: 1; display: flex; align-items: center; gap: 8px;
}
.poll-option-text input[type="radio"],
.poll-option-text input[type="checkbox"] {
    margin: 0; flex-shrink: 0;
}
.poll-option-pct {
    font-size: 13px; color: #ccc; font-weight: 600; white-space: nowrap;
}
.poll-option-count {
    font-size: 12px; color: #999;
}
.poll-status {
    font-size: 12px; color: #aaa; margin-top: 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.poll-vote-btn {
    background: #1673ff; color: #fff; border: none; border-radius: 6px;
    padding: 6px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background .15s;
}
.poll-vote-btn:hover { background: #1259cc; }
.poll-vote-btn:disabled { background: #444; color: #888; cursor: not-allowed; }
.poll-option-avatars {
    display: flex; flex-shrink: 0; margin-left: 4px;
}
.poll-option-avatar {
    display: inline-block; width: 20px; height: 20px; border-radius: 50%;
    overflow: hidden; margin-left: -6px; border: 2px solid #0d1117;
}
.poll-option-avatar:first-child { margin-left: 0; }
.poll-option-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.poll-avatar-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: #1673ff; color: #fff;
    font-size: 10px; font-weight: 600;
}
.poll-avatar-placeholder--md {
    width: 28px; height: 28px; border-radius: 50%; font-size: 12px;
}
.poll-results-toggle {
    color: #5a9fff; font-size: 12px; text-decoration: none; cursor: pointer;
}
.poll-results-toggle:hover { text-decoration: underline; }
.poll-results-detail {
    border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding-top: 8px;
}
.poll-result-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0; gap: 8px;
}
.poll-result-row + .poll-result-row {
    border-top: 1px solid rgba(255,255,255,.05);
}
.poll-result-user {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: #fff; font-size: 13px;
}
.poll-result-user img {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.poll-result-name { font-weight: 500; }
.poll-result-choice {
    font-size: 12px; color: #888; white-space: nowrap;
}
.poll-voters-list {
    margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px;
    padding: 6px 12px;
}
.poll-voter-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.1); border-radius: 12px; padding: 2px 8px 2px 2px;
    font-size: 12px; color: #ddd; text-decoration: none;
}
.poll-voter-chip img {
    width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
}
.poll-edit-warning {
    background: rgba(255,152,0,.1); border: 1px solid rgba(255,152,0,.3);
    border-radius: 6px; padding: 8px 12px; margin-bottom: 8px;
    font-size: 12px; color: #ffb74d;
}
.poll-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(22,115,255,.2); color: #5a9fff; border-radius: 4px;
    padding: 2px 6px; font-size: 11px; font-weight: 600;
}

/* Poll Composer */
.poll-composer {
    border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 12px;
    margin-top: 8px; background: rgba(255,255,255,.05);
}
.poll-composer-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.poll-composer-header span {
    font-size: 14px; font-weight: 600; color: #fff;
}
.poll-composer-remove {
    background: none; border: none; color: #999; cursor: pointer;
    font-size: 13px; padding: 2px 6px;
}
.poll-composer-remove:hover { color: #ff5252; }
.poll-composer-options {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px;
}
.poll-composer-option-row {
    display: flex; align-items: center; gap: 6px;
}
.poll-composer-option-row input {
    flex: 1; padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
    font-size: 14px; outline: none; background: rgba(255,255,255,.05); color: #fff;
}
.poll-composer-option-row input::placeholder { color: #777; }
.poll-composer-option-row input:focus { border-color: #1673ff; }
.poll-composer-option-remove {
    background: none; border: none; color: #999; cursor: pointer;
    font-size: 18px; line-height: 1; padding: 0 4px;
}
.poll-composer-option-remove:hover { color: #ff5252; }
.poll-composer-add-btn {
    background: none; border: 1px dashed rgba(255,255,255,.2); border-radius: 6px;
    padding: 6px 12px; font-size: 13px; color: #999; cursor: pointer;
    width: 100%; margin-bottom: 8px;
}
.poll-composer-add-btn:hover { border-color: #1673ff; color: #1673ff; }
.poll-composer-settings {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    font-size: 13px; color: #bbb;
}
.poll-composer-settings label {
    display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.poll-composer-settings input[type="datetime-local"] {
    padding: 4px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
    font-size: 13px; background: rgba(255,255,255,.05); color: #fff;
}

/* ── Articles ── */
.article-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #1673ff;
    border: 1px solid #1673ff;
    border-radius: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Scheduled posts ── */
.scheduled-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 6px;
    margin-bottom: 10px;
}
.scheduled-badge svg { flex-shrink: 0; stroke: #fbbf24; }
.post-card.scheduled { border-left: 3px solid #fbbf24; }
.schedule-section { margin-top: 16px; }
.schedule-section .form-control { max-width: 280px; margin-top: 6px; color-scheme: dark; }
.schedule-hint { font-size: 12px; color: #888; margin-top: 4px; }
.scheduled-posts-section { margin-bottom: 28px; }
.scheduled-posts-heading {
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article content — rich-text rendered HTML */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    word-break: break-word;
    padding: 8px 0;
    text-align: left !important;
}
.article-content * {
    text-align: left !important;
}
.article-content h2 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    margin: 24px 0 12px;
}
.article-content h3 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin: 20px 0 10px;
}
.article-content p {
    margin: 0 0 16px;
}
.article-content blockquote {
    border-left: 3px solid #1673ff;
    padding: 8px 16px;
    margin: 16px 0;
    color: #b0b0b0;
    background: rgba(255,255,255,0.03);
    border-radius: 0 8px 8px 0;
}
.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 12px 0;
}
.article-content li {
    margin-bottom: 6px;
}
.article-content pre {
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    margin: 16px 0;
}
.article-content code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.article-content pre code {
    background: none;
    padding: 0;
}
.article-content pre.ql-syntax {
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    white-space: pre;
    margin: 16px 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}
.article-content a {
    color: #1673ff;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}
.article-content strong,
.article-content b {
    color: #fff;
}

/* Article cover images */
.article-cover-link {
    display: block;
    margin: 8px 0;
}
.article-cover {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
}
.article-cover-detail {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Article form — cover upload */
.article-cover-upload {
    margin: 12px 0;
}
.article-cover-preview {
    margin-bottom: 8px;
    position: relative;
}
.article-cover-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
}
.article-cover-delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13px;
    color: #e74c3c;
    cursor: pointer;
}
.article-cover-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-cover-btn input[type="file"] {
    display: none;
}

.article-toolbar-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

/* Article editor wrapper */
.article-editor-wrap {
    margin: 16px 0;
}
.article-editor-wrap .ql-toolbar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px 12px 0 0;
}
.article-editor-wrap .ql-container {
    border: 1px solid rgba(255,255,255,0.15);
    border-top: none;
    border-radius: 0 0 12px 12px;
    min-height: 300px;
    font-size: 16px;
    color: #e0e0e0;
}
.article-editor-wrap .ql-editor {
    min-height: 300px;
    padding: 16px;
    line-height: 1.7;
}
.article-editor-wrap .ql-editor.ql-blank::before {
    color: #999;
    font-style: normal;
}
/* Quill dark theme overrides */
.article-editor-wrap .ql-snow .ql-stroke {
    stroke: #999;
}
.article-editor-wrap .ql-snow .ql-fill {
    fill: #999;
}
.article-editor-wrap .ql-snow .ql-picker-label {
    color: #999;
}
.article-editor-wrap .ql-snow .ql-picker-options {
    background: #1a1d2e;
    border-color: rgba(255,255,255,0.15);
}
.article-editor-wrap .ql-snow .ql-picker-item {
    color: #ccc;
}
.article-editor-wrap .ql-snow .ql-active .ql-stroke {
    stroke: #1673ff;
}
.article-editor-wrap .ql-snow .ql-active .ql-fill {
    fill: #1673ff;
}
.article-editor-wrap .ql-snow .ql-active {
    color: #1673ff;
}

.quill-fallback-warning {
    margin-bottom: 8px;
}

/* Floating toolbar (appears on text selection) */
.ql-floating-toolbar {
    display: none;
    position: absolute;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: var(--z-modal);
    white-space: nowrap;
}
.ql-floating-toolbar.open { display: flex; }
.ql-floating-toolbar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1c1c1c;
}
.ql-floating-toolbar button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.12s, color 0.12s;
}
.ql-floating-toolbar button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ql-floating-toolbar button.active { color: #1673ff; }
.ql-floating-toolbar .ft-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.12);
    margin: 0 4px;
}

/* Read more link */
.read-more-link {
    display: inline-block;
    color: #1673ff;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 8px;
    text-decoration: none;
}
.read-more-link:hover {
    text-decoration: underline;
}

/* Post content truncate in feed */
/* post-content-truncated removed — server-side truncatechars used instead */

/* Write dropdown */
.write-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.write-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #1a1d2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 160px;
    z-index: var(--z-sticky);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.write-dropdown.open {
    display: block;
}
.write-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}
.write-dropdown a:hover {
    background: rgba(255,255,255,0.06);
}
.write-dropdown a svg {
    flex-shrink: 0;
}
/* Bottom nav dropdown — opens upward, centered */
.write-dropdown-wrap--bottom {
    display: flex;
    align-items: center;
}
.write-dropdown-wrap--bottom .write-dropdown {
    bottom: 100%;
    top: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    margin-top: 0;
}

/* ── Jobs: chip selector ── */
.job-field-group { padding: 10px 0; }
.job-field-group:first-child { padding-top: 0; }
.job-field-group:last-child { padding-bottom: 0; }
.job-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.job-chip { cursor: pointer; display: inline-flex; }
.job-chip input { display: none; }
.job-chip-inner {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #999; font-size: 14px;
    transition: all 0.15s;
}
.job-chip:hover .job-chip-inner { border-color: rgba(255,255,255,0.22); color: #ccc; }
.job-chip input:checked + .job-chip-inner {
    background: rgba(22,115,255,0.15);
    border-color: rgba(22,115,255,0.5);
    color: #4d9eff;
}

/* ── Jobs: salary row ── */
.job-salary-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px; flex-wrap: wrap;
}
.job-salary-input {
    width: 120px; padding: 8px 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #e0e0e0; font-size: 14px;
}
.job-salary-input:focus {
    outline: none; border-color: rgba(22,115,255,0.5);
}
.job-salary-sep { color: #666; }
.job-currency-select {
    padding: 8px 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #e0e0e0; font-size: 14px;
}

/* ── Jobs: recipients picker ── */
.job-recipients-list { margin-top: 8px; }
.job-recipients-list .empty-state {
    border: none;
    padding: 8px 0;
    text-align: left;
    font-size: 14px;
    color: #888;
}
.job-recipient-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; cursor: pointer;
}
.job-recipient-item input { accent-color: #1673ff; width: 18px; height: 18px; }
.job-recipient-inner { display: flex; align-items: center; gap: 10px; }
.job-recipient-ava {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #888; overflow: hidden;
}
.job-recipient-ava img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.job-recipient-name { font-size: 14px; color: #e0e0e0; }

/* ── Jobs: detail card ── */
.job-detail-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 32px;
    margin-bottom: 24px;
}
.job-detail-header { margin-bottom: 20px; }
.job-detail-title { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.job-detail-company {
    display: inline-flex; align-items: center; gap: 8px;
    color: #4d9eff; text-decoration: none; font-size: 14px;
    margin-bottom: 8px;
}
.job-detail-company:hover { text-decoration: underline; }
.job-detail-company-logo {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #888; overflow: hidden;
}
.job-detail-company-logo img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.job-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.job-detail-salary {
    font-size: 22px; font-weight: 700; color: #4d9eff; margin-bottom: 16px;
}
.job-detail-salary-note {
    font-size: 13px; font-weight: 400; color: #888; margin-left: 8px;
}
.job-detail-info { margin-bottom: 20px; }
.job-detail-info-row {
    display: flex; align-items: center; gap: 8px;
    color: #aaa; font-size: 14px; padding: 4px 0;
}
.job-detail-description {
    color: #ccc; font-size: 15px; line-height: 1.6;
    margin-bottom: 24px; white-space: pre-wrap;
}
.job-detail-description p { margin: 0 0 12px; }
.job-detail-section-title {
    font-size: 14px; font-weight: 600; color: #888;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.job-detail-meta { color: #666; font-size: 13px; margin-top: 20px; }
.job-detail-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.job-detail-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.job-detail-header-top {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.job-detail-cta { margin-bottom: 24px; }
.job-detail-conditions { margin-bottom: 24px; }
.job-detail-section { margin-bottom: 20px; }
.job-detail-lang-text { font-size: 14px; color: #ccc; }

/* ── Jobs: list cards ── */
.job-list { display: flex; flex-direction: column; gap: 8px; }
.job-list-card {
    display: block; padding: 16px 20px; border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none; transition: border-color 0.15s;
}
.job-list-card:hover { border-color: rgba(255,255,255,0.15); }
.job-list-card.past { opacity: 0.6; }
.job-list-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 6px;
}
.job-list-card-title { font-size: 16px; font-weight: 600; color: #fff; margin: 0; }
.job-list-card-salary { font-size: 14px; font-weight: 600; color: #4d9eff; white-space: nowrap; }
.job-list-card-company {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #888; margin-bottom: 6px;
}
.job-list-card-logo {
    width: 20px; height: 20px; border-radius: 6px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; color: #888; overflow: hidden;
}
.job-list-card-logo img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.job-list-card-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: #888;
}

/* ── Jobs: apply page ── */
.job-apply-subtitle { color: #888; font-size: 14px; margin: -8px 0 24px; }
.job-apply-hint { color: #666; font-size: 13px; margin: 4px 0 12px; }
.job-experience-preview { display: flex; flex-direction: column; gap: 12px; }
.job-experience-item {
    padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.job-experience-position { font-size: 15px; font-weight: 600; color: #e0e0e0; }
.job-experience-company { font-size: 13px; color: #4d9eff; margin-top: 2px; }
.job-experience-dates { font-size: 12px; color: #888; margin-top: 4px; }
.job-experience-desc { font-size: 13px; color: #aaa; margin-top: 6px; }

/* ── Jobs: applications list ── */
.job-applications-list { display: flex; flex-direction: column; gap: 16px; }
.job-application-card {
    padding: 20px; border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.job-application-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.job-application-date { font-size: 12px; color: #666; }
.job-application-letter { font-size: 14px; color: #ccc; line-height: 1.5; }
.job-application-letter p { margin: 0 0 8px; }

/* ── Jobs: form sections ── */
.job-form-section { margin-bottom: 8px; }
.job-field-hint { font-size: 12px; color: #666; margin-top: 4px; padding: 0 16px 4px; }

/* ── Jobs: utility classes ── */
.job-inline-form { display: inline; }
.job-btn-danger { color: #ff6b6b; }
.job-btn-disabled { pointer-events: none; opacity: .6; }

/* ── Jobs: suggest dropdown ── */
.job-suggest-wrap { position: relative; flex: 1; }
.job-suggest-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #1a1d2e; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; margin-top: 4px; z-index: 10;
    max-height: 200px; overflow-y: auto;
}
.job-suggest-item {
    padding: 8px 14px; font-size: 14px; color: #ccc; cursor: pointer;
}
.job-suggest-item:hover { background: rgba(22,115,255,0.12); color: #4d9eff; }

/* ── Jobs: responsive ── */
@media (max-width: 600px) {
    .job-detail-card { padding: 20px 16px; }
    .job-detail-title { font-size: 20px; }
    .job-detail-salary { font-size: 18px; }
    .job-salary-input { width: 90px; }
    .job-detail-actions { flex-direction: column; align-items: stretch; }
    .job-detail-admin-actions { flex-direction: column; }
    .job-list-card-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
