/* ============================================================
   LPORPC Forum — Stylesheet
   London Public Order RolePlay Community
   Dark theme with Metropolitan LPO Blue
   ============================================================ */

:root {
  --blue:       #1a6fc4;
  --blue-dark:  #145ca0;
  --blue-light: #2280d8;
  --blue-dim:   rgba(26,111,196,0.15);
  --bg:         #1b1e26;
  --bg2:        #21252f;
  --bg3:        #282d38;
  --bg4:        #2e3444;
  --panel:      #252932;
  --border:     #31384a;
  --border2:    #3d4559;
  --text:       #bfc8d8;
  --text2:      #7e8da8;
  --text3:      #55637d;
  --white:      #e8edf5;
  --green:      #27a85a;
  --red:        #d63333;
  --orange:     #d47820;
  --gold:       #e8c040;
  --h-font:     'Barlow Condensed', sans-serif;
  --b-font:     'Barlow', sans-serif;
  --m-font:     'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--b-font);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; }
input, textarea, select, button { font-family: var(--b-font); font-size: 14px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ---- NOTICE BAR ---- */
#notice-bar {
  background: var(--blue-dark);
  color: #d0e4f7;
  text-align: center;
  padding: 7px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--blue);
  line-height: 1.4;
}
#notice-bar strong { color: #fff; }
#notice-bar a { color: var(--gold); }

/* ---- HEADER ---- */
#main-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner { max-width: 1260px; margin: 0 auto; }

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

/* LOGO */
.site-logo {
  font-family: var(--h-font);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.logo-l {
  color: var(--blue-light);
  background: var(--blue-dark);
  padding: 2px 6px 2px 5px;
  border-radius: 3px;
  margin-right: 0;
}

/* SEARCH */
.header-search {
  display: flex;
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
}
.header-search input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--white);
  padding: 7px 12px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.header-search input:focus { border-color: var(--blue); }
.header-search button {
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-left: none;
  border-radius: 0 4px 4px 0;
  color: var(--text2);
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.header-search button:hover { background: var(--blue); color: #fff; }

/* HEADER AUTH */
.header-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* NAV */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.nav-links { display: flex; align-items: center; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-color: var(--blue); }
.nav-badge {
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.4;
}
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--white); }
.btn-accent    { background: var(--blue-light); color: #fff; }
.btn-accent:hover { background: var(--blue); color: #fff; }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b52a2a; color: #fff; }
.btn-secondary { background: var(--bg4); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--white); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 11px; }

/* USER MENU */
.user-menu { position: relative; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar:hover { border-color: var(--blue); }
.notif-dot {
  position: absolute;
  top: 0; right: 0;
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg2);
}
.user-dropdown {
  position: absolute;
  right: 0; top: 48px;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 6px;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 9999;
  animation: dropIn 0.15s ease;
  overflow: hidden;
}
.dropdown-user-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.dropdown-user-info strong { display: block; color: var(--white); font-size: 14px; }
.dropdown-user-info span   { font-size: 11px; color: var(--blue-light); }
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--bg3); color: var(--white); }
.dropdown-divider { border-top: 1px solid var(--border); }
.notif-count {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: auto;
}
.hidden { display: none !important; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
#main-wrap { max-width: 1260px; margin: 0 auto; padding: 16px; }
#page-inner { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
#page-inner.no-sidebar { grid-template-columns: 1fr; }
#main-content { min-width: 0; }
#sidebar { min-width: 0; }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--blue-light); }
.breadcrumb .sep { color: var(--text3); }

/* PAGE HEADER */
.page-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.page-hdr h1 {
  font-family: var(--h-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.page-hdr-actions { display: flex; gap: 8px; }

/* ============================================================
   FORUM INDEX
   ============================================================ */
.forum-category { margin-bottom: 18px; }
.cat-header {
  background: linear-gradient(90deg, rgba(26,95,176,0.7) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: 5px 5px 0 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.cat-header h2 {
  font-family: var(--h-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
}
.cat-toggle {
  color: var(--text2);
  font-size: 16px;
  transition: transform 0.2s;
}
.cat-toggle.collapsed { transform: rotate(-90deg); }
.forum-list {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}
.forum-row {
  display: grid;
  grid-template-columns: 42px 1fr 90px 90px;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--bg3); }
.forum-icon-cell {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.forum-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border);
}
.forum-info { padding: 10px 12px 10px 0; }
.forum-name { font-weight: 600; color: var(--white); margin-bottom: 2px; font-size: 13.5px; }
.forum-name a { color: var(--white); }
.forum-name a:hover { color: var(--blue-light); }
.forum-desc { font-size: 12px; color: var(--text2); margin-bottom: 3px; }
.forum-subs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 3px; }
.forum-sub-tag {
  font-size: 11px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--text3);
}
.forum-latest { font-size: 11.5px; color: var(--text2); }
.forum-latest a { color: var(--blue-light); font-size: 11.5px; }
.forum-stat {
  padding: 10px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.forum-stat .count {
  font-family: var(--m-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.forum-stat .label { font-size: 11px; color: var(--text2); }

/* ============================================================
   THREAD LIST
   ============================================================ */
.thread-list-wrap { border: 1px solid var(--border); border-radius: 5px; overflow: hidden; margin-bottom: 14px; }
.thread-list-head {
  display: grid;
  grid-template-columns: 36px 1fr 72px 72px 160px;
  gap: 0;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.thread-row-wrap {
  display: grid;
  grid-template-columns: 36px 1fr 72px 72px 160px;
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.thread-row-wrap:last-child { border-bottom: none; }
.thread-row-wrap:hover { background: var(--bg3); }
.thread-row-wrap.sticky { border-left: 3px solid var(--gold); }
.thread-row-wrap.locked { opacity: 0.8; }
.thread-status-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 4px 12px 12px;
  color: var(--blue-light);
  font-size: 16px;
}
.thread-status-col.read { color: var(--text3); }
.thread-info-col { padding: 10px 12px; }
.thread-title-line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 3px; }
.thread-title {
  font-weight: 600;
  color: var(--white);
  font-size: 13.5px;
  line-height: 1.3;
}
.thread-title:hover { color: var(--blue-light); }
.thread-meta { font-size: 11.5px; color: var(--text2); }
.thread-meta a { color: var(--blue-light); }
.thread-stat-col {
  text-align: center;
  padding: 10px;
  border-left: 1px solid var(--border);
  font-family: var(--m-font);
  font-size: 13px;
  color: var(--white);
}
.thread-stat-col small { display: block; font-size: 10px; color: var(--text2); font-family: var(--b-font); }
.thread-last-col {
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text2);
  text-align: right;
  border-left: 1px solid var(--border);
}
.thread-last-col a { color: var(--blue-light); }
.thread-last-col .time { display: block; margin-top: 2px; }

/* PREFIX BADGES */
.prefix-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-new      { background: var(--blue); color: #fff; }
.badge-pending  { background: var(--orange); color: #fff; }
.badge-accepted { background: var(--green); color: #fff; }
.badge-declined { background: var(--red); color: #fff; }
.badge-closed   { background: var(--text3); color: #fff; }

/* ============================================================
   THREAD VIEW / POSTS
   ============================================================ */
.thread-view-header {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.thread-view-header h1 {
  font-family: var(--h-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.thread-view-meta {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--text2);
  flex-wrap: wrap;
  align-items: center;
}
.thread-mod-actions { display: flex; gap: 6px; margin-left: auto; }

.post-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
}
.post-wrap:target { border-color: var(--blue); }
.post-author {
  background: var(--bg3);
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.post-avatar-lg {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  border: 2px solid var(--border2);
}
.post-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.post-username { font-weight: 700; color: var(--white); font-size: 13px; word-break: break-word; }
.post-username a { color: var(--white); }
.post-username a:hover { color: var(--blue-light); }
.post-role { font-size: 11px; color: var(--blue-light); font-weight: 600; }
.post-stats { font-size: 11px; color: var(--text2); line-height: 1.9; margin-top: 5px; }

.role-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.role-admin  { background: rgba(214,51,51,.2); color: #e85555; border: 1px solid rgba(214,51,51,.35); }
.role-mod    { background: rgba(212,120,32,.2); color: #e09040; border: 1px solid rgba(212,120,32,.35); }
.role-member { background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); }

.post-body-wrap { padding: 14px 18px; }
.post-date-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text2);
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.post-num { font-family: var(--m-font); }
.post-content { color: var(--text); font-size: 13.5px; line-height: 1.75; word-break: break-word; }
.post-content p { margin-bottom: 8px; }
.post-content strong { color: var(--white); }
.post-content em { color: var(--text); }
.post-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 8px 12px;
  background: var(--bg3);
  border-radius: 0 4px 4px 0;
  margin: 8px 0;
  color: var(--text2);
}
.post-content blockquote cite { display: block; font-size: 11.5px; color: var(--blue-light); margin-bottom: 4px; font-style: normal; font-weight: 600; }
.post-content pre { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 10px 14px; overflow-x: auto; margin: 8px 0; }
.post-content code { font-family: var(--m-font); font-size: 12.5px; color: var(--gold); }
.post-content .post-image { max-width: 100%; border-radius: 4px; margin-top: 6px; }
.post-signature { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text2); }
.post-actions { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.post-action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.post-action-btn:hover { border-color: var(--blue); color: var(--blue-light); }
.post-action-btn.danger:hover { border-color: var(--red); color: var(--red); }

/* REPLY BOX */
.reply-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px;
  margin-top: 14px;
}
.reply-box h3 { font-family: var(--h-font); font-size: 1.1rem; color: var(--white); margin-bottom: 12px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--white);
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s;
  font-size: 13.5px;
}
.form-control:focus { border-color: var(--blue); }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.6; }
select.form-control { appearance: none; cursor: pointer; }
.form-hint { font-size: 11.5px; color: var(--text2); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* EDITOR TOOLBAR */
.editor-toolbar {
  display: flex;
  gap: 3px;
  padding: 6px 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  flex-wrap: wrap;
}
.editor-toolbar + .form-control { border-radius: 0 0 4px 4px; }
.tb-btn {
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.12s;
}
.tb-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* PREFIX SELECT */
.prefix-select-row { display: flex; gap: 6px; flex-wrap: wrap; }
.prefix-opt {
  padding: 4px 11px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.12s;
  user-select: none;
}
.prefix-opt:hover, .prefix-opt.selected { transform: scale(1.05); border-color: rgba(255,255,255,0.4); }

/* ALERTS */
.alert {
  padding: 11px 16px;
  border-radius: 5px;
  font-size: 13.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-info    { background: rgba(26,111,196,.15); border: 1px solid rgba(26,111,196,.4); color: #7bbdf0; }
.alert-success { background: rgba(39,168,90,.12); border: 1px solid rgba(39,168,90,.4); color: #5dd68b; }
.alert-error   { background: rgba(214,51,51,.12); border: 1px solid rgba(214,51,51,.4); color: #e87070; }
.alert-warning { background: rgba(232,192,64,.1); border: 1px solid rgba(232,192,64,.35); color: var(--gold); }
.alert-locked  { background: rgba(100,100,100,.1); border: 1px solid var(--border2); color: var(--text2); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.page-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 11px;
  border-radius: 3px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
  display: inline-block;
}
.page-btn:hover { border-color: var(--blue); color: var(--white); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 14px;
  overflow: hidden;
}
.sw-header {
  background: var(--bg3);
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sw-body { padding: 10px 14px; }
.sw-empty { font-size: 12px; color: var(--text2); }

/* Online */
.online-names { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.online-name { font-size: 12.5px; padding: 2px 6px; border-radius: 3px; }
.online-name.role-admin { color: #e85555; background: rgba(214,51,51,.1); }
.online-name.role-moderator { color: #e09040; background: rgba(212,120,32,.1); }
.online-name.role-member { color: var(--blue-light); }
.online-total { font-size: 11.5px; color: var(--text2); }

/* Latest posts */
.latest-post-item { padding: 6px 0; border-bottom: 1px solid var(--border); }
.latest-post-item:last-child { border-bottom: none; }
.lp-title { font-size: 12.5px; color: var(--white); display: block; margin-bottom: 2px; font-weight: 500; }
.lp-title:hover { color: var(--blue-light); }
.lp-meta { font-size: 11px; color: var(--text2); }
.lp-meta a { color: var(--blue-light); font-size: 11px; }

/* Profile posts */
.profile-post-item { display: flex; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border); align-items: center; }
.profile-post-item:last-child { border-bottom: none; }
.pp-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; overflow: hidden; }
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-info { min-width: 0; }
.pp-info a { font-size: 12.5px; color: var(--white); font-weight: 600; display: block; }
.pp-info a:hover { color: var(--blue-light); }
.pp-info span { font-size: 11px; color: var(--text2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stats */
.stat-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: var(--text2); }
.stat-row strong { color: var(--white); font-family: var(--m-font); }
.stat-row a { color: var(--blue-light); }

/* Share buttons */
.share-buttons { display: flex; gap: 6px; }
.share-btn {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.8; color: #fff; }
.share-x  { background: #000; }
.share-fb { background: #1877f2; }
.share-rd { background: #ff4500; }
.share-tg { background: #2ca5e0; }

/* ============================================================
   MEMBERS PAGE
   ============================================================ */
.members-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.members-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg3);
  color: var(--text2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.members-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.members-table tr:last-child td { border-bottom: none; }
.members-table tr:hover td { background: rgba(255,255,255,.02); }
.member-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  overflow: hidden; vertical-align: middle; margin-right: 8px;
}
.member-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.online-indicator { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.online-indicator.online { background: var(--green); box-shadow: 0 0 4px var(--green); }
.online-indicator.offline { background: var(--text3); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.profile-avatar-xl {
  width: 88px; height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
  overflow: hidden;
  border: 3px solid var(--blue);
}
.profile-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h1 { font-family: var(--h-font); font-size: 1.7rem; color: var(--white); margin-bottom: 4px; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); margin-top: 8px; }
.profile-bio { font-size: 13.5px; color: var(--text); margin-top: 10px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 16px; max-width: 1260px; margin: 0 auto; padding: 16px; }
.admin-sidebar-nav {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.admin-nav-header {
  background: var(--red);
  padding: 11px 14px;
  font-family: var(--h-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-nav-section { padding: 6px 0; border-bottom: 1px solid var(--border); }
.admin-nav-section:last-child { border-bottom: none; }
.admin-nav-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px 4px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  transition: background 0.12s;
}
.admin-nav-link:hover { background: var(--bg3); color: var(--blue-light); }
.admin-nav-link.active { background: var(--bg3); color: var(--white); font-weight: 600; }
.admin-main-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 20px;
}
.admin-section-title {
  font-family: var(--h-font);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 14px;
  text-align: center;
}
.admin-stat-num { font-family: var(--m-font); font-size: 1.9rem; font-weight: 700; color: var(--blue-light); }
.admin-stat-label { font-size: 12px; color: var(--text2); margin-top: 3px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg3);
  color: var(--text2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.table-actions { display: flex; gap: 5px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 30px;
}
.footer-inner { max-width: 1260px; margin: 0 auto; padding: 20px 16px 14px; }
.footer-top { display: flex; gap: 40px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links-group { display: flex; flex-direction: column; gap: 5px; }
.footer-links-group strong { font-size: 12.5px; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.footer-links-group a { font-size: 12.5px; color: var(--text2); }
.footer-links-group a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text2); }
.footer-xf { font-size: 11.5px; color: var(--text3); }
.footer-disclaimer { margin-top: 8px; font-size: 11px; color: var(--text3); text-align: center; }

/* ============================================================
   MISC
   ============================================================ */
.empty-state { text-align: center; padding: 40px; color: var(--text2); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 10px; }
.empty-state p { font-size: 13.5px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  #page-inner { grid-template-columns: 1fr; }
  #sidebar { position: static; }
}
@media (max-width: 760px) {
  .post-wrap { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; padding: 10px 14px; border-right: none; border-bottom: 1px solid var(--border); gap: 12px; }
  .post-author { text-align: left; align-items: center; }
  .thread-list-head { grid-template-columns: 30px 1fr 60px; }
  .thread-list-head > *:nth-child(4),
  .thread-list-head > *:nth-child(5) { display: none; }
  .thread-row-wrap { grid-template-columns: 30px 1fr 60px; }
  .thread-row-wrap > *:nth-child(4),
  .thread-row-wrap > *:nth-child(5) { display: none; }
  .admin-wrap { grid-template-columns: 1fr; }
  .forum-row { grid-template-columns: 42px 1fr; }
  .forum-stat { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .header-top { flex-wrap: wrap; }
  .header-search { max-width: 100%; order: 3; width: 100%; margin: 0; }
}
