/* ============================================================
   Forum CSS – TorrentGalaxy-style forum layout
   Matches TGX class names: forumtab, forumhead, subforumhead,
   f-row, f-cat, f-img, alt1, alt2, alt3, clickable-row, etc.
   Uses txlight / txdark theme classes from tgxstylist.css
   ============================================================ */

/* ---- Outer Panel Wrapper ---- */
.panel.outer {
  margin-bottom: 15px;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.panel.outer.txlight {
  border-color: #5a7332;
}
.panel.outer.txdark {
  border-color: #3c4827;
}

/* ---- Panel Heading ---- */
.panel-heading.txlight {
  background-color: #5a7332;
  color: #fff;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 15px;
}
.panel-heading.txdark {
  background-color: #3c4827;
  color: #d8cab7;
}

.headericon {
  margin-right: 6px;
  font-size: 16px;
}

/* ---- Breadcrumb ---- */
.breadcrumb.txlight {
  background-color: #f5f5f5;
  border-radius: 0;
  margin-bottom: 0;
  padding: 8px 15px;
  font-size: 13px;
}
.breadcrumb.txdark {
  background-color: #383838;
  color: #adadad;
}
.breadcrumb.txlight a {
  color: #337ab7;
}
.breadcrumb.txdark a {
  color: #5d87ab;
}

/* Buttons inside breadcrumb (New Posts, Mark all read) */
.viewunread {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-left: 4px;
}
.viewunread:hover {
  background-color: #ddd;
  text-decoration: none;
  color: #333;
}
.viewunread.txdark {
  background-color: #444;
  border-color: #555;
  color: #adadad;
}
.viewunread.txdark:hover {
  background-color: #555;
}

/* ---- Section Wrappers ---- */
.f-border {
  margin-bottom: 15px;
}
.f-border.f-latestpost {
  margin-bottom: 20px;
}
.f-border.f-forums {
  margin-bottom: 20px;
}

/* ---- Forum Table ---- */
.table.forumtab {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}
.table.forumtab.txlight {
  background-color: #fff;
}
.table.forumtab.txdark {
  background-color: #2f2f2f;
}

/* ---- Table Header Row ---- */
.f-title {
  /* Applied to <tr> inside <thead> */
}
.f-title .forumhead {
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border: none;
  text-transform: none;
}
.forumhead.txlight {
  background-color: #c2c2a3;
  color: #333;
}
.forumhead.txdark {
  background-color: #3f3b50;
  color: #a5a5a5;
}

/* ---- Category Separator Row ---- */
.f-cat.subforumhead.txlight {
  background-color: #5a7332;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 8px 10px;
}
.f-cat.subforumhead.txdark {
  background-color: #3c4827;
  color: #d8cab7;
}
td.f-cat.subforumhead {
  text-align: center;
}

/* ---- Forum Rows ---- */
.f-row {
  /* Applied to <tr> */
}
.f-row td {
  padding: 8px 10px;
  vertical-align: middle;
  font-size: 13px;
  border-top: 1px solid #ddd;
}
.f-row.txdark td {
  border-top-color: #444;
}

/* Alternating row colours via nth-child */
.table.forumtab.txlight tbody tr.f-row:nth-child(even) {
  background-color: #f6f6f6;
}
.table.forumtab.txlight tbody tr.f-row:nth-child(odd) {
  background-color: #e9e9e9;
}
.table.forumtab.txlight tbody tr.f-row:hover {
  background-color: #ddd;
}
.table.forumtab.txdark tbody tr.f-row:nth-child(even) {
  background-color: #292929;
}
.table.forumtab.txdark tbody tr.f-row:nth-child(odd) {
  background-color: #38333c;
}
.table.forumtab.txdark tbody tr.f-row:hover {
  background-color: #4e4e40;
}

/* Clickable rows */
.clickable-row {
  cursor: pointer;
}

/* ---- Cell Classes ---- */
.f-img {
  width: 40px;
  text-align: center;
  font-size: 28px;
  color: #5a7332;
  vertical-align: middle;
}
.f-img.txdark {
  color: #7a9a42;
}

.alt1 {
  /* Forum name + description cell */
  font-size: 13px;
}
.alt1 a {
  font-weight: 600;
  font-size: 14px;
}
.alt1 .forum-desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.alt1 .forum-desc.txdark {
  color: #777;
}

.alt2 {
  /* Topics / Author cells */
  width: 80px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.alt3 {
  /* Posts / Date cells */
  width: 120px;
  text-align: center;
  font-size: 12px;
}

/* Last post cell (wider) */
.alt3.lastpost {
  width: 200px;
  text-align: left;
  font-size: 12px;
}

/* ---- Badges ---- */
.badge.txlight {
  background-color: #5a7332;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
}
.badge.txdark {
  background-color: #3c4827;
  color: #d8cab7;
}

/* ---- Username Role Classes ---- */
.username {
  font-weight: 700;
  font-size: 13px;
}
.username.user {
  color: #337ab7;
}
.username.trusted-user.txlight {
  color: #5a7332;
}
.username.trusted-user.txdark {
  color: #7a9a42;
}
.username.super-admin.txlight {
  color: #cc0000;
  text-shadow: 0 0 4px rgba(204,0,0,0.3);
}
.username.super-admin.txdark {
  color: #ff4444;
}
.username.admin.txlight {
  color: #cc0000;
}
.username.admin.txdark {
  color: #ff4444;
}
.username.trusted-uploader.txlight {
  color: #e68a00;
}
.username.trusted-uploader.txdark {
  color: #ffb347;
}
.username.verified-uploader.txlight {
  color: #2980b9;
}
.username.verified-uploader.txdark {
  color: #5dade2;
}
.username.trial-uploader.txlight {
  color: #8e44ad;
}
.username.trial-uploader.txdark {
  color: #bb8fce;
}

/* ---- Legend ---- */
.forum-legend {
  padding: 10px 15px;
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.forum-legend.txdark {
  color: #999;
}
.forum-legend i {
  margin-right: 4px;
  font-size: 16px;
  color: #5a7332;
}
.forum-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- Quick Jump ---- */
.forum-quickjump {
  margin-top: 10px;
  padding: 8px 15px;
  font-size: 13px;
}
.forum-quickjump select {
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-left: 6px;
}
.forum-quickjump select.txdark {
  background-color: #444;
  border-color: #555;
  color: #ccc;
}

/* ===================================================================
   LEGACY / SHARED STYLES (kept for topic_detail, profile, etc.)
   =================================================================== */

/* ---- General Layout ---- */

/* Flex layout for sidebar + content alignment.
   Ensures Hot Picks sidebar stretches to match content height
   even when it has no/little data loaded.
   The hotpicks.html include puts a <script> between the two columns;
   we hide it from flex layout. */
@media (min-width: 999px) {
  .forum-layout {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .forum-layout > script,
  .forum-layout > comment {
    display: none;
  }
  .forum-layout > .col-lg-2,
  .forum-layout > .col-lg-10 {
    float: none;
    display: block;
  }
  .forum-layout > .col-lg-2 {
    width: 16.66667%;
    min-width: 160px;
    max-width: 445px;
    flex-shrink: 0;
  }
  .forum-layout > .col-lg-2 > .panel {
    min-height: 100%;
  }
  .forum-layout > .col-lg-10 {
    width: 83.33333%;
    flex: 1;
  }
}

.forum-wrapper {
  padding: 0;
}

/* ---- Old forum-table (still used by category_detail topic list) ---- */
.forum-table {
  width: 100%;
  margin-bottom: 15px;
  border-collapse: collapse;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.forum-table th,
.forum-table td {
  padding: 8px 12px;
  vertical-align: middle;
  font-size: 13px;
}
.forum-table thead th {
  font-weight: 700;
  color: #fff;
  border: none;
}
.forum-table thead.forum-cat-header th {
  background-color: #3c4827;
  color: #d8cab7;
  font-size: 14px;
  padding: 10px 12px;
}
.forum-cat-header.txlight th {
  background-color: #5a7332;
  color: #fff;
}
.forum-table thead.forum-col-header th {
  background-color: #c2c2a3;
  color: #333;
  font-size: 12px;
  font-weight: 600;
}
.forum-col-header.txdark th {
  background-color: #3f3b50;
  color: #a5a5a5;
}
.forum-table tbody tr:nth-child(even) {
  background-color: #f6f6f6;
}
.forum-table tbody tr:nth-child(odd) {
  background-color: #e9e9e9;
}
.forum-table tbody tr:hover {
  background-color: #ddd;
}
.forum-table.txdark tbody tr:nth-child(even) {
  background-color: #292929;
}
.forum-table.txdark tbody tr:nth-child(odd) {
  background-color: #38333c;
}
.forum-table.txdark tbody tr:hover {
  background-color: #4e4e40;
}
.forum-table.txdark,
.forum-table.txdark td,
.forum-table.txdark th {
  border-color: #444;
}
.forum-table.txdark td {
  color: #adadad;
}
.forum-table.txdark td a {
  color: #5d87ab;
}
.forum-table .col-icon {
  width: 40px;
  text-align: center;
  font-size: 18px;
  color: #5a7332;
}
.forum-table.txdark .col-icon {
  color: #7a9a42;
}
.forum-table .col-count {
  width: 80px;
  text-align: center;
  font-weight: 600;
}
.forum-table .col-lastpost {
  width: 200px;
  font-size: 12px;
}

/* ---- Pinned / Announcement badge ---- */
.topic-status-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ---- Forum Panel ---- */
.forum-panel {
  margin-bottom: 15px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.forum-panel-head {
  padding: 10px 15px;
  font-weight: 700;
  font-size: 14px;
  background-color: #3c4827;
  color: #d8cab7;
}
.forum-panel-head.txlight {
  background-color: #5a7332;
  color: #fff;
}
.forum-panel-head.txdark {
  background-color: #3c4827;
  color: #d8cab7;
}
.forum-panel-head.blue {
  background-color: #2980b9;
  color: #fff;
}
.forum-panel-head.blue.txdark {
  background-color: #1e4c73;
  color: #b7b7b7;
}
.forum-panel-body {
  padding: 15px;
  background-color: #fff;
}
.forum-panel-body.txdark {
  background-color: #2f2f2f;
  color: #adadad;
}

/* ---- Post Layout (phpBB style: user left, content right) ---- */
.post-row {
  display: flex;
  margin-bottom: 0;
  border-bottom: 1px solid #ddd;
}
.post-row.txdark {
  border-bottom-color: #444;
}
.post-user-col {
  width: 180px;
  min-width: 180px;
  padding: 12px;
  text-align: center;
  background-color: #f0f0f0;
  border-right: 1px solid #ddd;
  font-size: 12px;
}
.post-user-col.txdark {
  background-color: #2a2a2a;
  border-right-color: #444;
  color: #adadad;
}
.post-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 8px;
  object-fit: cover;
  border: 3px solid #d3d3d3;
}
.post-user-avatar.txdark {
  border-color: #696969;
}
.post-user-name {
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.post-user-name a {
  color: #337ab7;
  text-decoration: none;
}
.post-user-name a:hover {
  text-decoration: underline;
}
.post-user-name.txdark a {
  color: #5d87ab;
}
.post-user-title {
  font-size: 11px;
  margin-bottom: 4px;
  color: #888;
}
.post-user-stats {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
}
.post-user-stats.txdark {
  color: #777;
}
.post-content-col {
  flex: 1;
  padding: 12px 15px;
  min-width: 0;
  background-color: #fff;
}
.post-content-col.txdark {
  background-color: #2f2f2f;
  color: #adadad;
}
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #999;
}
.post-header.txdark {
  border-bottom-color: #444;
  color: #777;
}
.post-body {
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.post-body blockquote,
.post-body .forum-quote {
  background-color: #f0f0f0;
  border-left: 4px solid #337ab7;
  padding: 10px 15px;
  margin: 10px 0;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
}
.post-body blockquote.txdark,
.forum-quote.txdark {
  background-color: #3a3a3a;
  border-left-color: #5d87ab;
  color: #bbb;
}
.forum-quote .quote-header {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #ccc;
}
.forum-quote .quote-body {
  font-style: italic;
}
.forum-code {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 13px;
  overflow-x: auto;
}
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 12px;
}
.post-footer.txdark {
  border-top-color: #444;
}
.post-signature {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
  font-size: 12px;
  color: #888;
  font-style: italic;
}
.post-signature.txdark {
  border-top-color: #555;
  color: #777;
}

/* ---- Vote Buttons ---- */
.vote-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vote-btn {
  cursor: pointer;
  padding: 2px 6px;
  border: none;
  background: none;
  font-size: 16px;
  color: #888;
  transition: color 0.2s;
}
.vote-btn:hover {
  color: #333;
}
.vote-btn.txdark:hover {
  color: #ddd;
}
.vote-btn.upvote.active {
  color: #27ae60;
}
.vote-btn.downvote.active {
  color: #e74c3c;
}
.vote-score {
  font-weight: 700;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}
.vote-score.positive {
  color: #27ae60;
}
.vote-score.negative {
  color: #e74c3c;
}

/* ---- Reply / Quick Reply Box ---- */
.forum-reply-box {
  margin-top: 15px;
}
.forum-reply-box textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
  font-family: 'Ubuntu', sans-serif;
  resize: vertical;
  min-height: 120px;
}
.forum-reply-box textarea.txdark {
  background-color: #423b48;
  border-color: #5f5656;
  color: #bfbfbf;
}

/* ---- BB Code Toolbar ---- */
.bbcode-toolbar {
  padding: 4px 0;
  margin-bottom: 5px;
}
.bbcode-toolbar .btn {
  margin: -2px -1px;
  padding: 5px 10px;
  font-size: 12px;
}

/* ---- User Profile Card ---- */
.profile-card {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.profile-avatar-lg {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  border: 5px solid #d3d3d3;
}
.profile-avatar-lg.txdark {
  border-color: #696969;
}
.profile-info h3 {
  margin-top: 0;
}
.profile-stat {
  display: inline-block;
  text-align: center;
  padding: 8px 15px;
  margin: 0 5px 5px 0;
  border-radius: 4px;
  background-color: #f0f0f0;
}
.profile-stat.txdark {
  background-color: #383838;
  color: #adadad;
}
.profile-stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  display: block;
}
.profile-stat .stat-label {
  font-size: 11px;
  color: #888;
}

/* ---- Notification List ---- */
.notification-row {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
}
.notification-row:hover {
  background-color: #f5f5f5;
}
.notification-row.txdark {
  border-bottom-color: #444;
}
.notification-row.txdark:hover {
  background-color: #383838;
}
.notification-row.unread {
  background-color: #eef7ff;
}
.notification-row.unread.txdark {
  background-color: #1e3a4f;
}
.notification-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
}
.notification-icon.reply { color: #27ae60; }
.notification-icon.mention { color: #f39c12; }
.notification-icon.quote { color: #3498db; }
.notification-icon.moderation { color: #e74c3c; }

/* ---- Search ---- */
.search-box {
  margin-bottom: 15px;
}
.search-box .input-group {
  max-width: 600px;
}
.search-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}
.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
.search-result-item.txdark {
  border-bottom-color: #444;
}
.search-result-item:hover {
  background-color: #f9f9f9;
}
.search-result-item.txdark:hover {
  background-color: #383838;
}
.search-highlight {
  background-color: rgba(255, 255, 0, 0.25);
  padding: 1px 2px;
  border-radius: 2px;
}

/* ---- Pagination ---- */
.forum-pagination {
  text-align: center;
  margin: 15px 0;
}

/* ---- Topic Form ---- */
.forum-form .form-group {
  margin-bottom: 15px;
}
.forum-form label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.forum-form .form-control {
  border-radius: 4px;
}
.forum-form .form-control.txdark {
  background-color: #444;
  border-color: dimgrey;
  color: #c7c7c7;
}

/* ---- Subscribe Button ---- */
.btn-subscribe {
  transition: all 0.2s;
}
.btn-subscribe.subscribed {
  background-color: #27ae60;
  border-color: #27ae60;
  color: #fff;
}

/* ---- Misc Helpers ---- */
.forum-muted {
  color: #999;
  font-size: 12px;
}
.forum-muted.txdark {
  color: #777;
}
.text-truncate-forum {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
  display: inline-block;
  vertical-align: middle;
}
.forum-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}
.forum-empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

/* ---- Nested reply indentation ---- */
.post-nested {
  border-left: 3px solid #337ab7;
}
.post-nested.txdark {
  border-left-color: #5d87ab;
}

/* ---- Messages ---- */
.forum-messages {
  margin-bottom: 10px;
}

/* ===================================================================
   TGX POST VIEW STYLES (f-post, p-title, comment-details, etc.)
   =================================================================== */

/* ---- f-post wrapper ---- */
.f-border.f-post {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
}
.f-border.f-post .table {
  margin-bottom: 0;
}

/* ---- f-sub_forum wrapper ---- */
.f-border.f-sub_forum {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
}

/* ---- p-title header row ---- */
.p-title {
  /* dark header bar for each post */
}
.p-title th {
  background-color: #c2c2a3;
  color: #333;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  border: none;
}
.table.txdark .p-title th {
  background-color: #3f3b50;
  color: #a5a5a5;
}

/* ---- comment-details sidebar (150px user info column) ---- */
.comment-details {
  width: 150px;
  min-width: 150px;
  background-color: #f0f0f0;
  vertical-align: top;
  padding: 10px 8px;
  font-size: 12px;
  border-right: 1px solid #ddd;
}
.table.txdark .comment-details {
  background-color: #2a2a2a;
  border-right-color: #444;
  color: #adadad;
}
.comment-details center {
  margin-bottom: 6px;
}
.comment-details h5 {
  font-size: 11px;
  line-height: 1.8;
  margin: 5px 0;
}

/* ---- comment content area ---- */
.comment {
  vertical-align: top;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.table.txdark .comment {
  background-color: #2f2f2f;
  color: #adadad;
}

/* ---- p-foot footer row ---- */
.p-foot td {
  padding: 6px 12px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  font-size: 12px;
}
.table.txdark .p-foot td {
  background-color: #333;
  border-top-color: #444;
}

/* ---- likeboxtr liked-by row ---- */
.likeboxtr td {
  background-color: #fafafa;
  border-top: 1px solid #eee;
  font-size: 12px;
}
.likeboxtr.txdark td {
  background-color: #2a2a2a;
  border-top-color: #444;
  color: #999;
}

/* ---- profile avatar image styling ---- */
img.profile {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
  border: 3px solid #d3d3d3;
  margin-bottom: 6px;
}
img.profile.txdark {
  border-color: #696969;
}
img.profile.dim {
  opacity: 0.95;
}

/* ---- ffbutton fast-forward icon ---- */
.ffbutton {
  margin-left: 4px;
  color: #999;
  cursor: pointer;
}
.ffbutton:hover {
  color: #337ab7;
}
.ffbutton.txdark {
  color: #666;
}
.ffbutton.txdark:hover {
  color: #5d87ab;
}

/* ---- Pagination (TGX style page-item / page-link) ---- */
.pagination.justify-content-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}
.page-item {
  display: inline-block;
}
.page-item .page-link {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 2px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.page-item .page-link.txlight {
  background-color: #f0f0f0;
  color: #333;
}
.page-item .page-link.txdark {
  background-color: #444;
  border-color: #555;
  color: #adadad;
}
.page-item.active .page-link.txlight {
  background-color: #5a7332;
  color: #fff;
  border-color: #5a7332;
}
.page-item.active .page-link.txdark {
  background-color: #3c4827;
  color: #d8cab7;
  border-color: #3c4827;
}
.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.page-item .page-link:hover {
  background-color: #ddd;
  text-decoration: none;
}
.page-item.txdark .page-link:hover {
  background-color: #555;
}

/* ---- Blockquote (TGX quote styling) ---- */
blockquote.txlight {
  background-color: #f5f5f5;
  border-left: 4px solid #5a7332;
  padding: 10px 15px;
  margin: 10px 0;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
}
blockquote.txdark {
  background-color: #3a3a3a;
  border-left-color: #3c4827;
  color: #bbb;
}
blockquote .sub {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 600;
}
blockquote .sub cite {
  color: #337ab7;
  font-style: normal;
  font-weight: 700;
}

/* ---- Quote content well ---- */
.well.txlight#quotes,
.well.txlight {
  background-color: #e8e8e8;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 4px;
}
.well.txdark#quotes,
.well.txdark {
  background-color: #333;
  border-color: #555;
  color: #bbb;
}

/* ---- panel-title inside panel-heading ---- */
h3.panel-title {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}

/* ---- Username moderator class ---- */
.username.moderator.txlight {
  color: #d35400;
}
.username.moderator.txdark {
  color: #e67e22;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .post-row {
    flex-direction: column;
  }
  .post-user-col {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 8px 12px;
  }
  .post-user-col.txdark {
    border-bottom-color: #444;
  }
  .post-user-avatar {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }
  .post-user-stats {
    display: none;
  }
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .col-lastpost {
    display: none;
  }
  .text-truncate-forum {
    max-width: 180px;
  }
  .forum-table .hide-mobile,
  .table.forumtab .hide-mobile {
    display: none;
  }
  .alt2, .alt3 {
    display: none;
  }
  .alt3.lastpost {
    display: none;
  }
  /* TGX post table responsive */
  .comment-details {
    width: 100px;
    min-width: 100px;
  }
  img.profile {
    width: 60px;
    height: 60px;
  }
  .p-title th {
    font-size: 11px;
  }
  .p-title th span[style*="float:right"] {
    float: none !important;
    display: block;
    margin-top: 4px;
  }
}

/* Auth-aware UI */
.auth-required { display: none; }
