@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    font-feature-settings: "ss01", "cv11";
    background: var(--bg-app);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -0.005em;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---- App shell (Linkssi dashboard pattern) ---- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    color: var(--sidebar-fg);
    padding: 22px 18px;
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 6px;
    border-right: 1px solid rgba(255,255,255,0.04);
    overflow-y: auto;
}
.sidebar__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 22px; color: #fff; font-weight: 700; font-size: 18px; }
.sidebar__brand-logo { height: 28px; width: auto; }
.sidebar__brand-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-accent); background: rgba(253,110,93,0.12); padding: 2px 7px; border-radius: var(--r-pill); }
.sidebar__section { margin-top: 18px; padding: 0 10px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sidebar-fg-muted); font-weight: 600; }
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: var(--r-md); color: var(--sidebar-fg); font-weight: 500; font-size: 13.5px; position: relative;
    transition: background var(--t-fast), color var(--t-fast);
}
.sidebar__link svg { width: 18px; height: 18px; opacity: 0.75; flex-shrink: 0; }
.sidebar__link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sidebar__link.is-active { background: var(--sidebar-active-bg); color: var(--sidebar-active-fg); font-weight: 600; }
.sidebar__link.is-active::before { content: ""; position: absolute; left: -18px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--brand-accent); }
.sidebar__link.is-active svg { opacity: 1; color: var(--brand-accent); }
.sidebar__close { display: none; width: 36px; height: 36px; border-radius: var(--r-md); background: rgba(255,255,255,0.05); align-items: center; justify-content: center; }
.sidebar__backdrop { display: none; position: fixed; inset: 0; background: rgba(6,21,20,0.55); backdrop-filter: blur(2px); z-index: 50; border: none; padding: 0; cursor: pointer; opacity: 0; transition: opacity var(--t-med); }
.sidebar__backdrop[hidden] { display: none !important; }

.main { min-width: 0; display: flex; flex-direction: column; background: var(--bg-canvas); }
.topbar {
    height: var(--topbar-h); background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px;
    padding: 0 28px; position: sticky; top: 0; z-index: 30;
}
.topbar__menu { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.topbar__crumb { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.topbar__crumb strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__spacer { flex: 1; }
.topbar__pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.topbar__pill svg { width: 14px; height: 14px; }

.sn-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); gap: 24px; padding: 24px 28px 100px; max-width: 1200px; margin: 0 auto; width: 100%; }
.sn-layout--single { grid-template-columns: 1fr; max-width: none; margin: 0; }
.sn-main { min-width: 0; max-width: var(--feed-max); width: 100%; }
.sn-main--wide { max-width: none; }
.sn-rail { display: flex; flex-direction: column; gap: 16px; }

/* ---- Components ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 13.5px; border: 1px solid transparent; transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); white-space: nowrap; }
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--brand-accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--brand-accent-600); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--dark { background: var(--brand-primary); color: #fff; }
.btn--sm { padding: 6px 10px; font-size: 12.5px; }
.btn--lg { padding: 12px 20px; font-size: 15px; min-height: 48px; }
.btn--block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.card__body { padding: 18px 20px; }
.card__header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); }
.badge--verified { background: var(--info-bg); color: var(--info); }
.badge--host { background: var(--warning-bg); color: var(--warning); }
.badge--pro { background: var(--success-bg); color: var(--success); }

.avatar { width: 40px; height: 40px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--brand-primary), #075856); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.avatar--xl { width: 96px; height: 96px; font-size: 28px; box-shadow: var(--shadow-md), 0 0 0 4px var(--surface); }
.avatar--profile { width: 152px; height: 152px; font-size: 42px; box-shadow: var(--shadow-md), 0 0 0 4px var(--surface); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.input, .textarea, .select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
    background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--shadow-ring); }
.textarea { min-height: 100px; resize: vertical; }

.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.alert--success { background: var(--success-bg); color: var(--success); border-color: rgba(21,128,61,0.2); }
.alert--error { background: var(--danger-bg); color: var(--danger); border-color: rgba(185,28,28,0.2); }

/* ---- Social: composer ---- */
.sn-composer { margin-bottom: 16px; }
.sn-composer__trigger {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer;
    transition: background var(--t-fast);
}
.sn-composer__trigger:hover { background: var(--surface-2); }
.sn-composer__placeholder { flex: 1; color: var(--text-subtle); font-size: 14px; }
.sn-composer__form { display: none; padding: 0 18px 18px; border-top: 1px solid var(--border); }
.sn-composer.is-open .sn-composer__form { display: block; padding-top: 16px; }
.sn-composer.is-open .sn-composer__trigger { border-bottom: none; }
.sn-type-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sn-type-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
.sn-type-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sn-type-pill:has(input:checked) { border-color: var(--brand-primary); background: rgba(2,63,62,0.06); color: var(--brand-primary); }
.sn-type-pill--win:has(input:checked) { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.sn-type-pill--question:has(input:checked) { border-color: var(--info); background: var(--info-bg); color: var(--info); }
.sn-type-pill--opportunity:has(input:checked) { border-color: var(--warning); background: var(--warning-bg); color: var(--warning); }

/* ---- Social: posts ---- */
.sn-feed { display: flex; flex-direction: column; gap: 12px; }
.sn-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.sn-post__head { display: flex; gap: 12px; padding: 16px 18px 0; align-items: flex-start; }
.sn-post__meta { flex: 1; min-width: 0; }
.sn-post__name { font-weight: 600; font-size: 14px; }
.sn-post__name a:hover { color: var(--brand-primary); }
.sn-post__sub { font-size: 12px; color: var(--text-subtle); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sn-post__body { padding: 12px 18px 16px; }
.sn-post__title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.sn-post__text { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.sn-post__type { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: var(--r-pill); }
.sn-post__type--win { background: var(--success-bg); color: var(--success); }
.sn-post__type--question { background: var(--info-bg); color: var(--info); }
.sn-post__type--opportunity { background: var(--warning-bg); color: var(--warning); }
.sn-post__type--event { background: var(--brand-accent-50); color: var(--brand-accent-600); }
.sn-post__type--resource { background: var(--surface-2); color: var(--text-muted); }
.sn-post__foot { display: flex; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sn-post__action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--text-muted); border: none; background: transparent; cursor: pointer; }
.sn-post__action:hover { background: var(--surface); color: var(--text); }
.sn-post__action.is-active { color: var(--brand-accent); }
.sn-post__action--danger:hover { color: var(--danger); }
.sn-post__action-form { display: inline; margin: 0; }
.sn-post__action svg { width: 16px; height: 16px; }
.sn-post__comments { padding: 12px 18px 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sn-comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sn-comment:last-of-type { border-bottom: none; }
.sn-comment p { font-size: 13px; margin: 4px 0 0; }
.sn-comment__time { font-size: 11px; color: var(--text-subtle); font-weight: 400; margin-left: 6px; }
.sn-comment-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sn-comment-form .input { flex: 1; min-width: 160px; }
.sn-post__report { position: relative; display: inline; }
.sn-post__report-form { padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: 6px; min-width: 200px; }
.sn-member-card--pro { border-color: rgba(2,63,62,0.25); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(2,63,62,0.08); }
.sn-member-card--pro::before { content: 'Pro'; position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--success); background: var(--success-bg); padding: 3px 8px; border-radius: var(--r-pill); }
.sn-member-card { position: relative; }
.topbar__notif { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); color: var(--text-muted); }
.topbar__notif:hover { background: var(--surface-2); color: var(--text); }
.topbar__notif-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--brand-accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.sn-notifications { display: flex; flex-direction: column; gap: 8px; }
.sn-notification { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: inherit; }
.sn-notification.is-unread { border-color: var(--brand-primary); background: rgba(2,63,62,0.04); }
.sn-notification__title { font-weight: 600; font-size: 14px; }
.sn-notification__body { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.sn-notification__time { font-size: 11px; color: var(--text-subtle); margin-top: 6px; }

/* ---- Social: member grid ---- */
.sn-member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sn-member-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-xs); transition: transform var(--t-med), box-shadow var(--t-med); }
.sn-member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sn-member-card__top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.sn-member-card__name { font-weight: 600; font-size: 15px; }
.sn-member-card__headline { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }
.sn-member-card__biz { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.sn-member-card__looking { font-size: 12.5px; color: var(--text-subtle); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---- Social: profile (LinkedIn-style) ---- */
.sn-layout--profile {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 24px 32px 100px;
    gap: 0;
}
.sn-main--profile { max-width: none; width: 100%; }
.sn-profile-page { width: 100%; max-width: none; }
.sn-profile-hero.card {
    overflow: hidden;
    margin-bottom: 0;
    border-radius: var(--r-md) var(--r-md) 0 0;
    padding: 0;
    border-bottom: none;
}
.sn-profile-cover {
    height: 220px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, var(--brand-primary) 0%, #075856 55%, #0a4846 100%);
}
.sn-profile-hero__sheet {
    position: relative;
    background: var(--surface);
    padding: 0 32px;
}
.sn-profile-hero__orgs {
    position: absolute;
    top: 16px;
    right: 32px;
    z-index: 2;
    max-width: min(320px, 40%);
}
.sn-profile-hero__identity {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: -76px;
    padding: 0 0 4px;
    padding-right: min(340px, 48%);
    min-width: 0;
}
.sn-profile-avatar-wrap { flex-shrink: 0; }
.sn-profile-hero__text { padding-bottom: 4px; min-width: 0; flex: 1; }
.sn-profile-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}
.sn-profile-headline {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
    font-weight: 400;
}
.sn-profile-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}
.sn-profile-location svg { opacity: 0.7; flex-shrink: 0; }
.sn-profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sn-profile-org {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--r-sm);
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-sm);
}
.sn-profile-org:hover .sn-profile-org__text strong { color: var(--brand-primary); }
.sn-page-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}
.sn-page-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sn-page-avatar--fallback {
    font-weight: 700;
    color: var(--brand-primary);
    background: var(--brand-accent-50);
}
.sn-page-avatar--org { width: 48px; height: 48px; }
.sn-page-avatar--sm { width: 40px; height: 40px; font-size: 13px; }
.sn-page-avatar--md { width: 48px; height: 48px; font-size: 16px; }
.sn-page-avatar--lg { width: 56px; height: 56px; font-size: 18px; border-radius: var(--r-md); }
.sn-profile-org__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sn-profile-org__text strong {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sn-profile-org__text span {
    font-size: 12px;
    color: var(--text-muted);
}
.sn-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 0;
}
.sn-profile-tabs {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    margin-left: -32px;
    margin-right: -32px;
    padding: 0 32px;
}
.sn-profile-tabs__btn {
    position: relative;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: none;
    cursor: pointer;
    transition: color var(--t-fast);
}
.sn-profile-tabs__btn:hover { color: var(--text); }
.sn-profile-tabs__btn.is-active {
    color: var(--brand-primary);
}
.sn-profile-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px 2px 0 0;
}
.sn-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 24px;
    align-items: start;
    padding-top: 16px;
    width: 100%;
}
.sn-profile-panel[hidden] { display: none !important; }
.sn-profile-exp {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}
.sn-profile-exp:first-child { border-top: none; }
.sn-page-avatar--exp {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    font-size: 16px;
}
.sn-profile-exp__content { min-width: 0; flex: 1; }
.sn-profile-exp__content h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
.sn-profile-exp__content h3 a {
    color: inherit;
    text-decoration: none;
}
.sn-profile-exp__content h3 a:hover { color: var(--brand-primary); text-decoration: underline; }
.sn-profile-exp__meta {
    margin: 0 0 2px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}
.sn-profile-exp__url {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-muted);
}
.sn-profile-exp__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}
.sn-profile-tabs__count {
    display: inline-block;
    min-width: 18px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.sn-profile-tabs__btn.is-active .sn-profile-tabs__count {
    background: rgba(2, 63, 62, 0.08);
    color: var(--brand-primary);
}
.sn-profile-block.card { margin-bottom: 16px; border-radius: var(--r-md); }
.sn-profile-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px 0;
}
.sn-profile-block__head h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.sn-profile-block__action {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
}
.sn-profile-block__action:hover { color: var(--brand-accent); }
.sn-profile-block__meta {
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 500;
}
.sn-profile-block__body { padding: 16px 24px 24px; }
.sn-profile-block__body--flush { padding-top: 8px; padding-bottom: 8px; }
.sn-profile-about__title {
    font-weight: 600;
    margin-bottom: 8px;
}
.sn-profile-about__text,
.sn-profile-block__body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}
.sn-profile-empty {
    color: var(--text-subtle);
    font-size: 14px;
}
.sn-profile-entry {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.sn-profile-entry--page {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.sn-profile-entry--page:first-child { border-top: none; }
.sn-profile-entry--page h3 a {
    color: inherit;
    text-decoration: none;
}
.sn-profile-entry--page h3 a:hover { color: var(--brand-primary); }
.sn-profile-entry__logo {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--brand-primary), #075856);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.sn-profile-entry__content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}
.sn-profile-entry__sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.sn-profile-entry__content p {
    margin: 0;
}
.sn-profile-activity {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.sn-profile-activity:first-child { border-top: none; }
.sn-profile-activity__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.sn-profile-activity__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-subtle);
}
.sn-profile-activity__content h3 {
    margin: 6px 0 4px;
    font-size: 15px;
    font-weight: 600;
}
.sn-profile-activity__content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.sn-profile-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--topbar-h) + 16px);
}
.sn-profile-aside-card.card { border-radius: var(--r-md); }
.sn-profile-aside-card__head {
    padding: 12px 16px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.sn-profile-aside-card__body { padding: 12px 16px 16px; }
.sn-profile-aside-card__body--list { padding-top: 4px; padding-bottom: 8px; }
.sn-profile-aside-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 4px;
}
.sn-profile-aside-link:hover { color: var(--brand-accent); }
.sn-profile-aside-strong {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.sn-profile-aside-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}
.sn-profile-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.sn-profile-person:last-child { border-bottom: none; }
.sn-profile-person:hover strong { color: var(--brand-primary); }
.sn-profile-person__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sn-profile-person__text strong {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sn-profile-person__text span {
    font-size: 12px;
    color: var(--text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.public-section--profile {
    max-width: none;
    width: 100%;
    padding: 24px 32px 48px;
    background: var(--bg-app);
}

.sn-profile-manage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sn-profile-manage-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.sn-profile-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.sn-profile-manage-item__text {
    flex: 1;
    min-width: 0;
}
.sn-profile-manage-item__text strong {
    display: block;
    font-size: 14px;
}
.sn-profile-manage-item__text span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.sn-profile-manage-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.sn-profile-manage-item__inline { margin: 0; }

.commune-modal[hidden] { display: none !important; }
.commune-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}
.commune-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 21, 20, 0.55);
    backdrop-filter: blur(2px);
}
.commune-modal__panel {
    position: relative;
    width: min(100%, 480px);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}
.commune-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.commune-modal__head h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.commune-modal__close {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.commune-modal__lead {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.commune-modal__options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.commune-modal__options li form { margin: 0; }
.commune-modal__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.commune-modal__option:hover {
    border-color: var(--brand-primary);
    background: var(--surface-2);
}
.commune-modal__option svg:last-child {
    margin-left: auto;
    color: var(--brand-primary);
    flex-shrink: 0;
}
.commune-modal__option-text {
    flex: 1;
    min-width: 0;
}
.commune-modal__option-text strong {
    display: block;
    font-size: 14px;
}
.commune-modal__option-text span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
body.is-modal-open { overflow: hidden; }

/* ---- Social: events ---- */
.sn-event-list { display: flex; flex-direction: column; gap: 12px; }
.sn-event-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: box-shadow var(--t-fast); }
.sn-event-card:hover { box-shadow: var(--shadow-sm); }
.sn-event-date { text-align: center; padding: 8px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.sn-event-date__mon { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--brand-accent); letter-spacing: 0.06em; }
.sn-event-date__day { font-size: 22px; font-weight: 700; line-height: 1.1; }
.sn-event-detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* ---- Rail widgets ---- */
.sn-rail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.sn-rail-card__head { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.sn-rail-card__body { padding: 12px 16px; }
.sn-rail-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sn-rail-item:last-child { border-bottom: none; }
.sn-rail-item__text { flex: 1; min-width: 0; font-size: 13px; }
.sn-rail-item__sub { font-size: 11.5px; color: var(--text-subtle); margin-top: 2px; }

.sn-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.sn-empty h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

/* ---- Public landing ---- */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.public-nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.public-nav__brand img { height: 28px; }
.public-nav__links { display: flex; gap: 12px; align-items: center; }
.public-hero { padding: 64px 28px; background: linear-gradient(160deg, var(--brand-primary) 0%, #035a59 45%, var(--sidebar-bg) 100%); color: #fff; }
.public-hero__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.public-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.public-hero p { font-size: 1.05rem; opacity: 0.92; max-width: 52ch; margin: 0 auto 28px; }
.public-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.public-strip { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.public-section { padding: 48px 28px; max-width: 1100px; margin: 0 auto; width: 100%; }
.public-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; }
.public-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.public-chapter { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: transform var(--t-med), box-shadow var(--t-med); }
.public-chapter:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.public-footer { text-align: center; padding: 32px; color: var(--text-subtle); font-size: 13px; margin-top: auto; }

/* ---- Landing page ---- */
.landing-page {
    background:
        radial-gradient(55% 70% at 88% 12%, rgba(253, 110, 93, 0.22) 0%, transparent 50%),
        radial-gradient(45% 55% at 8% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        linear-gradient(165deg, #024846 0%, var(--brand-primary) 38%, #032f2e 72%, var(--sidebar-bg) 100%);
    color: #fff;
}
.landing-page .public-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
@media (min-width: 961px) {
    .landing-page .public-shell {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
}
.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 400px);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    flex: 1;
    min-height: 0;
    width: min(94vw, 1400px);
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 40px) clamp(8px, 2vw, 16px);
}
.landing-brand { position: relative; z-index: 1; }
.landing-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 20px;
    text-decoration: none;
}
.landing-brand__logo img {
    height: 34px;
    width: auto;
    filter: none;
}
.landing-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}
.landing-headline {
    font-size: clamp(2.4rem, 5.2vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.landing-headline em {
    font-style: normal;
    color: var(--brand-accent);
}
.landing-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 42ch;
    margin: 0 0 14px;
}
.landing-trust {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.landing-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.landing-trust svg { color: var(--brand-accent); flex-shrink: 0; }
.landing-collage {
    position: relative;
    width: min(100%, 440px);
    height: 210px;
    margin: 0;
}
.landing-collage__glow {
    position: absolute;
    inset: 10% 5% 5% 10%;
    background: radial-gradient(circle, rgba(253, 110, 93, 0.35) 0%, transparent 68%);
    filter: blur(24px);
    pointer-events: none;
}
.landing-collage__card {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--text);
}
.landing-collage__card--hero {
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: min(100%, 280px);
    padding: 14px 14px 14px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    z-index: 4;
}
.landing-collage__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--r-pill);
    background: linear-gradient(145deg, var(--brand-primary), #0a6b68);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.landing-collage__card-body strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}
.landing-collage__card-body span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}
.landing-collage__pill {
    padding: 4px 8px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.landing-collage__pill--success {
    background: var(--success-bg);
    color: var(--success);
}
.landing-collage__card--mini {
    left: 0;
    top: 8%;
    width: 210px;
    padding: 12px 14px;
    z-index: 3;
    transform: rotate(-4deg);
}
.landing-collage__mini-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-accent);
}
.landing-collage__card--mini p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
}
.landing-collage__card--event {
    right: 0;
    bottom: 6%;
    width: 220px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 3;
    transform: rotate(3deg);
}
.landing-collage__date {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--brand-accent-50);
    border: 1px solid rgba(253, 110, 93, 0.25);
    display: grid;
    place-content: center;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}
.landing-collage__date span {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-accent);
}
.landing-collage__date small {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}
.landing-collage__card--event strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.landing-collage__card--event span {
    font-size: 11px;
    color: var(--text-muted);
}
.landing-collage__orbit {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 2;
}
.landing-collage__orbit--share { right: 12%; top: 14%; color: #ffb4a8; }
.landing-collage__orbit--star { left: 18%; bottom: 10%; }
.landing-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 72px;
}
.landing-panel__card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--r-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 22px 20px 18px;
}
.landing-panel__brand-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.landing-panel__brand-mark img {
    height: 28px;
    width: auto;
    filter: invert(1) hue-rotate(180deg) brightness(0.85);
    opacity: 0.9;
}
.landing-panel__title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--text);
}
.landing-panel__sub {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}
.landing-form { display: grid; gap: 10px; margin-bottom: 10px; }
.landing-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 15px;
    background: var(--surface-2);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.landing-input::placeholder { color: var(--text-subtle); }
.landing-input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-ring);
}
.landing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.landing-btn:active { transform: scale(0.985); }
.landing-btn--primary {
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(253, 110, 93, 0.28);
}
.landing-btn--primary:hover {
    background: var(--brand-accent-600);
    box-shadow: 0 10px 24px rgba(253, 110, 93, 0.34);
}
.landing-btn--linkssi {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(2, 63, 62, 0.2);
}
.landing-btn--linkssi:hover { background: var(--brand-primary-600); }
.landing-btn--outline {
    background: var(--surface);
    color: var(--brand-primary);
    border: 1.5px solid var(--border-strong);
    font-size: 15px;
    font-weight: 700;
}
.landing-btn--outline:hover {
    background: var(--surface-2);
    border-color: var(--brand-primary);
}
.landing-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 10px;
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 600;
}
.landing-divider::before,
.landing-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.landing-divider span { white-space: nowrap; }
.landing-forgot {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 2px 0 14px;
}
.landing-forgot:hover { color: var(--brand-accent); }
.landing-panel__rule { height: 1px; background: var(--border); margin-bottom: 12px; }
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px 14px;
    flex-shrink: 0;
    text-align: center;
    margin-top: auto;
}
.landing-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 13px;
}
.landing-footer__links a {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--t-fast);
}
.landing-footer__links a:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
    .landing-collage__card--hero { animation: landing-float 7s ease-in-out infinite; }
    .landing-collage__card--mini { animation: landing-float 8s ease-in-out infinite 0.4s; }
    .landing-collage__card--event { animation: landing-float 7.5s ease-in-out infinite 0.8s; }
}
@keyframes landing-float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 8px)); }
}
.landing-collage__card--mini {
    animation-name: landing-float-mini;
}
@keyframes landing-float-mini {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-8px); }
}
.landing-collage__card--event {
    animation-name: landing-float-event;
}
@keyframes landing-float-event {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-8px); }
}

@media (min-width: 961px) and (max-height: 780px) {
    .landing-collage { height: 160px; }
    .landing-headline { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
    .landing-brand__logo { margin-bottom: 14px; }
    .landing-trust { margin-bottom: 10px; }
}

@media (min-width: 961px) and (max-height: 680px) {
    .landing-collage { display: none; }
}

@media (max-width: 960px) {
    .landing-split {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 16px;
        padding-bottom: 8px;
    }
    .landing-brand { text-align: center; }
    .landing-headline { max-width: none; margin-inline: auto; }
    .landing-lead { margin-inline: auto; }
    .landing-trust { justify-content: center; }
    .landing-collage { margin-inline: auto; height: 220px; }
    .landing-panel__card { max-width: 440px; }
}

@media (max-width: 520px) {
    .landing-collage { height: 260px; width: 100%; }
    .landing-collage__card--mini { width: 58%; left: 0; }
    .landing-collage__card--event { width: 62%; right: 0; }
    .landing-trust li { font-size: 12px; padding: 7px 12px; }
}

/* ---- Features page ---- */
.features-page {
    background:
        radial-gradient(55% 70% at 88% 12%, rgba(253, 110, 93, 0.18) 0%, transparent 50%),
        radial-gradient(45% 55% at 8% 18%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        linear-gradient(165deg, #024846 0%, var(--brand-primary) 38%, #032f2e 72%, var(--sidebar-bg) 100%);
    color: #fff;
}
.features-page .public-shell { min-height: 100dvh; }
.feat-page { display: flex; flex-direction: column; min-height: 100dvh; }

.feat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(20px, 4vw, 40px);
    background: rgba(6, 21, 20, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}
.feat-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}
.feat-topbar__brand img { height: 28px; filter: none; }
.feat-topbar__nav { display: flex; align-items: center; gap: 10px; }
.feat-topbar__nav a:not(.btn) {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 10px;
}
.feat-topbar__nav a:not(.btn):hover { color: #fff; }

.feat-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px);
}
.feat-kicker {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-accent);
}
.feat-hero__copy h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 14px;
    max-width: 12ch;
}
.feat-hero__copy h1 em {
    font-style: normal;
    color: var(--brand-accent);
}
.feat-hero__lead {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 42ch;
    margin: 0 0 18px;
}
.feat-trust { margin-bottom: 22px !important; }
.feat-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.feat-hero__actions .landing-btn {
    width: auto;
    min-width: 160px;
    padding: 0 22px;
}
.feat-btn-ghost {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}
.feat-btn-ghost:hover { background: rgba(255, 255, 255, 0.16) !important; }

.feat-showcase {
    position: relative;
    width: min(100%, 400px);
    height: 280px;
    justify-self: end;
}
.feat-showcase__glow {
    position: absolute;
    inset: 8% 0 0 8%;
    background: radial-gradient(circle, rgba(253, 110, 93, 0.35) 0%, transparent 68%);
    filter: blur(24px);
    pointer-events: none;
}
.feat-mock {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    color: var(--text);
}
.feat-mock__tag {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
}
.feat-mock__tag--accent { color: var(--brand-accent); }
.feat-mock--dir {
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    width: min(100%, 270px);
    padding: 16px 18px;
    z-index: 3;
}
.feat-mock--dir strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}
.feat-mock__meta {
    font-size: 12px;
    color: var(--text-muted);
}
.feat-mock--feed {
    left: 0;
    top: 6%;
    width: 200px;
    padding: 14px 16px;
    transform: rotate(-3deg);
    z-index: 2;
}
.feat-mock--feed p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
}
.feat-mock--event {
    right: 0;
    bottom: 4%;
    width: 210px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    transform: rotate(2deg);
    z-index: 2;
}
.feat-mock__date {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--brand-accent-50);
    border: 1px solid rgba(253, 110, 93, 0.25);
    display: grid;
    place-content: center;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}
.feat-mock__date span {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-accent);
}
.feat-mock__date small {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}
.feat-mock--event strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.feat-mock--event span {
    font-size: 11px;
    color: var(--text-muted);
}

.feat-pillars {
    background: var(--bg-app);
    color: var(--text);
    padding: clamp(48px, 6vw, 64px) clamp(20px, 4vw, 40px);
}
.feat-pillars__inner { max-width: 1100px; margin: 0 auto; }
.feat-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}
.feat-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}
.feat-section-head p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.feat-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feat-pillar {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.feat-pillar:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feat-pillar__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--brand-accent-50);
    color: var(--brand-accent);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.feat-pillar h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}
.feat-pillar p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.feat-extras {
    padding: clamp(40px, 5vw, 56px) clamp(20px, 4vw, 40px);
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feat-extras__inner { max-width: 960px; margin: 0 auto; }
.feat-extras__title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--text-muted);
}
.feat-extras__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.feat-extras__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}
.feat-extras__list li:nth-child(odd) { border-right: 1px solid var(--border); }
.feat-extras__list li:nth-last-child(-n+2) { border-bottom: none; }
.feat-extras__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: var(--brand-accent-50);
    color: var(--brand-accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.feat-extras__list strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}
.feat-extras__list span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.feat-steps-band {
    padding: clamp(44px, 5vw, 56px) clamp(20px, 4vw, 40px);
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feat-steps-band__inner { max-width: 960px; margin: 0 auto; }
.feat-steps-band h2 {
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 32px;
}
.feat-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: none;
    list-style: none;
    margin: 0;
    padding: 0;
}
.feat-flow li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feat-flow__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    background: var(--brand-accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(253, 110, 93, 0.28);
}
.feat-flow strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.feat-flow p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.feat-cta {
    padding: clamp(44px, 5vw, 56px) clamp(20px, 4vw, 40px);
    text-align: center;
}
.feat-cta__inner { max-width: 520px; margin: 0 auto; }
.feat-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}
.feat-cta p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.5;
}
.feat-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.feat-cta__actions .landing-btn {
    width: auto;
    min-width: 180px;
    padding: 0 22px;
}
.feat-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.feat-footer .landing-footer__links a[aria-current="page"] {
    color: #fff;
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .feat-mock--dir { animation: landing-float 7s ease-in-out infinite; }
    .feat-mock--feed { animation: landing-float-mini 8s ease-in-out infinite 0.4s; }
    .feat-mock--event { animation: landing-float-event 7.5s ease-in-out infinite 0.8s; }
}

@media (max-width: 960px) {
    .feat-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .feat-hero__copy h1 { max-width: none; margin-inline: auto; }
    .feat-hero__lead { margin-inline: auto; }
    .feat-trust { justify-content: center; }
    .feat-hero__actions { justify-content: center; }
    .feat-showcase {
        margin-inline: auto;
        height: 250px;
    }
    .feat-pillars__grid { grid-template-columns: 1fr; }
    .feat-extras__list { grid-template-columns: 1fr; }
    .feat-extras__list li:nth-child(odd) { border-right: none; }
    .feat-extras__list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .feat-extras__list li:last-child { border-bottom: none; }
    .feat-flow { grid-template-columns: 1fr; gap: 20px; }
    .feat-topbar__nav a:not(.btn) { display: none; }
}

@media (max-width: 520px) {
    .feat-topbar__brand span { display: none; }
    .feat-hero__actions .landing-btn,
    .feat-cta__actions .landing-btn { width: 100%; }
}

/* ---- Mobile bottom nav ---- */
.sn-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.sn-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--r-sm); font-size: 10px; font-weight: 600; color: var(--text-muted); }
.sn-bottom-nav a svg { width: 20px; height: 20px; }
.sn-bottom-nav a.is-active { color: var(--brand-accent); background: var(--brand-accent-50); }

/* ---- Auth overrides (works with Linkssi auth.css) ---- */
.commune-auth-panel .auth-panel__eyebrow { color: var(--brand-accent); }
.commune-auth-panel .auth-brand img {
    filter: invert(1) hue-rotate(180deg);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--ink-300, var(--text-subtle));
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border, var(--border));
}
.auth-divider span { white-space: nowrap; }
.commune-auth-panel .auth-btn--primary { width: 100%; }
.commune-auth-panel .auth-field { display: grid; gap: 10px; }
.commune-auth-panel .auth-label { display: block; margin: 0; line-height: 1.35; }
.commune-auth-panel textarea.auth-input { min-height: 88px; resize: vertical; }
.commune-auth-panel select.auth-input { appearance: auto; }

/* White logo asset needs inversion on light surfaces */
.public-nav__brand img,
.sidebar__brand-logo {
    filter: none;
}
.public-nav__brand img {
    filter: invert(1) hue-rotate(180deg) brightness(0.85);
}

@media (max-width: 1024px) {
    .sn-layout { grid-template-columns: 1fr; padding: 20px 18px 100px; }
    .sn-layout--profile { padding: 20px 18px 100px; }
    .sn-layout--single { padding-inline: 18px; }
    .sn-rail { display: none; }
    .sn-profile-layout { grid-template-columns: 1fr; gap: 16px; }
    .sn-profile-hero__sheet { padding-inline: 20px; }
    .sn-profile-tabs { margin-inline: -20px; padding-inline: 20px; }
    .sn-profile-hero__orgs {
        position: static;
        max-width: none;
        margin: 12px 0 0;
        justify-content: flex-start;
    }
    .sn-profile-hero__identity { padding-right: 0; }
}

@media (max-width: 640px) {
    .sn-layout--profile { padding-inline: 12px; }
    .sn-profile-hero__sheet { padding-inline: 16px; }
    .sn-profile-tabs { margin-inline: -16px; padding-inline: 16px; }
    .sn-profile-hero__identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -64px;
    }
    .sn-profile-hero__text { width: 100%; }
    .sn-profile-location { justify-content: center; }
    .sn-profile-badges { justify-content: center; }
    .sn-profile-actions { justify-content: center; }
    .avatar--profile { width: 120px; height: 120px; font-size: 34px; }
    .sn-profile-cover { height: 160px; }
    .sn-profile-block__head,
    .sn-profile-block__body { padding-inline: 16px; }
    .sn-profile-exp { padding-inline: 16px; }
    .sn-profile-activity { padding-inline: 16px; }
}

@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; top: 0; left: 0; width: min(86vw, 320px); height: 100dvh; z-index: 60; transform: translateX(-100%); transition: transform var(--t-med); }
    body.is-sidebar-open .sidebar { transform: translateX(0); }
    body.is-sidebar-open .sidebar__backdrop { display: block; opacity: 1; }
    body.is-sidebar-open { overflow: hidden; }
    .sidebar__close { display: inline-flex; }
    .topbar { padding: 0 14px; height: 60px; }
    .topbar__menu { display: inline-flex; }
    .sn-bottom-nav { display: grid; }
    .sn-event-detail { grid-template-columns: 1fr; }
    .sn-event-card { grid-template-columns: 56px 1fr; }
    .sn-event-card .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
    .sn-member-grid { grid-template-columns: 1fr; }
    .public-hero { padding: 48px 20px; }
}
