:root {
  --bg: #0e0e10;
  --surface: #161618;
  --surface-2: #1d1d21;
  --surface-3: #25252a;
  --border: #29292e;
  --text: #ececef;
  --text-2: #c4c4cb;
  --muted: #8d8d96;
  --accent: #a8344f;
  --accent-h: #bf3e5c;
  --accent-soft: rgba(191, 62, 92, .16);
  --accent-text: #f2a7b9;
  --green: #3ecf72;
  --danger: #e5484d;
  --admin: #f2a7b9;
  --mod: #7fb8ff;
  --radius: 18px;
  --shadow: none;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f6f6f8;
  --surface-3: #ececf0;
  --border: #e4e4ea;
  --text: #17171a;
  --text-2: #3a3a42;
  --muted: #6a6a74;
  --accent-soft: rgba(168, 52, 79, .09);
  --accent-text: #a8344f;
  --green: #1f9d52;
  --admin: #a8344f;
  --mod: #1f6fd1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 8px 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-h), #6e1f33); color: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.logo-text { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.logo-stack { display: flex; flex-direction: column; line-height: 1.05; }
.logo-stack .logo-text { font-size: 22px; }
.slogan { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 3px; letter-spacing: .01em; }
.slogan svg { display: block; }
.slogan b { color: #b4415e; font-weight: 800; }
.yt-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 2px 6px 2px 5px; border-radius: 5px; background: #b4415e; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.mascot { flex-shrink: 0; display: block; overflow: visible; }
.mascot .m-ant { transform-origin: 32px 20px; }
.logo:hover .mascot .m-ant { animation: antwiggle .6s ease-in-out; }
.logo:hover .mascot { transform: rotate(-6deg); }
.mascot { transition: transform .2s ease; }
@keyframes antwiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .logo:hover .mascot, .logo:hover .mascot .m-ant { animation: none; transform: none; } }
.logo-text b { font-weight: 800; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.mainnav a:hover { background: var(--surface-2); color: var(--text); }
.mainnav a.on { color: var(--text); background: var(--surface-2); }
.search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 16px; height: 42px;
  color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search.big { max-width: none; height: 50px; width: 100%; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.online-pill {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: rgba(62, 207, 114, .1); color: var(--green); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.online-pill:hover { color: var(--green); background: rgba(62, 207, 114, .16); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62, 207, 114, .6); animation: pulse 2s infinite; flex-shrink: 0; }
.live-dot.lg { width: 14px; height: 14px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 114, .55); } 70% { box-shadow: 0 0 0 8px rgba(62, 207, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 114, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.usermenu { position: relative; }
.usermenu summary {
  list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700;
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.usermenu .menu a, .usermenu .menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; border: 0; background: none; cursor: pointer; font-weight: 500;
}
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-h); color: #fff; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; border-color: rgba(229, 72, 77, .4); color: var(--danger); }
.btn.danger:hover { background: rgba(229, 72, 77, .12); }
.btn.block { width: 100%; }

/* ---------- Cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }

.welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px;
  padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface);
}
.welcome h1 { font-size: 24px; letter-spacing: -.02em; }
.welcome p { margin: 6px 0 0; color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent-text); }
.crumb-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50ch; }

/* Sections & categories */
.section { overflow: hidden; }
.section-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.section-h h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-text); }
.sh-cols { display: flex; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sh-cols span { width: 72px; text-align: center; }
.sh-cols .sh-last { width: 250px; text-align: left; padding-left: 16px; }
.cat-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 72px 72px 250px; gap: 0 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { background: var(--surface-2); }
.cat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); }
.cat-icon.lg { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; flex-shrink: 0; }
.cat-name { font-weight: 700; font-size: 16px; }
.cat-info p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.cat-num { text-align: center; display: flex; flex-direction: column; }
.cat-num b { font-size: 16px; }
.cat-num span { display: none; font-size: 12px; color: var(--muted); }
.cat-last { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--border); }
.cat-last > div { min-width: 0; display: flex; flex-direction: column; }
.cat-last a { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-last span { font-size: 12.5px; color: var(--muted); }

/* Avatars */
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex-shrink: 0; text-transform: uppercase; }
.av-sm { width: 30px; height: 30px; font-size: 13px; }
.av-md { width: 42px; height: 42px; font-size: 17px; }
.av-lg { width: 72px; height: 72px; font-size: 28px; border-radius: 22px; }
.av-xl { width: 96px; height: 96px; font-size: 40px; border-radius: 28px; }
.av.guest { background: var(--surface-3); color: var(--muted); }

/* Sidebar */
.side-card { padding: 20px; }
.side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.side-h h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.side-h a { font-size: 13px; color: var(--muted); font-weight: 600; }
.online-card { border-color: rgba(62, 207, 114, .25); }
.online-big { display: flex; align-items: baseline; gap: 8px; }
.online-big b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.online-big span { color: var(--muted); font-weight: 600; }
.online-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.online-split div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; align-items: baseline; gap: 6px; }
.online-split b { font-size: 18px; }
.online-split span { color: var(--muted); font-size: 13px; }
.online-list { font-size: 14px; line-height: 1.7; color: var(--muted); }
.online-list a { color: var(--text-2); font-weight: 600; }
.online-list a:hover { color: var(--accent-text); }
.record { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.record b { color: var(--text-2); }
.role-admin { color: var(--admin) !important; }
.role-mod { color: var(--mod) !important; }

.stats { margin: 0; display: grid; gap: 10px; }
.stats div { display: flex; justify-content: space-between; gap: 10px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; }
.stats dd a { color: var(--accent-text); }

.helpers, .mini-threads, .recent-posts { list-style: none; margin: 0; padding: 0; }
.helpers li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.helpers a { font-weight: 700; flex: 1; }
.plus { color: var(--accent-text); font-weight: 800; }
.mini-threads li { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.mini-threads li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-threads a { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-threads span { font-size: 12.5px; color: var(--muted); }

/* Page header / thread list */
.page-h { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.ph-text { flex: 1; min-width: 0; }
.page-h h1 { font-size: 22px; letter-spacing: -.02em; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.list { overflow: hidden; }
.list-h { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.list-h h2 { font-size: 16px; }
.thread-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 150px 140px; gap: 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--surface-2); }
.thread-row.pinned { background: var(--accent-soft); }
.tr-title { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tr-meta a:hover { color: var(--accent-text); }
.cat-link { color: var(--accent-text); }
.tr-stats { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.tr-stats b { display: block; font-size: 15px; }
.tr-stats span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tr-last { text-align: right; display: flex; flex-direction: column; font-size: 13px; }
.tr-last span { color: var(--muted); }
.tr-last a { font-weight: 600; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.tag-pin { background: var(--accent); color: #fff; }
.tag-lock { background: var(--surface-3); color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 8px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.pager span { border: 0; background: none; color: var(--muted); }
.pager a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Thread view */
.thread-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px; margin-bottom: 16px; }
.thread-h h1 { font-size: 25px; letter-spacing: -.02em; }
.thread-h p { margin: 6px 0 0; font-size: 14px; }
.mod-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mod-actions form { margin: 0; }
.posts { display: flex; flex-direction: column; gap: 16px; margin: 14px 0; }
.post { overflow: hidden; scroll-margin-top: 90px; padding: 0; }
.post:target { border-color: var(--accent); }
.pa-av { position: relative; display: inline-block; }
.on-dot { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface-2); }
.profile-h .on-dot { border-color: var(--surface); width: 22px; height: 22px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.badge-admin { background: var(--accent); color: #fff; }
.badge-mod { background: rgba(127, 184, 255, .16); color: var(--mod); }

/* Üst çubuk: tarih + mesaj no */
.post-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 0 0 22px; background: var(--surface-3); border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pb-edited { color: var(--muted); font-weight: 500; font-size: 13px; }
.pb-no { margin-left: auto; height: 100%; display: grid; place-items: center; padding: 0 20px; background: var(--surface-2); font-weight: 800; color: var(--text); }
.pb-no:hover { color: var(--accent-text); }

/* Kullanıcı satırı + sağ panel */
.post-user { display: grid; grid-template-columns: minmax(0, 1fr) 330px; border-bottom: 1px solid var(--border); }
.pu-main { display: flex; align-items: center; gap: 14px; padding: 20px 22px; min-width: 0; }
.pu-av { position: relative; width: 96px; height: 96px; display: grid; place-items: center; flex-shrink: 0; }
.pu-av .av-lg { width: 76px; height: 76px; border-radius: 50%; font-size: 30px; }
.pu-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.pu-ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--accent-h); stroke-linecap: round; }
.pu-status { width: 13px; height: 13px; border-radius: 50%; background: var(--muted); opacity: .6; flex-shrink: 0; margin-left: -8px; }
.pu-status.on { background: var(--green); opacity: 1; box-shadow: 0 0 0 3px rgba(62, 207, 114, .2); }
.pu-id { min-width: 0; }
.pu-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.pu-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; word-break: break-word; }
.pu-badges { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.ubadge { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; cursor: help; font-size: 12px; font-weight: 800; }
.b-admin { background: #2f8cf0; }
.b-mod { background: #3a7bd5; }
.b-owner { background: var(--accent-h); }
.b-yt { background: #e62117; }
.b-chat { background: #3f5a7a; }
.b-like { background: #f08a4b; }
.b-vet { background: #d9a520; }
.b-level { color: var(--text); background: conic-gradient(var(--mod) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; z-index: 0; }
.b-level::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); z-index: -1; }
.pu-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.owner-txt { color: var(--accent-text); font-weight: 700; }

.pu-panel { border-left: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; }
.pp-head { display: grid; grid-template-columns: auto 1fr; border-bottom: 1px solid var(--border); font-size: 14px; }
.pp-head span { padding: 10px 18px; background: var(--surface-3); font-weight: 700; }
.pp-head b { padding: 10px 18px; font-weight: 700; }
.pp-page { margin: 0; padding: 12px 22px; display: grid; gap: 4px; flex: 1; align-content: center; font-size: 14px; }
.pp-page[hidden] { display: none; }
.pp-page div { display: grid; grid-template-columns: 120px 14px 1fr; align-items: center; }
.pp-page div::before { content: ":"; grid-column: 2; grid-row: 1; color: var(--muted); }
.pp-page dt { grid-column: 1; grid-row: 1; color: var(--muted); font-weight: 600; }
.pp-page dd { grid-column: 3; grid-row: 1; margin: 0; color: var(--text-2); }
.pp-page dd a { color: var(--accent-text); font-weight: 700; }
.pp-nav { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding: 4px 10px; font-size: 13px; color: var(--muted); }
.pp-nav button { width: 30px; height: 30px; border: 0; background: none; color: var(--accent-h); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.pp-nav button:hover { background: var(--surface-3); }

/* Mesaj gövdesi */
.post-body { padding: 22px 24px 26px; font-size: 16px; line-height: 1.7; color: var(--text-2); overflow-wrap: anywhere; }
.post-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.post-body blockquote { margin: 10px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15px; }
.yt-embed { margin-top: 14px; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; }

/* Beğen + paylaş çubuğu */
.like-bar { display: flex; align-items: stretch; margin: 0 22px; background: var(--surface-2); border-radius: 12px; overflow: hidden; min-height: 44px; }
.like-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; padding: 0 18px; border: 0; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; }
.like-btn svg { color: #f0643c; }
.like-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--surface-3) 70%, var(--accent) 30%); }
.like-btn.on { background: var(--accent); color: #fff; }
.like-btn.on svg { color: #fff; }
.like-btn:disabled { cursor: default; opacity: .65; }
.likers { flex: 1; display: flex; align-items: center; padding: 0 16px; font-size: 14px; color: var(--muted); min-width: 0; }
.share { display: flex; }
.share a { width: 46px; display: grid; place-items: center; color: #fff; }
.share a:hover { filter: brightness(1.12); color: #fff; }
.sh-fb { background: #3b5998; }
.sh-x { background: #1d1d1f; }
.sh-wa { background: #25d366; }

/* Alt eylemler */
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px 16px; }
.post-foot form { margin: 0; }
.pf-left { display: flex; gap: 4px; }
.pf-link { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pf-link:hover { background: var(--surface-2); color: var(--text); }
.pf-right { display: flex; gap: 8px; margin-left: auto; }
.pf-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.pf-btn:hover { filter: brightness(1.15); }
.pf-btn.primary { background: #2f9cf0; color: #fff; }
.danger-txt:hover { color: var(--danger) !important; }

.reply { padding: 20px 24px; margin-top: 16px; }
.reply-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.reply-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.reply-guest { margin: 0; text-align: center; color: var(--muted); }
.reply-guest a { color: var(--accent-text); font-weight: 700; }

/* Forms */
textarea, input:not([type="hidden"]), select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; outline: 0;
}
.search input { width: auto; background: transparent; border: 0; padding: 0; border-radius: 0; }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); }
.search input:focus { border: 0; }
.form-card { max-width: 520px; margin: 10px auto; padding: 30px; }
.form-card.wide { max-width: 860px; }
.form-card h1 { font-size: 24px; margin-bottom: 6px; letter-spacing: -.02em; }
.form-card.auth { max-width: 420px; margin-top: 30px; }
.form { display: flex; flex-direction: column; gap: 16px; margin: 18px 0; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14px; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; }
.form-foot.center { justify-content: center; margin-top: 18px; }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.alert { background: rgba(229, 72, 77, .12); color: var(--danger); border: 1px solid rgba(229, 72, 77, .3); padding: 10px 14px; border-radius: 12px; margin-top: 14px; font-weight: 600; font-size: 14px; }
.alert.ok { background: rgba(62, 207, 114, .1); color: var(--green); border-color: rgba(62, 207, 114, .3); }
.center a { color: var(--accent-text); font-weight: 700; }

/* Online page */
.online-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; margin-bottom: 18px; flex-wrap: wrap; }
.oh-main { display: flex; align-items: center; gap: 18px; }
.oh-main h1 { font-size: 26px; letter-spacing: -.02em; }
.oh-main p { margin: 4px 0 0; }
.oh-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.oh-stats div { background: var(--surface-2); border-radius: 14px; padding: 12px 18px; display: flex; flex-direction: column; min-width: 100px; }
.oh-stats b { font-size: 22px; }
.oh-stats span { font-size: 12.5px; color: var(--muted); }
.table-h, .table-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 120px; gap: 14px; align-items: center; padding: 12px 22px; }
.table-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table-row { border-bottom: 1px solid var(--border); }
.table-row:last-child { border-bottom: 0; }
.members-h, .members-row { grid-template-columns: minmax(0, 1.6fr) 80px 130px 140px; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; flex-wrap: wrap; }
.where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.where a:hover { color: var(--accent-text); }
.on-txt { color: var(--green); font-weight: 700; }

/* Profile */
.profile-h { display: flex; gap: 22px; align-items: center; padding: 26px; margin-bottom: 18px; flex-wrap: wrap; }
.profile-h h1 { font-size: 28px; letter-spacing: -.02em; }
.profile-h p { margin: 6px 0; }
.profile-h .bio { color: var(--text-2); max-width: 60ch; }
.profile-h .btn { margin-top: 6px; margin-right: 6px; }
.profile-stats { display: flex; gap: 10px; margin: 0; }
.profile-stats div { background: var(--surface-2); border-radius: 14px; padding: 12px 18px; text-align: center; min-width: 86px; }
.profile-stats dd { margin: 0; font-size: 22px; font-weight: 800; }
.profile-stats dt { font-size: 12.5px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.two-col .thread-row { grid-template-columns: 42px minmax(0, 1fr) 120px; }
.two-col .tr-last { display: none; }
.recent-posts li { padding: 14px 22px; border-bottom: 1px solid var(--border); }
.recent-posts li:last-child { border-bottom: 0; }
.recent-posts a { font-weight: 700; }
.recent-posts p { margin: 4px 0; color: var(--text-2); font-size: 14px; }

.user-hits { padding: 14px 18px; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface-2); font-weight: 700; }
.search-wrap { margin-bottom: 16px; }
.page-h + .list, .page-h + .user-hits, .page-h + .pad { margin-top: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .logo-text { font-size: 15px; color: var(--text); }
.foot nav { display: flex; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-row { grid-template-columns: 46px minmax(0, 1fr) 64px 64px; }
  .cat-last, .sh-last { display: none !important; }
  .sh-cols span { width: 64px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .mainnav { display: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; height: 40px; }
  .pill-txt, .um-name { display: none; }
  .mascot { width: 40px; height: 40px; }
  .logo-stack .logo-text { font-size: 19px; }
  .slogan { font-size: 12px; }
  .usermenu summary { padding: 3px; }
  .usermenu summary svg { display: none; }
  .welcome { flex-direction: column; align-items: flex-start; padding: 20px; }
  .welcome h1 { font-size: 20px; }
  .section-h { padding: 12px 16px; }
  .sh-cols { display: none; }
  .cat-row { grid-template-columns: 42px minmax(0, 1fr); padding: 14px 16px; }
  .cat-icon { width: 42px; height: 42px; font-size: 20px; }
  .cat-num { display: none; }
  .thread-row { grid-template-columns: 36px minmax(0, 1fr); padding: 12px 16px; }
  .thread-row .av-md { width: 36px; height: 36px; font-size: 15px; }
  .tr-stats, .tr-last { display: none; }
  .page-h { flex-wrap: wrap; padding: 16px; }
  .thread-h { flex-direction: column; padding: 18px; }
  .thread-h h1 { font-size: 21px; }
  .mod-actions { justify-content: flex-start; }
  .post-bar { padding-left: 14px; font-size: 13px; height: 40px; }
  .pb-no { padding: 0 14px; }
  .post-user { grid-template-columns: minmax(0, 1fr); }
  .pu-main { padding: 14px 16px; gap: 10px; }
  .pu-av { width: 68px; height: 68px; }
  .pu-av .av-lg { width: 54px; height: 54px; font-size: 22px; }
  .pu-name { font-size: 18px; }
  .ubadge { width: 22px; height: 22px; font-size: 11px; }
  .ubadge svg { width: 12px; height: 12px; }
  .pu-panel { border-left: 0; border-top: 1px solid var(--border); }
  .pp-page { padding: 10px 16px; }
  .pp-page div { grid-template-columns: 110px 14px 1fr; }
  .post-body { padding: 16px; font-size: 15.5px; }
  .like-bar { margin: 0 12px; flex-wrap: wrap; }
  .like-btn { min-width: 0; flex: 1; height: 42px; }
  .likers { order: 3; flex-basis: 100%; padding: 8px 12px; background: var(--surface); }
  .share a { width: 42px; }
  .post-foot { padding: 12px; flex-wrap: wrap; }
  .form-card { padding: 22px 18px; }
  .table-h { display: none; }
  .table-row, .members-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .table-row .where { grid-column: 1 / -1; order: 3; font-size: 13px; }
  .members-row > span:nth-child(2), .members-row > span:nth-child(3) { display: none; }
  .online-hero { padding: 20px; }
  .oh-main h1 { font-size: 21px; }
  .profile-h { padding: 20px; }
}
