/* ─── Форум AvenShop ─────────────────────────────────────────────── */
.forum-page { padding: 1.75rem 0 4rem; }
.forum-page .breadcrumb { flex-wrap: wrap; }
.f-narrow { max-width: 920px; }
.f-card-tight { padding: 0 !important; overflow: hidden; }
.f-h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: var(--text-primary); }
.f-h2 i { color: var(--accent-light); }
.f-h2-count { font-family: var(--font); font-size: .8rem; font-weight: 700; padding: .1rem .55rem; border-radius: 50px; background: rgba(168,85,247,.15); color: var(--accent-light); }
.f-hint { font-size: .78rem; color: var(--text-muted); }
.f-hint code { font-size: .74rem; padding: .05rem .3rem; border-radius: 4px; background: rgba(168,85,247,.12); color: var(--accent-light); }
.f-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.f-inline-form { display: inline; }
.f-tb-grow { flex: 1; }

/* Hero */
.f-hero { position: relative; overflow: hidden; padding: 2.4rem 2.4rem; margin-bottom: 2rem; }
.f-hero-bg { position: absolute; inset: 0; background:
    radial-gradient(600px circle at 85% 20%, rgba(168,85,247,.28), transparent 60%),
    radial-gradient(500px circle at 10% 100%, rgba(56,189,248,.16), transparent 60%); pointer-events: none; }
.f-hero-body { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.f-hero-text { flex: 1 1 420px; min-width: 0; }
.f-hero-title { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1.1; margin: 0 0 .6rem; letter-spacing: -.01em; }
.f-hero-sub { color: var(--text-secondary); font-size: 1rem; max-width: 560px; margin: 0 0 1.4rem; line-height: 1.55; }
.f-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.f-search-inline { position: relative; flex: 1 1 260px; max-width: 380px; }
.f-search-inline i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; }
.f-search-inline input { width: 100%; padding: .7rem 1rem .7rem 2.4rem; border-radius: 50px; border: 1px solid var(--border); background: rgba(10,0,21,.45); color: var(--text-primary); font-family: var(--font); font-size: .9rem; transition: var(--transition); }
.f-search-inline input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
.light-theme .f-search-inline input { background: #fff; }
.f-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: .7rem; }
.f-hero-stats-inline { grid-template-columns: repeat(3, auto); }
.f-stat { padding: .85rem 1.1rem; border-radius: 14px; background: rgba(124,58,237,.10); border: 1px solid rgba(168,85,247,.22); text-align: center; min-width: 110px; }
.f-stat-val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.f-stat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-top: .25rem; }
.f-online-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: fPulse 2s infinite; display: inline-block; }
@keyframes fPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Layout */
.f-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }
.f-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
.f-side-card { padding: 1.2rem 1.3rem !important; }
.f-side-title { font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; color: var(--text-primary); }
.f-side-title i { color: var(--accent-light); }
.f-cta-card { text-align: center; background: linear-gradient(160deg, rgba(124,58,237,.22), rgba(20,5,40,.7)) !important; border-color: rgba(168,85,247,.35) !important; }
.light-theme .f-cta-card { background: linear-gradient(160deg, rgba(124,58,237,.12), #fff) !important; }
.f-cta-icon { width: 52px; height: 52px; margin: 0 auto .7rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--purple-600), var(--accent)); box-shadow: 0 8px 22px rgba(124,58,237,.4); }
.f-cta-card h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.f-cta-card p { font-size: .84rem; color: var(--text-secondary); margin: 0 0 1rem; line-height: 1.5; }
.f-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.f-mini-list li { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--border); }
.f-mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.f-mini-list a { color: var(--text-primary); font-size: .86rem; font-weight: 600; line-height: 1.35; }
.f-mini-list a:hover { color: var(--accent-light); }
.f-mini-list span { font-size: .74rem; color: var(--text-muted); }
.f-users-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.f-user-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 10px; transition: var(--transition); color: var(--text-primary); }
.f-user-row:hover { background: rgba(168,85,247,.10); }
.f-user-name { flex: 1; font-weight: 600; font-size: .88rem; }
.f-user-stat { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.f-rules { list-style: none; margin: 0 0 .7rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .84rem; color: var(--text-secondary); }
.f-rules li::before { content: '✦'; color: var(--accent-light); margin-right: .5rem; }
.f-rules-link { font-size: .82rem; font-weight: 600; }

/* Sections grid */
.f-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.f-section-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.25rem; border-radius: var(--radius-lg); background: var(--bg-glass); border: 1px solid var(--border); color: var(--text-primary); position: relative; overflow: hidden; transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease; }
.f-section-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 14%, transparent), transparent 55%); opacity: 0; transition: opacity .25s ease; }
.f-section-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c2) 55%, transparent); box-shadow: 0 16px 36px rgba(0,0,0,.35), 0 0 30px color-mix(in srgb, var(--c2) 22%, transparent); color: var(--text-primary); }
.f-section-card:hover::before { opacity: 1; }
.f-sec-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c1) 45%, transparent); position: relative; }
.f-sec-icon-lg { width: 68px; height: 68px; font-size: 1.7rem; border-radius: 18px; }
.f-sec-body { flex: 1; min-width: 0; position: relative; }
.f-sec-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.f-sec-desc { font-size: .82rem; color: var(--text-secondary); margin-top: .25rem; line-height: 1.45; }
.f-sec-last { font-size: .76rem; color: var(--text-muted); margin-top: .6rem; display: flex; gap: .4rem; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-sec-last i { color: var(--accent-light); flex-shrink: 0; }
.f-sec-last span { color: var(--text-muted); }
.f-sec-last-empty { font-style: italic; }
.f-sec-stats { display: flex; flex-direction: column; gap: .35rem; text-align: right; flex-shrink: 0; position: relative; }
.f-sec-stats div { display: flex; flex-direction: column; line-height: 1.05; }
.f-sec-stats b { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); }
.f-sec-stats span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

/* Section head */
.f-sec-head { display: flex; gap: 1.3rem; align-items: center; padding: 1.6rem 1.8rem !important; margin-bottom: 1rem; position: relative; overflow: hidden; }
.f-sec-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at 0% 50%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%); pointer-events: none; }
.f-sec-head-body { flex: 1; min-width: 0; position: relative; }
.f-sec-h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 .3rem; }
.f-sec-head-desc { color: var(--text-secondary); font-size: .92rem; margin: 0 0 .6rem; line-height: 1.5; }
.f-sec-head-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); }
.f-sec-head-meta i { color: var(--accent-light); margin-right: .25rem; }
.f-sec-cat-link { font-weight: 600; color: var(--accent-light); }
.f-sec-head-actions { position: relative; flex-shrink: 0; }

/* Filters */
.f-filters { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem !important; margin-bottom: 1rem; flex-wrap: wrap; }
.f-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.f-tab { padding: .45rem .9rem; border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: .4rem; transition: var(--transition); }
.f-tab:hover { color: var(--text-primary); background: rgba(168,85,247,.08); }
.f-tab.active { background: rgba(124,58,237,.2); color: var(--accent-light); }
.f-kinds { display: flex; gap: .35rem; flex-wrap: wrap; }
.f-kind { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; color: var(--kc); background: color-mix(in srgb, var(--kc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 30%, transparent); white-space: nowrap; }
.f-kind-btn { cursor: pointer; padding: .32rem .75rem; font-size: .78rem; opacity: .7; transition: var(--transition); }
.f-kind-btn:hover, .f-kind-btn.active, .f-kind-btn:has(input:checked) { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--kc) 35%, transparent); }
.f-kind-btn input { display: none; }
.f-kind-pick { display: flex; gap: .4rem; flex-wrap: wrap; padding-top: .35rem; }

/* Topic rows */
.f-topic-list { display: flex; flex-direction: column; }
.f-topic-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px 120px; gap: .9rem; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--text-primary); transition: background .2s ease; position: relative; }
.f-topic-row:last-child { border-bottom: 0; }
.f-topic-row:hover { background: rgba(168,85,247,.07); color: var(--text-primary); }
.f-topic-row.is-pinned { background: linear-gradient(90deg, rgba(245,158,11,.07), transparent 40%); }
.f-topic-row.is-deleted { opacity: .55; }
.f-topic-row.is-deleted .f-topic-title span { text-decoration: line-through; }
.f-topic-title { font-weight: 600; font-size: .95rem; line-height: 1.35; display: flex; gap: .4rem; align-items: baseline; }
.f-topic-title span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.f-ico-pin { color: #f59e0b; font-size: .8rem; } .f-ico-lock { color: #94a3b8; font-size: .8rem; } .f-ico-solved { color: #22c55e; font-size: .85rem; }
.f-topic-meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .76rem; color: var(--text-muted); margin-top: .3rem; }
.f-meta-author { color: var(--text-secondary); font-weight: 600; }
.f-meta-sec i { color: var(--accent-light); margin-right: .2rem; }
.f-meta-dot { opacity: .5; }
.f-topic-stats { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--text-muted); text-align: right; }
.f-topic-stats i { width: 14px; color: var(--accent-light); opacity: .8; }
.f-topic-last { font-size: .76rem; color: var(--text-muted); text-align: right; }
.f-topic-last i { margin-right: .2rem; }
.f-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.f-empty i { font-size: 2.2rem; color: var(--purple-700); }
.f-empty p { margin: 0; }
.f-empty-cta { text-align: center; padding: 2rem 0; color: var(--text-secondary); display: flex; flex-direction: column; gap: .8rem; align-items: center; }

/* Avatars / badges */
.f-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.3); text-transform: uppercase; }
.f-avatar-xs { width: 24px; height: 24px; font-size: .7rem; border-radius: 7px; }
.f-avatar-sm { width: 38px; height: 38px; font-size: .95rem; border-radius: 11px; }
.f-avatar-md { width: 46px; height: 46px; font-size: 1.1rem; }
.f-avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 18px; }
.f-avatar-xl { width: 96px; height: 96px; font-size: 2.4rem; border-radius: 26px; }
.f-author-name { font-weight: 700; color: var(--text-primary); }
.f-author-name:hover { color: var(--accent-light); }
.f-author-name.is-staff { color: #fbbf24; }
.f-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 50px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: rgba(148,163,184,.15); color: #94a3b8; }
.b-admin { background: linear-gradient(135deg, rgba(245,158,11,.25), rgba(239,68,68,.2)); color: #fbbf24; border: 1px solid rgba(245,158,11,.4); }
.b-mod { background: rgba(56,189,248,.15); color: #38bdf8; border: 1px solid rgba(56,189,248,.35); }
.b-buyer { background: rgba(34,197,94,.14); color: #22c55e; border: 1px solid rgba(34,197,94,.35); }
.b-ban { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.f-rank { font-size: .72rem; font-weight: 700; }
.rank-new { color: #94a3b8; } .rank-member { color: #38bdf8; } .rank-active { color: #a855f7; } .rank-veteran { color: #f59e0b; } .rank-staff { color: #fbbf24; }
.f-custom-title { font-size: .74rem; color: var(--accent-light); font-style: italic; }

/* Topic head */
.f-topic-head { padding: 1.5rem 1.8rem !important; margin-bottom: 1.2rem; position: relative; overflow: hidden; }
.f-topic-head::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.22), transparent 70%); pointer-events: none; }
.f-topic-head.is-deleted { border-color: rgba(239,68,68,.4) !important; }
.f-topic-head-top { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.f-flag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .18rem .6rem; border-radius: 50px; background: rgba(245,158,11,.15); color: #f59e0b; }
.f-flag-lock { background: rgba(148,163,184,.15); color: #94a3b8; } .f-flag-solved { background: rgba(34,197,94,.15); color: #22c55e; } .f-flag-del { background: rgba(239,68,68,.15); color: #f87171; }
.f-topic-h1 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin: 0 0 .7rem; letter-spacing: -.01em; }
.f-topic-head-meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.f-topic-head-meta i { color: var(--accent-light); }
.f-topic-head-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; position: relative; }
.f-sub-btn.is-on { border-color: rgba(34,197,94,.5); color: #22c55e; }
.f-mod-menu { position: relative; }
.f-mod-menu summary { list-style: none; cursor: pointer; }
.f-mod-menu summary::-webkit-details-marker { display: none; }
.f-mod-drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; padding: .5rem; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: .25rem; }
.f-mod-drop form { display: flex; flex-direction: column; gap: .2rem; }
.f-mod-drop button { text-align: left; background: none; border: 0; color: var(--text-primary); padding: .5rem .7rem; border-radius: 8px; cursor: pointer; font-family: var(--font); font-size: .85rem; display: flex; align-items: center; gap: .5rem; transition: var(--transition); }
.f-mod-drop button:hover { background: rgba(168,85,247,.12); }
.f-mod-drop button.is-danger { color: #f87171; }
.f-mod-move { border-top: 1px solid var(--border); padding-top: .4rem; margin-top: .2rem; }
.f-mod-move select { font-size: .82rem; padding: .45rem .6rem; }

/* Posts */
.f-posts { display: flex; flex-direction: column; gap: 1rem; }
.f-post { display: grid; grid-template-columns: 170px minmax(0, 1fr); padding: 0 !important; overflow: hidden; scroll-margin-top: 90px; transition: border-color .3s ease, box-shadow .3s ease; }
.f-post.is-first { border-color: rgba(168,85,247,.45) !important; }
.f-post.is-solution { border-color: rgba(34,197,94,.5) !important; box-shadow: 0 0 0 1px rgba(34,197,94,.2), var(--shadow); }
.f-post.is-staff-post .f-post-author { background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.02)); }
.f-post.is-deleted { opacity: .6; }
.f-post.is-deleted .f-content { text-decoration: line-through; color: var(--text-muted); }
.f-post:target { animation: fFlash 1.6s ease; }
@keyframes fFlash { 0%, 60% { box-shadow: 0 0 0 2px var(--accent), 0 0 40px rgba(168,85,247,.35); } 100% { box-shadow: var(--shadow); } }
.f-post-author { padding: 1.3rem 1rem; border-right: 1px solid var(--border); background: rgba(124,58,237,.05); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; }
.f-post-author-info { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; min-width: 0; }
.f-post-author-info .f-author-name { font-size: .95rem; word-break: break-word; }
.f-badges { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; }
.f-author-stats { display: flex; gap: .7rem; font-size: .72rem; color: var(--text-muted); margin-top: .25rem; }
.f-author-stats i { color: var(--accent-light); margin-right: .15rem; }
.f-post-body { padding: 1.1rem 1.4rem 1rem; min-width: 0; display: flex; flex-direction: column; }
.f-post-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-muted); margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--border); }
.f-post-time { color: var(--text-muted); } .f-post-time:hover { color: var(--accent-light); }
.f-post-tag { display: inline-flex; gap: .3rem; align-items: center; font-weight: 700; font-size: .7rem; padding: .12rem .55rem; border-radius: 50px; background: rgba(168,85,247,.15); color: var(--accent-light); }
.f-post-tag-solved { background: rgba(34,197,94,.15); color: #22c55e; } .f-post-tag-del { background: rgba(239,68,68,.15); color: #f87171; }
.f-post-num { margin-left: auto; font-weight: 700; opacity: .6; }
.f-reply-ref { display: block; font-size: .8rem; color: var(--text-muted); padding: .5rem .8rem; border-left: 3px solid var(--accent); background: rgba(168,85,247,.08); border-radius: 0 10px 10px 0; margin-bottom: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-reply-ref b { color: var(--text-secondary); }
.f-reply-ref:hover { background: rgba(168,85,247,.14); color: var(--text-secondary); }
.f-content { font-size: .95rem; line-height: 1.65; color: var(--text-primary); word-wrap: break-word; overflow-wrap: anywhere; flex: 1; }
.f-content p { margin: 0 0 .8rem; } .f-content p:last-child { margin-bottom: 0; }
.f-content h3, .f-content h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 1rem 0 .5rem; }
.f-content ul, .f-content ol { margin: 0 0 .8rem 1.4rem; } .f-content li { margin-bottom: .25rem; }
.f-content blockquote { margin: 0 0 .8rem; padding: .6rem 1rem; border-left: 3px solid var(--accent); background: rgba(168,85,247,.08); border-radius: 0 10px 10px 0; color: var(--text-secondary); }
.f-content blockquote p:last-child { margin: 0; }
.f-content code { font-family: 'JetBrains Mono', Consolas, monospace; font-size: .85em; padding: .1rem .35rem; border-radius: 5px; background: rgba(0,0,0,.35); color: #e9d5ff; }
.light-theme .f-content code { background: rgba(124,58,237,.1); color: #6d28d9; }
.f-content pre { margin: 0 0 .8rem; padding: .9rem 1rem; border-radius: 10px; background: rgba(0,0,0,.4); border: 1px solid var(--border); overflow-x: auto; }
.f-content pre code { padding: 0; background: none; font-size: .82rem; }
.light-theme .f-content pre { background: #f3efff; }
.f-content a { color: var(--accent-light); text-decoration: underline; text-decoration-color: rgba(168,85,247,.4); }
.f-content table { border-collapse: collapse; margin: 0 0 .8rem; font-size: .88rem; display: block; overflow-x: auto; }
.f-content th, .f-content td { border: 1px solid var(--border); padding: .4rem .7rem; }
.f-content hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.f-spoiler { margin: 0 0 .8rem; border: 1px dashed rgba(168,85,247,.4); border-radius: 10px; padding: .5rem .9rem; background: rgba(168,85,247,.05); }
.f-spoiler summary { cursor: pointer; font-weight: 600; color: var(--accent-light); font-size: .85rem; }
.f-spoiler > span { display: block; padding-top: .5rem; }
.f-edited { font-size: .72rem; color: var(--text-muted); margin-top: .6rem; font-style: italic; }
.f-signature { margin-top: .9rem; padding-top: .6rem; border-top: 1px dashed var(--border); font-size: .78rem; color: var(--text-muted); font-style: italic; }
.f-signature-profile { border-top: 0; padding-top: 0; margin-top: .5rem; font-size: .88rem; }
.f-post-actions { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.f-act { background: none; border: 0; color: var(--text-muted); font-family: var(--font); font-size: .8rem; font-weight: 600; padding: .4rem .7rem; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; transition: var(--transition); text-decoration: none; }
.f-act:hover { background: rgba(168,85,247,.12); color: var(--text-primary); }
.f-act-danger:hover { color: #f87171; background: rgba(239,68,68,.1); }
.f-act-solve { color: #22c55e; } .f-act-muted { opacity: .6; }
.f-like { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 50px; border: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--text-muted); font-family: var(--font); font-size: .82rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.f-like:hover { border-color: rgba(244,63,94,.5); color: #fb7185; }
.f-like.is-liked { border-color: rgba(244,63,94,.5); background: rgba(244,63,94,.12); color: #fb7185; }
.f-like.is-liked i { animation: fHeart .4s ease; }
@keyframes fHeart { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* Reply / editor */
.f-reply { padding: 1.4rem 1.6rem !important; margin-top: 1.4rem; scroll-margin-top: 90px; }
.f-reply-title { font-size: 1.05rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.f-reply-title i { color: var(--accent-light); }
.f-reply-foot, .f-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.f-form-foot { justify-content: flex-end; }
.f-replying-to { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-secondary); padding: .45rem .8rem; border-radius: 10px; background: rgba(168,85,247,.1); margin-bottom: .6rem; }
.f-replying-to button { margin-left: auto; background: none; border: 0; color: var(--text-muted); cursor: pointer; }
.f-notice { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(168,85,247,.08); border: 1px solid var(--border); color: var(--text-secondary); font-size: .9rem; }
.f-notice i { font-size: 1.2rem; color: var(--accent-light); }
.f-notice-warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); }
.f-notice-warn i { color: #f59e0b; }
.f-editor { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: rgba(10,0,21,.4); transition: var(--transition); }
.light-theme .f-editor { background: #fff; }
.f-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.f-toolbar { display: flex; align-items: center; gap: .15rem; padding: .4rem .5rem; border-bottom: 1px solid var(--border); background: rgba(124,58,237,.07); flex-wrap: wrap; }
.f-toolbar button { background: none; border: 0; color: var(--text-secondary); width: 32px; height: 30px; border-radius: 7px; cursor: pointer; font-size: .82rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: var(--transition); font-family: var(--font); }
.f-toolbar button:hover { background: rgba(168,85,247,.18); color: var(--text-primary); }
.f-toolbar button.active { background: rgba(168,85,247,.25); color: var(--accent-light); }
.f-tb-sep { width: 1px; height: 18px; background: var(--border); margin: 0 .3rem; }
.f-tb-preview { width: auto !important; padding: 0 .7rem !important; font-weight: 600; font-size: .78rem !important; }
.f-textarea { border: 0 !important; border-radius: 0 !important; background: transparent !important; resize: vertical; min-height: 140px; font-size: .95rem; line-height: 1.55; box-shadow: none !important; }
.f-preview { padding: .9rem 1rem; min-height: 140px; font-size: .95rem; line-height: 1.65; }
.f-preview:empty::before, .f-preview.is-empty::before { content: 'Нечего показывать'; color: var(--text-muted); font-style: italic; }
.f-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem .8rem; border-top: 1px solid var(--border); font-size: .74rem; color: var(--text-muted); flex-wrap: wrap; }
.f-counter { font-variant-numeric: tabular-nums; }
.f-counter.is-warn { color: #f59e0b; }
.f-form-card { padding: 1.8rem 2rem !important; }
.f-form-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0 0 .4rem; display: flex; align-items: center; gap: .6rem; }
.f-form-title i { color: var(--accent-light); }
.f-form-sub { color: var(--text-muted); font-size: .88rem; margin: 0 0 1.4rem; }
.f-form-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
.f-title-input { font-size: 1.05rem; font-weight: 600; }
.f-field-hint { font-size: .75rem; color: var(--text-muted); margin-top: .35rem; }

/* Profile */
.f-profile-head { display: flex; gap: 1.5rem; align-items: center; padding: 1.8rem 2rem !important; margin-bottom: 1rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.f-profile-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at 0% 0%, rgba(168,85,247,.2), transparent 60%); pointer-events: none; }
.f-profile-av { position: relative; }
.f-online-dot-av { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border: 3px solid var(--bg-secondary); }
.f-profile-info { flex: 1; min-width: 240px; position: relative; }
.f-profile-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 .4rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.f-profile-badges { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.f-profile-badges .f-rank { font-size: .8rem; padding: .15rem .6rem; border-radius: 50px; background: rgba(255,255,255,.05); }
.f-profile-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); }
.f-profile-meta i { color: var(--accent-light); margin-right: .25rem; }
.f-profile-stats { display: flex; gap: .7rem; position: relative; }
.f-sig-form, .f-mod-user { padding: 1rem 1.3rem !important; margin-bottom: 1rem; }
.f-sig-form label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .5rem; }
.f-sig-row, .f-ban-form, .f-mod-user-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.f-ban-form .form-control { width: auto; min-width: 120px; flex: 1; }
.f-post-mini { display: block; color: var(--text-primary); transition: var(--transition); }
.f-post-mini:hover { border-color: var(--accent) !important; transform: translateY(-2px); color: var(--text-primary); }
.f-post-mini-topic { font-weight: 700; font-size: .88rem; margin-bottom: .3rem; }
.f-post-mini-text { font-size: .82rem; color: var(--text-secondary); line-height: 1.45; }
.f-post-mini-meta { font-size: .72rem; color: var(--text-muted); margin-top: .5rem; }
.f-search-card { padding: 1.6rem 2rem !important; margin-bottom: 1.5rem; }
.f-search-big { display: flex; gap: .7rem; }
.f-search-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* Notifications */
.f-notif-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.f-notif-list { display: flex; flex-direction: column; gap: .6rem; }
.f-notif { display: flex; gap: .9rem; align-items: center; padding: .9rem 1.1rem !important; color: var(--text-secondary); transition: var(--transition); }
.f-notif:hover { border-color: var(--accent) !important; color: var(--text-primary); }
.f-notif.is-unread { border-color: rgba(168,85,247,.45) !important; background: linear-gradient(90deg, rgba(168,85,247,.12), var(--bg-glass)) !important; }
.f-notif-ico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(168,85,247,.15); color: var(--accent-light); flex-shrink: 0; }
.f-notif-like .f-notif-ico { background: rgba(244,63,94,.15); color: #fb7185; } .f-notif-solved .f-notif-ico { background: rgba(34,197,94,.15); color: #22c55e; } .f-notif-mod .f-notif-ico { background: rgba(239,68,68,.15); color: #f87171; }
.f-notif-body { flex: 1; font-size: .88rem; line-height: 1.45; }
.f-notif-body b { color: var(--text-primary); }
.f-notif-topic { color: var(--text-primary); }
.f-notif-time { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }

/* Nav bell */
.nav-forum-bell { position: relative; }
.nav-forum-bell .f-bell-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 50px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-primary); }

/* Mod panel */
.f-reports { display: flex; flex-direction: column; gap: .8rem; }
.f-report { display: flex; gap: 1rem; padding: 1rem 1.2rem !important; align-items: flex-start; flex-wrap: wrap; }
.f-report-main { flex: 1; min-width: 260px; }
.f-report-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .3rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.f-report-topic { font-weight: 700; color: var(--text-primary); }
.f-report-text { font-size: .84rem; color: var(--text-secondary); margin: .3rem 0; }
.f-report-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.f-sections-admin { display: flex; flex-direction: column; gap: .6rem; }
.f-sec-form { display: flex; gap: .5rem; align-items: center; padding: .7rem .9rem !important; flex-wrap: wrap; }
.f-sec-form .form-control { flex: 1; min-width: 120px; padding: .45rem .7rem; font-size: .85rem; }
.f-sec-form .f-w-sm { flex: 0 0 140px; } .f-sec-form .f-w-xs { flex: 0 0 70px; }
.f-sec-form .f-sec-icon { width: 36px; height: 36px; font-size: .9rem; border-radius: 10px; }
.f-check { font-size: .78rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.f-sec-form-new { border-style: dashed !important; }

/* Toast */
.f-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 10000; padding: .7rem 1.2rem; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); font-size: .88rem; box-shadow: 0 12px 40px rgba(0,0,0,.45); opacity: 0; transition: all .25s ease; pointer-events: none; }
.f-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .f-layout { grid-template-columns: 1fr; }
    .f-side { position: static; }
    .f-layout-topic .f-side { order: 2; }
}
@media (max-width: 768px) {
    .f-hero { padding: 1.6rem 1.3rem; }
    .f-hero-title { font-size: 1.7rem; }
    .f-hero-stats { grid-template-columns: repeat(4, 1fr); width: 100%; gap: .5rem; }
    .f-stat { min-width: 0; padding: .6rem .5rem; } .f-stat-val { font-size: 1.1rem; }
    .f-sections { grid-template-columns: 1fr; }
    .f-topic-row { grid-template-columns: 38px minmax(0, 1fr); gap: .7rem; padding: .8rem .9rem; }
    .f-topic-stats { flex-direction: row; grid-column: 2; gap: .8rem; text-align: left; margin-top: -.2rem; }
    .f-topic-last { display: none; }
    .f-post { grid-template-columns: 1fr; }
    .f-post-author { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--border); padding: .8rem 1rem; gap: .8rem; }
    .f-post-author .f-avatar-lg { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
    .f-post-author-info { align-items: flex-start; gap: .15rem; }
    .f-badges { justify-content: flex-start; }
    .f-post-body { padding: .9rem 1rem; }
    .f-form-row { grid-template-columns: 1fr; }
    .f-form-card, .f-reply, .f-search-card { padding: 1.2rem 1rem !important; }
    .f-sec-head { flex-direction: column; align-items: flex-start; }
    .f-search-posts { grid-template-columns: 1fr; }
    .f-profile-head { flex-direction: column; align-items: flex-start; }
    .f-mod-drop { right: auto; left: 0; }
}

.f-content p:empty { display: none; }
