/* =========================================================
   PatchRays Community Forum — Premium Stylesheet (v3)
   Modern, glassmorphism, smooth transitions, premium feel
   ========================================================= */

/* ── Shared layout wrapper ── */
.pf-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  animation: pfFadeIn 0.4s ease;
}
@keyframes pfFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pf-wrap--narrow { max-width: 700px; }
.pf-wrap--medium { max-width: 960px; }

/* ── Buttons ── */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
}
.pf-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.pf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.pf-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}
.pf-btn-secondary:hover {
  border-color: var(--brand-main);
  color: var(--brand-main);
  background: rgba(99,102,241,0.06);
}

/* ── Breadcrumb / Topnav ── */
.pf-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pf-topnav a { color: var(--brand-main); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.pf-topnav a:hover { color: #818cf8; }
.pf-topnav span.sep { color: var(--text-muted); margin: 0 0.3rem; font-size: 0.8rem; }
.pf-topnav-brand { font-size: 0.95rem; font-weight: 600; }
.pf-topnav-brand a { color: var(--text-main); }

/* ── Forum Hero ── */
.pf-hero {
  margin-bottom: 2rem;
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.pf-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}
.pf-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  position: relative;
}
.pf-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

/* ── Board page hero ── */
.pf-board-hero {
  margin-bottom: 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.pf-board-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.pf-board-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 6px 0 0;
}

/* ── Flash messages ── */
.pf-flash-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.pf-flash-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* ── Empty state ── */
.pf-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.pf-empty i { font-size: 3rem; opacity: 0.2; display: block; margin-bottom: 1rem; }
.pf-empty a { color: var(--brand-main); font-weight: 600; }

/* ══════════════════════════════════════════
   FORUM DIRECTORY TABLE (Index Page)
   ══════════════════════════════════════════ */

.pf-forum-directory {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.dark-mode .pf-forum-directory {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Header row */
.pf-dir-header-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 220px;
  gap: 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pf-dir-col-last { text-align: left; }
.pf-dir-col-stat { text-align: center; }

/* Category divider */
.pf-dir-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(99,102,241,0.06);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pf-dir-category-row i {
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.12);
  border-radius: 8px;
}
.pf-dir-cat-desc {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Board rows */
.pf-dir-board-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 220px;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
  min-height: 68px;
}
.pf-dir-board-row:last-child { border-bottom: none; }
.pf-dir-board-row:hover {
  background: rgba(99,102,241,0.03);
}

.pf-dir-col-board {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
}
.pf-dir-board-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-main);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.pf-dir-board-row:hover .pf-dir-board-icon {
  transform: scale(1.08);
}
.pf-dir-board-info { min-width: 0; }
.pf-dir-board-name {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text-main);
  text-decoration: none;
  display: block;
  line-height: 1.3;
  transition: color 0.15s;
}
.pf-dir-board-name:hover { color: var(--brand-main); }
.pf-dir-board-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Stats columns */
.pf-dir-col-stat {
  text-align: center;
  padding: 14px 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.pf-dir-col-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.pf-dir-col-stat span { font-size: 0.7rem; text-transform: lowercase; }

/* Last post cell */
.pf-dir-col-last { padding: 14px 20px 14px 8px; }
.pf-dir-last-inner { display: flex; align-items: flex-start; gap: 10px; }
.pf-dir-last-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.pf-dir-last-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: block;
  line-height: 1.35;
  margin-bottom: 3px;
  word-break: break-word;
  transition: color 0.15s;
}
.pf-dir-last-title:hover { color: var(--brand-main); }
.pf-dir-last-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pf-dir-last-meta strong { color: var(--text-secondary); }
.pf-dir-last-meta i { vertical-align: middle; font-size: 0.75rem; }
.pf-dir-no-post { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* ══════════════════════════════════════════
   THREAD LIST (Board Page)
   ══════════════════════════════════════════ */

.pf-threads {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.dark-mode .pf-threads {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pf-thread-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px 100px;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 70px;
  transition: background 0.2s;
}
.pf-thread-row:last-child { border-bottom: none; }
.pf-thread-row:hover { background: rgba(99,102,241,0.03); }

.pf-thread-title { padding: 14px 20px; }
.pf-thread-title a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
  transition: color 0.15s;
}
.pf-thread-title a:hover { color: var(--brand-main); }

.pf-thread-stat {
  text-align: center;
  padding: 14px 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.pf-thread-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.pf-thread-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Badges */
.pf-badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.pf-badge-locked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* Badges in thread view */
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pf-badge-info { background: rgba(99,102,241,0.1); color: #6366f1; }

/* ══════════════════════════════════════════
   THREAD VIEW — Post Cards
   ══════════════════════════════════════════ */

.pf-thread-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.pf-thread-title-h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pf-thread-date-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Post card layout */
.pf-post {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pf-post:target {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* Post sidebar */
.pf-post-sidebar {
  background: rgba(99,102,241,0.03);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* Avatar */
.pf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.pf-avatar--lg {
  width: 54px;
  height: 54px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
  margin-bottom: 4px;
}

.pf-post-sidebar .pf-author-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
  word-break: break-word;
}
.pf-author-role { margin-top: 2px; }
.pf-sidebar-stats {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-sidebar-stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Role badges */
.pf-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.pf-role-admin {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.pf-role-mod {
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}
.pf-role-user {
  background: rgba(100,116,139,0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Post main area */
.pf-post-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pf-post-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(99,102,241,0.02);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pf-post-num {
  font-weight: 700;
  color: var(--brand-main);
  font-size: 0.8rem;
}
.pf-post-link { color: inherit; text-decoration: none; }
.pf-post-link:hover { text-decoration: underline; }
.pf-post-timestamp { display: flex; align-items: center; gap: 4px; }

.pf-post-body {
  padding: 20px;
  line-height: 1.8;
  color: var(--text-main);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

/* Post footer (reactions + reply) */
.pf-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

/* Reactions */
.pf-reactions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.pf-react-btn:hover {
  border-color: var(--brand-main);
  background: rgba(99,102,241,0.08);
  color: var(--brand-main);
  transform: scale(1.1);
}
.pf-react-btn.pf-react-active {
  background: rgba(99,102,241,0.14);
  border-color: var(--brand-main);
  color: var(--brand-main);
  font-weight: 600;
}
.pf-react-emoji { font-size: 0.95rem; }
.pf-react-label { font-size: 0.68rem; }
.pf-react-count { font-size: 0.68rem; font-weight: 700; min-width: 10px; text-align: center; }

.pf-quote-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.pf-quote-reply-btn:hover {
  color: var(--brand-main);
  border-color: var(--brand-main);
  background: rgba(99,102,241,0.06);
}

/* Replies heading */
.pf-replies-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin: 28px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.pf-replies-heading i { color: var(--brand-main); }

/* ── Notices ── */
.pf-locked-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  color: #dc2626;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 20px;
}
.dark-mode .pf-locked-notice { color: #f87171; }

.pf-login-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 20px 24px;
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 20px;
}
.pf-login-notice a { color: var(--brand-main); font-weight: 600; text-decoration: none; }
.pf-login-notice a:hover { text-decoration: underline; }
.pf-login-notice i { font-size: 1.5rem; color: var(--text-muted); flex-shrink: 0; }

.pf-link-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.3);
  border-left: 4px solid #f59e0b;
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.55;
}
.pf-link-notice i { color: #f59e0b; font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.pf-link-notice strong { color: #b45309; }
.dark-mode .pf-link-notice strong { color: #fbbf24; }

/* ══════════════════════════════════════════
   FORMS (New Thread, Reply)
   ══════════════════════════════════════════ */

.pf-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.pf-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.pf-form-card h1 {
  margin: 0 0 24px;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-field { margin-bottom: 20px; }
.pf-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.88rem;
}
.pf-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.pf-input:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.pf-input::placeholder { color: var(--text-muted); }
textarea.pf-input { resize: vertical; min-height: 180px; line-height: 1.65; }
textarea.pf-input-sm { min-height: 100px; }
.pf-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* Reply form */
.pf-reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  position: relative;
}
.pf-reply-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 16px 16px 0 0;
}
.pf-reply-form h3 {
  margin: 12px 0 16px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-reply-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pf-post-date { font-size: 0.75rem; color: var(--text-muted); }

/* Action buttons */
.pf-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.pf-btn-submit {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.pf-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.pf-btn-cancel {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.pf-btn-cancel:hover {
  background: rgba(99,102,241,0.06);
  color: var(--text-main);
  border-color: var(--brand-main);
}

/* ── Pagination ── */
.pf-pagination {
  display: flex;
  gap: 6px;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pf-page-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
}
.pf-page-btn:hover,
.pf-page-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.pf-page-btn.disabled { opacity: 0.3; pointer-events: none; }

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 700px) {
  .pf-dir-header-row { display: none; }
  .pf-dir-board-row {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .pf-dir-col-board { border-bottom: 1px solid var(--border); }
  .pf-dir-col-stat, .pf-dir-col-last {
    padding: 8px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .pf-dir-col-last { border-top: 1px solid var(--border); }

  .pf-thread-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pf-thread-stat { text-align: left; padding: 6px 20px; }
}

@media (max-width: 640px) {
  .pf-post {
    grid-template-columns: 1fr;
  }
  .pf-post-sidebar {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 12px;
    justify-content: flex-start;
  }
  .pf-post-sidebar .pf-author-name { font-size: 0.85rem; }
  .pf-avatar--lg { width: 40px; height: 40px; font-size: 0.9rem; margin-bottom: 0; }
  .pf-sidebar-stats { flex-direction: row; }
  .pf-author-role { margin-top: 0; }
  .pf-form-card { padding: 20px; }
  .pf-wrap { padding: 1.5rem 1rem 3rem; }
}
