/* KinPost — stylesheet */
:root {
  --primary: #6f41d8; --primary-2: #5a2fc4; --primary-light: #efe9fc; --primary-glow: rgba(111,65,216,.18);
  --accent: #ff9f1c; --green: #16a34a; --red: #dc2626;
  --bg: #f6f5fb; --surface: #ffffff; --surface-2: #f2f0f9; --border: #e5e2f0;
  --text: #1a1a2e; --text-2: #55536b; --muted: #8a889c;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 6px 24px rgba(26,26,46,.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.center { text-align: center; }
.inline { display: inline; }
b, strong { font-weight: 700; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; }
.h-inline { margin: 0; }

/* ── KIN bar ───────────────────────────────────────────────────── */
.kinbar { background: linear-gradient(90deg, #17123a 0%, #2a1a6e 55%, #4a2ab8 100%); color: #fff; font-size: .82rem; }
.kinbar-in { display: flex; align-items: center; gap: 14px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.kinbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.kin-coin { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#ffd166,#ff9f1c); color: #2a1a6e; font-weight: 900; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.kinbar-name { font-weight: 800; letter-spacing: .5px; }
.kinbar-tag { opacity: .75; }
.kinbar-price { margin-left: auto; background: rgba(255,255,255,.1); padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; border: 1px solid rgba(255,255,255,.15); }
.kinbar-price:hover { background: rgba(255,255,255,.18); }
.kp-price { font-weight: 800; font-size: .95rem; }
.kp-chg { font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.15); }
.kp-chg.up { background: rgba(34,197,94,.3); color: #bbf7d0; }
.kp-chg.down { background: rgba(239,68,68,.3); color: #fecaca; }
.kp-src { opacity: .7; font-size: .72rem; }
.kinbar-x { background: #000; border: 1px solid rgba(255,255,255,.2); padding: 5px 12px; border-radius: 999px; font-weight: 800; }
.kinbar-x:hover { background: #111; }
@media (max-width: 640px) {
  .kinbar-tag, .kp-src { display: none; }
  .kinbar-in { gap: 8px; }
  .kinbar-x span { display: none; }
  .kinbar-x { padding: 6px 9px; }
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.02em; }
.logo img { border-radius: 9px; }
.logo b { color: var(--primary); }
.logo:hover { text-decoration: none; }
.search { flex: 1; display: flex; max-width: 420px; position: relative; }
.search input { flex: 1; border: 1.5px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 9px 40px 9px 14px; font: inherit; font-size: .9rem; outline: none; }
.search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-glow); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 34px; border: none; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.search.big { max-width: none; gap: 8px; }
.search.big input { padding-right: 14px; }
.search.big button { position: static; width: auto; border-radius: 999px; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link { color: var(--text-2); font-weight: 600; font-size: .9rem; padding: 7px 10px; border-radius: 999px; }
.nav-link:hover { background: var(--surface-2); text-decoration: none; }
.nav-link.muted { color: var(--muted); }
.nav-icon { position: relative; padding: 6px 8px; border-radius: 50%; font-size: 1.05rem; }
.nav-icon:hover { text-decoration: none; background: var(--surface-2); }
.badge { position: absolute; top: 0; right: 0; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center; }
.nav-me { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); padding: 4px 8px 4px 4px; border-radius: 999px; }
.nav-me img { border-radius: 50%; }
.nav-me:hover { background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 820px) {
  .search { display: none; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 16px 14px; gap: 4px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { text-align: center; }
  .nav-toggle { display: block; }
}

/* ── Buttons / forms ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-ghost.danger, .act.danger { color: var(--red); }
.btn-ghost.danger:hover { border-color: var(--red); }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .6; cursor: default; }
label { display: block; font-weight: 700; font-size: .85rem; margin: 14px 0 6px; }
label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
label.check input { margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], select, textarea {
  width: 100%; border: 1.5px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; font-size: .95rem; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-glow); }
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input { width: auto; flex: 1; }
.avatar-picker { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.avatar-drop { position: relative; width: 128px; height: 128px; margin: 0; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: block; }
.avatar-drop img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-2); transition: transform .25s, filter .25s; }
.avatar-ring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--primary-light); transition: border-color .2s, box-shadow .2s; pointer-events: none; }
.avatar-drop:hover .avatar-ring, .avatar-drop.dragover .avatar-ring { border-color: var(--primary); box-shadow: 0 0 0 6px var(--primary-glow); }
.avatar-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(26,26,46,.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-size: .8rem; opacity: 0; transition: opacity .2s; }
.avatar-overlay span { font-size: 1.4rem; line-height: 1; }
.avatar-drop:hover .avatar-overlay, .avatar-drop.dragover .avatar-overlay { opacity: 1; }
.avatar-drop.busy img { filter: blur(2px) brightness(.8); }
.avatar-drop.busy .avatar-overlay { opacity: 1; }
.avatar-drop.saved img { animation: avatarPop .5s cubic-bezier(.2,.9,.3,1.3); }
.avatar-drop.saved .avatar-ring { border-color: var(--green); box-shadow: 0 0 0 6px rgba(22,163,74,.18); }
@keyframes avatarPop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.avatar-help { display: flex; flex-direction: column; gap: 3px; }
.avatar-status.ok { color: var(--green); }
.avatar-status.err { color: var(--red); }
@media (max-width: 480px) { .avatar-picker { flex-direction: column; text-align: center; } }
.icon-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-opt { margin: 0; width: 42px; height: 42px; border: 1.5px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; background: var(--surface); }
.icon-opt input { display: none; }
.icon-opt.on, .icon-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }

/* ── Layout ────────────────────────────────────────────────────── */
.main { padding: 22px 16px 40px; min-height: 60vh; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card.empty, .empty { padding: 34px 20px; text-align: center; color: var(--text-2); }
.form-card { padding: 22px 24px 26px; max-width: 760px; }
.auth-card { padding: 28px 26px; max-width: 440px; margin: 20px auto; }
.prose { padding: 26px 28px; max-width: 800px; }
.prose li { margin-bottom: 8px; }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; font-size: .9rem; }
.flash.ok { background: #e8f8ee; color: #166534; border: 1px solid #bbf0cf; }
.flash.err { background: #fdecec; color: #991b1b; border: 1px solid #f9c6c6; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs span { color: var(--text-2); font-weight: 600; }
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.sorts, .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; }
.chip:hover { text-decoration: none; border-color: var(--primary); }
.chip.on { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.chip .x { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 1rem; }
.tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); vertical-align: middle; }
.tag.admin { background: var(--primary-light); color: var(--primary); }
.tag.op { background: #fff3d6; color: #9a5b00; }
.tag.danger { background: #fdecec; color: var(--red); }
.tag.online { background: #e8f8ee; color: var(--green); }

/* ── Hero / stats ──────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 30px; margin-bottom: 20px; }
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { color: var(--text-2); margin: 0 0 16px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: flex; gap: 6px; justify-content: space-around; flex-wrap: wrap; }
.stats.card { padding: 18px; }
.stats div { text-align: center; min-width: 64px; }
.stats strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stats span { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; padding: 22px 18px; } .hero h1 { font-size: 1.55rem; } }

/* ── Forum list ────────────────────────────────────────────────── */
.cat-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--border); }
.cat-head h2 { margin: 0; }
.forum-row { display: grid; grid-template-columns: 52px 1fr 90px 220px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); color: inherit; }
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--surface-2); text-decoration: none; }
.forum-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; }
.forum-icon.big { width: 60px; height: 60px; font-size: 1.9rem; flex-shrink: 0; }
.forum-main { min-width: 0; }
.forum-name { display: block; font-weight: 800; font-size: 1rem; }
.forum-desc { display: block; color: var(--text-2); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-counts { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.forum-counts b { color: var(--text); }
.forum-last { min-width: 0; font-size: .8rem; display: flex; flex-direction: column; }
.fl-title { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .forum-row { grid-template-columns: 44px 1fr; } .forum-counts, .forum-last { display: none; } .forum-desc { white-space: normal; } }
.forum-head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px; align-items: flex-start; flex-wrap: wrap; }
.fh-main { display: flex; gap: 14px; align-items: flex-start; }
.fh-main p { margin: 2px 0; }
.fh-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Thread list ───────────────────────────────────────────────── */
.thread-row { display: grid; grid-template-columns: 40px 1fr 70px 70px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); color: inherit; }
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: var(--surface-2); text-decoration: none; }
.thread-row.pinned { background: #fffaf0; }
.tr-avatar { border-radius: 50%; }
.tr-main { min-width: 0; display: flex; flex-direction: column; }
.tr-title { font-weight: 700; font-size: .98rem; }
.tr-counts { text-align: center; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.tr-counts b { display: block; font-size: 1rem; color: var(--text); }
@media (max-width: 560px) { .thread-row { grid-template-columns: 36px 1fr 52px; } .thread-row .tr-counts:last-child { display: none; } }

/* ── Sidebar ───────────────────────────────────────────────────── */
.side { padding: 16px 18px; }
.side h3 { margin-bottom: 10px; }
.side-thread { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); color: inherit; }
.side-thread:last-of-type { border-bottom: none; }
.side-thread:hover { text-decoration: none; }
.side-thread:hover .st-title { color: var(--primary); }
.side-thread img { border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.side-thread > span { display: flex; flex-direction: column; min-width: 0; }
.st-title { font-weight: 700; font-size: .88rem; line-height: 1.3; }
.side-thread .muted { font-size: .75rem; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.avatars img { border-radius: 50%; }
.kin-side { background: linear-gradient(160deg, #fff, var(--primary-light)); }
.kin-side .btn-block { margin-top: 6px; }

/* ── Thread page ───────────────────────────────────────────────── */
.thread-head { margin-bottom: 14px; }
.thread-head h1 { font-size: 1.5rem; }
.th-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.th-actions form { display: inline-flex; gap: 6px; }
.posts { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.post { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 80px; }
.post.op { border-color: #d9cdf5; }
.post.deleted { opacity: .6; }
.post:target { box-shadow: 0 0 0 3px var(--primary-glow); border-color: var(--primary); }
.post-user { padding: 16px 14px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border-right: 1px solid var(--border); }
.post-user img { border-radius: 50%; }
.pu-name { font-weight: 800; color: var(--text); font-size: .95rem; word-break: break-all; }
.post-body { padding: 14px 18px 12px; min-width: 0; }
.post-head { display: flex; gap: 8px; margin-bottom: 8px; }
.post-head a { color: var(--muted); }
.post-content { font-size: .97rem; line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; }
.post-content p { margin: 0 0 .8em; }
.post-content p:last-child { margin-bottom: 0; }
.post-content blockquote { margin: 0 0 .8em; padding: 8px 14px; border-left: 4px solid var(--primary); background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); }
.post-content pre.code { background: #1a1a2e; color: #e6e6f0; padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .85rem; line-height: 1.45; }
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.post-content pre.code code { background: none; padding: 0; }
.post-content .post-img { max-height: 480px; border-radius: var(--radius-sm); display: block; margin: 6px 0; }
.post-content h2, .post-content h3, .post-content h4 { margin: .6em 0 .3em; }
.post-content .mention { font-weight: 700; }
.post-foot { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.act { border: none; background: transparent; color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.act:hover { background: var(--surface-2); text-decoration: none; }
.act.like.on { color: var(--red); }
.act.like.on .cnt { font-weight: 800; }
.act.pop { animation: pop .3s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-user { flex-direction: row; text-align: left; padding: 10px 14px; border-right: none; border-bottom: 1px solid var(--border); gap: 10px; }
  .post-user img { width: 36px; height: 36px; }
  .post-user .small { margin-left: auto; text-align: right; }
}
.reply { padding: 18px 20px 20px; }
.editor { border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.editor textarea { border: none; border-radius: 0; background: #fff; box-shadow: none !important; }
.ed-tools { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ed-tools button, .ed-upload { border: none; background: transparent; padding: 5px 9px; border-radius: 7px; font: inherit; font-size: .82rem; font-weight: 700; color: var(--text-2); cursor: pointer; }
.ed-tools button:hover, .ed-upload:hover { background: #fff; color: var(--primary); }
.ed-tools .ed-preview { margin-left: auto; }
.ed-tools .ed-preview.on { background: var(--primary); color: #fff; }
.ed-previewbox { padding: 12px 14px; background: #fff; min-height: 100px; }
.ed-status { padding: 6px 10px; }
.post-edit-form { margin-top: 8px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0; }
.pg { padding: 6px 11px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: .85rem; }
.pg:hover { border-color: var(--primary); text-decoration: none; }
.pg.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg.dots { border: none; background: transparent; }

/* ── Generic lists (profile, search, notifications, admin) ─────── */
.list-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border); color: inherit; }
.list-row:last-child { border-bottom: none; }
a.list-row:hover { background: var(--surface-2); text-decoration: none; }
.list-row img { border-radius: 50%; flex-shrink: 0; }
.lr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lr-title { font-weight: 700; }
.lr-excerpt { color: var(--text-2); font-size: .88rem; }
.list-row.unread { background: #f8f5ff; }
.nf-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.row-actions form { display: inline-flex; gap: 6px; }

/* ── Profile ───────────────────────────────────────────────────── */
.profile-head { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.pf-avatar { border-radius: 24px; flex-shrink: 0; }
.pf-main { min-width: 0; flex: 1; }
.pf-bio { margin: 4px 0 6px; color: var(--text-2); }
.pf-stats { display: flex; gap: 16px; margin: 8px 0; font-size: .9rem; color: var(--text-2); }
.pf-stats b { color: var(--text); }
.pf-actions { display: flex; gap: 8px; }
@media (max-width: 560px) { .profile-head { flex-direction: column; align-items: center; text-align: center; } .pf-stats, .pf-actions { justify-content: center; } }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px; gap: 6px; color: inherit; margin: 0; }
.member:hover { text-decoration: none; border-color: var(--primary); }
.member img { border-radius: 50%; }
.danger-zone { border-color: #f9c6c6; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 26px 0 34px; font-size: .85rem; }
.footer-in { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--text-2); font-weight: 600; }
.footer-copy a { color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1a1a2e; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; opacity: 0; transition: .2s; z-index: 999; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
