/* ===================================================
   GTAVICLUB.COM - ESTILO FORO CLÁSICO DE ALTA DENSIDAD
   =================================================== */

:root {
  --bg-page: #0d1117;
  --bg-header: #161b22;
  --bg-table-header: #1c2128;
  --bg-row-1: #161b22;
  --bg-row-2: #19202a;
  --bg-row-hover: #212836;
  --bg-postbit: #13171f;
  --bg-postcontent: #161b24;
  --bg-quote: #0f131a;
  --border-dark: #30363d;
  --border-light: #444c56;
  --link-color: #58a6ff;
  --link-hover: #79c0ff;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --text-subtle: #6e7681;
  --forum-accent: #d946ef;
  --badge-pinned: #f0883e;
  --font-family: Tahoma, Verdana, Arial, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
}

/* ====================================================
   MAIN HEADER & STREAMLINED SUB-HEADER BAR
   ==================================================== */
.main-header {
  background: linear-gradient(180deg, #161b22 0%, #10131a 100%);
  border-bottom: 2px solid var(--border-dark);
  padding: 12px 0 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.header-branding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
}

.brand-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-title-group {
  display: flex;
  flex-direction: column;
}

.forum-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.forum-logo:hover {
  text-decoration: none;
  color: #fff;
}

.forum-logo .logo-tag {
  color: var(--forum-accent);
}

.forum-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.brand-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-lang-box {
  display: flex;
  align-items: center;
}

.header-lang-select {
  background: #1e2634;
  border: 1px solid var(--border-dark);
  color: #cbd5e1;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.header-lang-select:hover,
.header-lang-select:focus {
  border-color: #38bdf8;
  color: #fff;
}

/* STREAMLINED SUB-HEADER BAR (DIRECTLY BELOW GTAVICLUB TITLE) */
.sub-header-bar {
  background: #0b0e14;
  border-top: 1px solid #1c2432;
  border-bottom: 1px solid var(--border-dark);
  padding: 6px 0;
  font-size: 11.5px;
}

.sub-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sub-local-clock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #151b26;
  border: 1px solid #243042;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.2px;
  white-space: nowrap;
  user-select: none;
  cursor: help;
  transition: all 0.15s ease;
}

.sub-local-clock:hover {
  border-color: #38bdf8;
  color: #fff;
  background-color: #1e2738;
}

.sub-local-clock .clock-icon {
  font-size: 11px;
}

#user-local-clock {
  color: #f1f5f9;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sub-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.sub-online-num {
  color: #34d399;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sub-online-text {
  color: #94a3b8;
}

.sub-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-user-session {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #161e2b;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2px 8px 2px 3px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sub-user-chip:hover {
  background-color: #212c3f;
  border-color: #38bdf8;
  text-decoration: none;
}

.sub-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
}

.sub-username {
  font-weight: 700;
  font-size: 11.5px;
  color: #f1f5f9;
}

.sub-vip-pill {
  font-size: 9px;
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.sub-action-btn {
  background-color: #181f2c;
  border: 1px solid var(--border-dark);
  color: #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sub-action-btn:hover {
  background-color: #263243;
  color: #fff;
  border-color: #38bdf8;
  text-decoration: none;
}

.sub-action-btn.btn-has-unread {
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: bold;
}

.sub-unread-bubble {
  background-color: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 0 5px;
  line-height: 1.3;
}

.sub-btn-invis {
  color: #f0abfc;
}

.sub-btn-invis:hover {
  color: #f5d0fe;
  border-color: #d946ef;
}

.sub-count-bubble {
  background: rgba(217, 70, 239, 0.2);
  color: #f0abfc;
  font-size: 9.5px;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 10px;
  line-height: 1.3;
  border: 1px solid rgba(217, 70, 239, 0.4);
}

.sub-btn-logout {
  color: #fca5a5;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 700;
}

/* ====================================================
   NOTIFICATIONS DROPDOWN & PANEL
   ==================================================== */
.notif-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.sub-btn-notif {
  cursor: pointer;
  background-color: #181f2c;
  border: 1px solid var(--border-dark);
  color: #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sub-btn-notif:hover {
  background-color: #263243;
  color: #fff;
  border-color: #f59e0b;
}

.sub-btn-notif.btn-has-unread {
  border-color: #f59e0b;
  color: #fbbf24;
}

.sub-btn-notif.btn-has-unread .sub-unread-bubble {
  background-color: #f59e0b;
  color: #000;
  font-weight: 900;
}

.notif-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999990;
  backdrop-filter: blur(2px);
}

.notif-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 92vw;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifSlideDown 0.18s ease-out;
}

.notif-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  transition: all 0.15s ease;
}

.notif-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

@keyframes notifSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #1a2234;
  border-bottom: 1px solid #2d3748;
}

.notif-panel-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.notif-mark-all-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 10.5px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.notif-mark-all-btn:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
  text-decoration: underline;
}

.notif-panel-body {
  max-height: 330px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-panel-body::-webkit-scrollbar {
  width: 5px;
}
.notif-panel-body::-webkit-scrollbar-track {
  background: #0f172a;
}
.notif-panel-body::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #1f293d;
  text-decoration: none;
  color: #cbd5e1;
  transition: background-color 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background-color: #1e293b;
  text-decoration: none;
  color: #fff;
}

.notif-item.notif-unread {
  background-color: rgba(56, 189, 248, 0.07);
  border-left: 3px solid #38bdf8;
}

.notif-item.notif-unread:hover {
  background-color: rgba(56, 189, 248, 0.12);
}

.notif-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.notif-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #374151;
}

.notif-type-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 50%;
  font-size: 9px;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-content-wrap {
  flex: 1;
  min-width: 0;
}

.notif-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.notif-title-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  flex-shrink: 0;
}

.notif-preview-quote {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  background: rgba(15, 23, 42, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
  border-left: 2px solid #475569;
}

.notif-time-row {
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notif-sep {
  opacity: 0.5;
}

.notif-thread-ref {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.notif-panel-footer {
  padding: 8px 12px;
  background-color: #1a2234;
  border-top: 1px solid #2d3748;
  text-align: center;
}

.notif-view-all-link {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease;
}

.notif-view-all-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.notif-loading,
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
}

/* Full-page list */
.notif-full-list {
  display: flex;
  flex-direction: column;
}

.notif-full-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
  color: #cbd5e1;
  transition: background-color 0.15s ease;
  position: relative;
}

.notif-full-item:hover {
  background-color: #1e293b;
  text-decoration: none;
  color: #fff;
}

.notif-full-item.notif-unread {
  background-color: rgba(56, 189, 248, 0.08);
  border-left: 4px solid #38bdf8;
}

.notif-full-item .notif-avatar-wrap {
  width: 40px;
  height: 40px;
}

.notif-full-item .notif-avatar-img {
  width: 40px;
  height: 40px;
}

.notif-full-item .notif-title-text {
  font-size: 13px;
}

.notif-full-item .notif-preview-quote {
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 6px;
  padding: 4px 8px;
}

.notif-full-item .notif-time-row {
  font-size: 11px;
}

.btn-grid-has-unread {
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
}

.drawer-grid-badge.notif-badge {
  background-color: #f59e0b;
  color: #000;
  font-weight: 800;
}

.sub-btn-logout:hover {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

.sub-logout-label {
  display: inline;
  font-weight: 700;
}

.sub-guest-session {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-guest-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sub-guest-register {
  background-color: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.sub-guest-register:hover {
  background-color: #38bdf8;
  color: #000;
  text-decoration: none;
}

.sub-guest-login {
  background-color: #21262d;
  border: 1px solid var(--border-dark);
  color: #e2e8f0;
}

.sub-guest-login:hover {
  background-color: #30363d;
  color: #fff;
  text-decoration: none;
}

/* NAVIGATION BAR (TABS) */
.forum-navbar {
  background-color: #1a202c;
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.forum-nav-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.forum-nav-tabs li a {
  display: block;
  padding: 8px 14px;
  color: #cbd5e1;
  font-weight: bold;
  font-size: 12px;
  border-right: 1px solid #2d3748;
  transition: background 0.15s;
}

.forum-nav-tabs li a:hover, .forum-nav-tabs li a.active {
  background-color: #2d3748;
  color: #fff;
  text-decoration: none;
}

/* BREADCRUMBS */
.breadcrumb-bar {
  padding: 10px 0;
  font-size: 11px;
  color: var(--text-muted);
}

.breadcrumb-bar a {
  color: var(--text-muted);
}

.breadcrumb-bar a:hover {
  color: var(--link-color);
}

/* FORUM TABLES */
.forum-box {
  background-color: var(--bg-header);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}

.forum-box-header {
  background-color: var(--bg-table-header);
  border-bottom: 1px solid var(--border-dark);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #f0f6fc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FOROCOCHES STYLE SORT TABS BAR */
.forum-sort-bar {
  background: linear-gradient(180deg, #18202d 0%, #121721 100%);
  border-bottom: 2px solid #232d3e;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-sort-title {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.forum-sort-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  background-color: #1a2230;
  color: #94a3b8;
  border: 1px solid #283447;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.sort-tab-btn:hover {
  background-color: #243044;
  color: #f8fafc;
  border-color: #38bdf8;
  text-decoration: none;
  transform: translateY(-1px);
}

.sort-tab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-color: #38bdf8;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  font-weight: 800;
}

.forum-table {
  width: 100%;
  border-collapse: collapse;
}

.forum-table th {
  background-color: #19202a;
  border-bottom: 1px solid var(--border-dark);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  color: var(--text-muted);
  text-align: left;
  text-transform: uppercase;
}

.forum-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #21262d;
  vertical-align: middle;
}

.forum-table tr:nth-child(odd) {
  background-color: var(--bg-row-1);
}

.forum-table tr:nth-child(even) {
  background-color: var(--bg-row-2);
}

.forum-table tr:hover {
  background-color: var(--bg-row-hover);
}

/* SUBFORUM CELLS */
.subforum-icon {
  width: 36px;
  text-align: center;
  font-size: 18px;
}

.subforum-title {
  font-size: 13px;
  font-weight: bold;
}

.subforum-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.subforum-mods {
  font-size: 10px;
  color: var(--text-subtle);
  margin-top: 3px;
}

.col-stat {
  width: 90px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.col-stat b {
  color: var(--text-main);
  display: block;
  font-size: 12px;
}

.col-lastpost {
  width: 240px;
  font-size: 11px;
  color: var(--text-muted);
}

.col-lastpost a {
  font-weight: bold;
  color: var(--text-main);
  display: block;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* THREAD LIST */
.thread-icon-status {
  width: 30px;
  text-align: center;
  font-size: 14px;
}

.thread-link {
  font-size: 13px;
  font-weight: bold;
  color: #f0f6fc;
}

.thread-prefix {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  text-transform: uppercase;
  background-color: #21262d;
  border: 1px solid #30363d;
  color: #f0883e;
}

.thread-prefix.oficial { background-color: rgba(217, 70, 239, 0.15); border-color: var(--forum-accent); color: var(--forum-accent); }
.thread-prefix.mapa { background-color: rgba(56, 189, 248, 0.15); border-color: #38bdf8; color: #38bdf8; }
.thread-prefix.guia { background-color: rgba(52, 211, 153, 0.15); border-color: #34d399; color: #34d399; }
.thread-prefix.debate { background-color: rgba(251, 191, 36, 0.15); border-color: #fbbf24; color: #fbbf24; }

.thread-author-meta {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 2px;
}

.thread-author-meta a {
  color: var(--text-muted);
}

/* POSTBIT (THREAD VIEW) */
.postbit-wrapper {
  background-color: var(--bg-header);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.postbit-head {
  background-color: var(--bg-table-header);
  border-bottom: 1px solid var(--border-dark);
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.postbit-body {
  display: flex;
  min-height: 140px;
}

@media (max-width: 768px) {
  .postbit-body {
    flex-direction: column;
  }
}

.postbit-userinfo {
  width: 175px;
  background-color: var(--bg-postbit);
  border-right: 1px solid var(--border-dark);
  padding: 12px 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.userinfo-name {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 3px;
  display: block;
}

.userinfo-rank {
  font-size: 10px;
  color: var(--forum-accent);
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.userinfo-avatar {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 1px solid var(--border-dark);
  object-fit: cover;
  margin-bottom: 8px;
  display: block;
  background-color: #0b0e14;
}

.userinfo-stat {
  margin-bottom: 2px;
  font-size: 10.5px;
}

.postbit-content-col {
  flex: 1;
  background-color: var(--bg-postcontent);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.postbit-text {
  font-size: 13px;
  line-height: 1.6;
  color: #f0f6fc;
  flex: 1;
}

.postbit-text p {
  margin-bottom: 10px;
}

.postbit-text h2, .postbit-text h3 {
  color: #fff;
  margin: 12px 0 6px;
  font-size: 15px;
}

.postbit-text blockquote {
  background-color: var(--bg-quote);
  border-left: 3px solid var(--link-color);
  padding: 8px 12px;
  margin: 8px 0 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: italic;
}

.postbit-footer {
  border-top: 1px solid #21262d;
  margin-top: 14px;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

/* ACTION BUTTONS */
.btn-forum {
  display: inline-block;
  background-color: #21262d;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.btn-forum:hover {
  background-color: #30363d;
  color: #fff;
  text-decoration: none;
}

.btn-forum-primary {
  background-color: #1f6feb;
  border-color: #388bfd;
  color: #fff;
}

.btn-forum-primary:hover {
  background-color: #388bfd;
  color: #fff;
}

/* TRANSLATION BAR (DISCREET & FUNCTIONAL) */
.trans-bar {
  background-color: #12161f;
  border: 1px solid #21262d;
  border-radius: 3px;
  padding: 4px 8px;
  margin-bottom: 10px;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.trans-btn {
  background-color: #1b212c;
  border: 1px solid var(--border-dark);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.trans-btn:hover, .trans-btn.active {
  background-color: var(--link-color);
  color: #000;
  border-color: var(--link-color);
}

/* FORMS (CLASSIC FORUM STYLE) */
.forum-form-box {
  background-color: var(--bg-header);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 20px;
}

.forum-input {
  width: 100%;
  background-color: #0d1117;
  border: 1px solid var(--border-dark);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 3px;
  font-family: inherit;
  margin-top: 4px;
}

.forum-input:focus {
  outline: none;
  border-color: var(--link-color);
}

textarea.forum-input {
  min-height: 160px;
  line-height: 1.5;
}

/* FOOTER */
.forum-footer {
  background-color: #0d1117;
  border-top: 1px solid var(--border-dark);
  padding: 18px 0;
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.forum-footer a {
  color: var(--text-muted);
  margin: 0 6px;
}

.forum-footer a:hover {
  color: var(--link-color);
}

/* ===================================================
   LANGUAGE SELECTOR & AFFILIATE BANNER ENHANCEMENTS
   =================================================== */

.lang-selector-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #161b22;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-dark);
}

.lang-selector-box label {
  color: var(--text-muted);
  font-size: 11px;
}

#forum-lang-picker {
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 3px;
  font-size: 11px;
  padding: 1px 4px;
  cursor: pointer;
  outline: none;
}

#forum-lang-picker:focus {
  border-color: var(--link-color);
}

.affiliate-notice-wrap {
  margin-top: 10px;
}

.forum-affiliate-banner {
  background: linear-gradient(90deg, #161b24 0%, #1f2735 100%);
  border: 1px solid #3b82f6;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #f0f6fc;
}

.affiliate-badge {
  background-color: #f59e0b;
  color: #0b0e14;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-right: 6px;
  display: inline-block;
}

.affiliate-banner-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.affiliate-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-affiliate {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-amazon {
  background-color: #ff9900;
  color: #111 !important;
  border: 1px solid #e68a00;
}

.btn-amazon:hover {
  background-color: #ffaa22;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(255, 153, 0, 0.4);
}

.btn-compare {
  background-color: #238636;
  color: #fff !important;
  border: 1px solid #2ea043;
}

.btn-compare:hover {
  background-color: #2ea043;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(35, 134, 54, 0.4);
}

@media (max-width: 768px) {
  .forum-affiliate-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .affiliate-banner-actions {
    width: 100%;
    margin-top: 6px;
  }
  .desktop-only {
    display: none;
  }
}

/* ===================================================
   ONLINE USERS BADGE & MODERATOR STYLING
   =================================================== */

.online-users-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #161b22;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  font-size: 11px;
  color: #58a6ff;
  font-weight: bold;
}

.online-dot {
  width: 7px;
  height: 7px;
  background-color: #238636;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #238636;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px #34d399; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-moderator {
  background-color: #0284c7 !important;
  color: #fff !important;
  border: 1px solid #38bdf8 !important;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}

/* ===================================================
   REDDIT-STYLE AUTO-TRANSLATION INTERFACE
   =================================================== */

.reddit-trans-header-banner {
  background: linear-gradient(90deg, #131b26 0%, #1a2332 100%);
  border: 1px solid #2563eb;
  border-left: 4px solid #38bdf8;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #e2e8f0;
}

.reddit-trans-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reddit-globe-icon {
  font-size: 16px;
}

.badge-orig-lang {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: bold;
  margin-left: 6px;
}

.btn-reddit-mode {
  background-color: #0f172a;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-reddit-mode:hover {
  background-color: #38bdf8;
  color: #0f172a;
}

.reddit-post-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #161e2b;
  border: 1px solid #2d3748;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.reddit-post-pill a {
  color: #38bdf8;
  font-weight: bold;
}

.reddit-post-pill a:hover {
  text-decoration: underline;
}

/* ===================================================
   EDITOR TOOLBAR, UPLOADS & STATUS DOTS
   =================================================== */

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #161b22;
  border: 1px solid var(--border-dark);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 6px 10px;
  flex-wrap: wrap;
}

.btn-tool {
  background-color: #21262d;
  color: #c9d1d9;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-tool:hover {
  background-color: #30363d;
  color: #fff;
  border-color: #58a6ff;
}

.btn-tool-upload {
  background-color: #238636;
  color: #fff;
  border-color: #2ea043;
}

.btn-tool-upload:hover {
  background-color: #2ea043;
}

.upload-status-text {
  font-size: 11px;
  color: #58a6ff;
  font-weight: bold;
  margin-left: 6px;
}

.dropzone-textarea {
  border-radius: 0 0 4px 4px !important;
  transition: border-color 0.2s, background-color 0.2s;
}

.online-dot-mini {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.7);
}

.offline-dot-mini {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #64748b;
  border-radius: 50%;
  margin-right: 4px;
}

.postbit-text img, .thread-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-dark);
  margin: 10px 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ===================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   =================================================== */
@media (max-width: 768px) {
  .postbit-body {
    flex-direction: column !important;
  }

  .postbit-userinfo {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-dark) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 8px 12px !important;
  }

  .userinfo-avatar {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .userinfo-name {
    display: inline-block !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
  }

  .userinfo-rank {
    display: inline-block !important;
    margin-bottom: 0 !important;
    margin-left: 6px !important;
  }

  .userinfo-stat {
    display: inline-block !important;
    font-size: 10px !important;
    margin-right: 8px !important;
  }

  .postbit-content-col {
    padding: 16px 16px !important;
  }

  .forum-affiliate-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .affiliate-banner-actions {
    width: 100%;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-affiliate {
    flex: 1 1 120px;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px !important;
  }

  .postbit-wrapper {
    margin-bottom: 16px;
    border-radius: 6px;
  }

  .postbit-text {
    font-size: 13.5px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .postbit-text p {
    margin-bottom: 12px;
  }

  .postbit-head {
    padding: 8px 14px !important;
  }

  .postbit-footer {
    padding-top: 12px !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-header {
    padding: 8px 0 0;
  }

  .header-branding {
    padding-bottom: 8px;
    gap: 8px;
  }

  .forum-logo {
    font-size: 20px;
  }

  .forum-tagline {
    font-size: 9.5px;
  }

  .header-lang-select {
    padding: 3px 6px;
    font-size: 11px;
  }

  .sub-header-bar {
    padding: 5px 0;
    overflow: visible !important;
  }

  .sub-header-inner {
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
  }

  .sub-online-text {
    display: none;
  }

  .sub-username {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
  }

  .sub-action-btn {
    padding: 3px 6px;
    font-size: 11px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .sub-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5 !important;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
  }

  .sub-logout-label {
    display: inline !important;
    font-weight: 700;
  }

  @media (max-width: 600px) {
    .sub-local-clock {
      display: none !important;
    }
    .sub-username {
      max-width: 50px;
    }
    .sub-btn-notif .sub-label {
      display: none !important;
    }
    .sub-btn-invis .sub-label {
      display: none !important;
    }
    .sub-logout-label {
      display: none !important;
    }
    .notif-dropdown-panel {
      position: fixed !important;
      top: 55px !important;
      right: 10px !important;
      left: 10px !important;
      width: auto !important;
      max-width: 380px !important;
      margin: 0 auto !important;
      z-index: 999999 !important;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 0 1px #374151 !important;
    }
  }

  @media (max-width: 360px) {
    .sub-vip-pill {
      display: none !important;
    }
  }

  @media (max-width: 300px) {
    .container {
      padding: 0 6px !important;
    }
    .sub-action-btn {
      padding: 3px 4px !important;
    }
    .sub-username {
      max-width: 35px !important;
    }
    .sub-header-inner {
      gap: 4px !important;
    }
    .sub-user-session {
      gap: 4px !important;
    }
  }

  .forum-sort-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
  }

  .forum-sort-title {
    font-size: 12px;
  }

  .forum-sort-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    gap: 5px;
  }

  .forum-sort-tabs::-webkit-scrollbar {
    display: none;
  }

  .sort-tab-btn {
    padding: 5px 9px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .forum-navbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    max-width: 100%;
  }

  .forum-navbar .container {
    max-width: 100%;
  }

  .forum-navbar::-webkit-scrollbar {
    display: none;
  }

  .forum-nav-tabs {
    flex-wrap: nowrap;
  }

  .forum-nav-tabs li a {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .col-stat, .col-lastpost {
    display: none !important;
  }

  .forum-table th, .forum-table td {
    padding: 8px 6px;
  }

  .subforum-desc {
    font-size: 11px;
    line-height: 1.35;
  }

  .trans-bar {
    flex-wrap: wrap;
    gap: 4px;
  }

  .trans-btn {
    padding: 2px 6px;
    font-size: 10px;
  }

  .reddit-trans-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===================================================
   IN-REPLY-TO BAR, USER MENTIONS & DRAWER STYLING
   =================================================== */

.in-reply-to-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #121721;
  border-left: 3px solid #38bdf8;
  padding: 4px 10px;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.in-reply-to-bar .reply-symbol {
  font-size: 12px;
}

.quote-jump-link {
  color: #64748b;
  font-size: 10px;
  margin-left: 4px;
}

.quote-jump-link:hover {
  color: #38bdf8;
}

.user-mention {
  color: #38bdf8 !important;
  font-weight: 600;
  background-color: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s;
}

.user-mention:hover {
  background-color: rgba(56, 189, 248, 0.25);
  text-decoration: underline;
}

.replying-to-banner {
  background-color: #1a2233;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-cancel-reply {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}

.btn-cancel-reply:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* MOBILE HAMBURGER BUTTON */
/* MOBILE HAMBURGER BUTTON */
.mobile-hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #cbd5e1;
  border-radius: 1px;
}

/* MOBILE DRAWER & BACKDROP */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 86vw);
  height: 100vh;
  height: 100dvh;
  background-color: #12161f;
  border-right: 1px solid var(--border-dark);
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
  padding-bottom: max(30px, env(safe-area-inset-bottom, 30px));
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background-color: #161b24;
  border-bottom: 1px solid var(--border-dark);
}

.drawer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease;
}

.drawer-close-btn:hover {
  color: #fff;
}

/* USER AUTH / PROFILE CARD IN DRAWER */
.drawer-user-card {
  padding: 14px 16px;
  background-color: #161e2b;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-user-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar-link {
  display: block;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.drawer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid var(--forum-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.drawer-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-user-name {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-user-name:hover {
  color: #38bdf8;
  text-decoration: none;
}

.drawer-vip-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  letter-spacing: 0.3px;
}

.drawer-user-rank {
  font-size: 11px;
  color: var(--forum-accent);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* INVISIBLE MODE TOGGLE IN DRAWER */
.drawer-status-container {
  margin-top: 4px;
}

.drawer-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.drawer-status-toggle.is-online {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.drawer-status-toggle.is-invisible {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.08);
}

.drawer-status-toggle:hover, .drawer-status-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.is-online .drawer-status-indicator {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.is-invisible .drawer-status-indicator {
  background-color: #94a3b8;
}

.drawer-status-text {
  font-weight: 700;
}

.drawer-status-action {
  font-size: 9px;
  color: #cbd5e1;
  opacity: 0.8;
  margin-left: 2px;
}

/* 2x2 USER ACTION GRID */
.drawer-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-drawer-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background-color: #1e2634;
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-drawer-grid-item:hover, .btn-drawer-grid-item:active {
  background-color: #283244;
  border-color: #38bdf8;
  color: #fff;
  text-decoration: none;
}

.btn-drawer-grid-invis {
  color: #f0abfc !important;
}

.drawer-grid-icon {
  font-size: 14px;
}

.drawer-grid-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-grid-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: bold;
  margin-left: 2px;
}

.drawer-grid-badge.badge-invis {
  background: rgba(240, 171, 252, 0.2);
  color: #f0abfc;
  border: 1px solid rgba(240, 171, 252, 0.3);
}

/* FULL-WIDTH NEW THREAD CTA */
.btn-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #d946ef 0%, #a21caf 100%);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid #e879f9;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(217, 70, 239, 0.3);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-drawer-cta:hover, .btn-drawer-cta:active {
  filter: brightness(1.1);
  text-decoration: none;
  transform: translateY(-1px);
}

/* PROMINENT DANGER LOGOUT BUTTON */
.btn-drawer-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background-color: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5 !important;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-drawer-logout:hover, .btn-drawer-logout:active {
  background-color: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #fff !important;
  text-decoration: none;
}

/* GUEST CARD IN DRAWER */
.drawer-guest-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-guest-title {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.drawer-guest-grid {
  display: flex;
  gap: 10px;
}

.btn-drawer-guest {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-drawer-guest-login {
  background-color: #21262d;
  color: #e2e8f0;
  border: 1px solid var(--border-dark);
}

.btn-drawer-guest-login:hover {
  background-color: #30363d;
  color: #fff;
  text-decoration: none;
}

.btn-drawer-guest-register {
  background: linear-gradient(135deg, #d946ef 0%, #a21caf 100%);
  color: #fff !important;
  border: 1px solid #e879f9;
}

.btn-drawer-guest-register:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.drawer-section-title {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: bold;
  color: #64748b;
  letter-spacing: 0.5px;
}

.drawer-links-list {
  list-style: none;
  padding: 0 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s;
}

.drawer-link:hover {
  background-color: #1e2634;
  color: #fff;
  text-decoration: none;
}

.drawer-link-special {
  background: rgba(217, 70, 239, 0.1);
  color: #f0abfc !important;
  border: 1px solid rgba(217, 70, 239, 0.3);
  margin-bottom: 4px;
}

.drawer-link-special:hover {
  background: rgba(217, 70, 239, 0.2);
}

.badge-new-pill {
  margin-left: auto;
  background-color: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .mobile-hamburger-btn {
    display: flex;
  }
}

/* ====================================================
   CHEATS SECTION STYLES
   ==================================================== */
.btn-platform {
  background-color: #1e2634;
  color: #cbd5e1;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-platform:hover {
  background-color: #293548;
  color: #fff;
}

.btn-platform.active {
  background-color: var(--forum-accent);
  border-color: #c026d3;
  color: #fff;
}

.filter-chip {
  background-color: #161e2b;
  color: #94a3b8;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  color: #e2e8f0;
  border-color: #475569;
}

.filter-chip.active {
  background-color: #334155;
  color: #fff;
  border-color: #64748b;
  font-weight: bold;
}

.cheat-card {
  background-color: #161b24;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.cheat-card:hover {
  border-color: #3b4556;
}

.cheat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.cheat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cheat-badge {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-personaje {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-armas {
  background-color: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-policia {
  background-color: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-vehiculos {
  background-color: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-entorno {
  background-color: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.4);
}

.cheat-title {
  color: #fff;
  font-size: 14.5px;
  font-weight: bold;
}

.btn-copy-cheat {
  background-color: #21262d;
  color: #cbd5e1;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-cheat:hover {
  background-color: #30363d;
  color: #fff;
}

.cheat-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cheat-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.cheat-code-box {
  background-color: #0f131a;
  border: 1px solid #232936;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 11.5px;
}

.code-ps5 {
  border-left-color: #0070d1;
}

.code-xbox {
  border-left-color: #107c10;
}

.code-phone {
  border-left-color: var(--forum-accent);
}

.code-pc {
  border-left-color: #64748b;
}

.code-platform-label {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.code-seq {
  color: #e2e8f0;
  font-weight: 500;
  word-break: break-word;
}

.phone-letters {
  color: #a855f7;
  font-weight: normal;
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .cheat-codes-grid {
    grid-template-columns: 1fr;
  }
}

.btn-mp-quick {
  display: inline-block;
  background-color: #1e2634;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border-dark);
  text-decoration: none;
  transition: all 0.15s;
}

.btn-mp-quick:hover {
  background-color: #293548;
  color: #38bdf8;
  border-color: #38bdf8;
  text-decoration: none;
}

/* ====================================================
   USER SESSION BAR & GUEST BAR WIDGETS
   ==================================================== */
.user-session-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #161e2b;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2px 8px 2px 3px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.user-session-chip:hover {
  background-color: #212c3f;
  border-color: #38bdf8;
  text-decoration: none;
}

.user-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #38bdf8;
}

.user-chip-name {
  font-weight: bold;
  font-size: 11.5px;
  color: #fff;
}

.user-chip-rank {
  font-size: 9px;
  color: var(--forum-accent);
  background: rgba(217, 70, 239, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: bold;
}

.user-session-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-btn-action {
  background-color: #1b212c;
  border: 1px solid var(--border-dark);
  color: #cbd5e1;
  border-radius: 3px;
  font-size: 11px;
  padding: 3px 7px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.session-btn-action:hover {
  background-color: #273040;
  color: #fff;
  text-decoration: none;
}

.session-counter-badge {
  background-color: #ef4444;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: bold;
  padding: 0 4px;
  line-height: 1.2;
}

.btn-has-unread {
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: bold;
}

.btn-invis {
  color: #f0abfc;
}

.btn-session-new {
  color: #34d399;
  font-weight: bold;
}

.btn-session-logout {
  color: #94a3b8;
}

.btn-session-logout:hover {
  color: #ff7b72;
}

.user-guest-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-guest-action {
  border-radius: 3px;
  font-size: 11px;
  padding: 3px 8px;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-guest-register {
  background-color: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-weight: bold;
}

.btn-guest-register:hover {
  background-color: rgba(56, 189, 248, 0.25);
  color: #fff;
  text-decoration: none;
}

.btn-guest-login {
  background-color: #21262d;
  border: 1px solid var(--border-dark);
  color: #e2e8f0;
}

.btn-guest-login:hover {
  background-color: #30363d;
  color: #fff;
  text-decoration: none;
}

/* ====================================================
   MODERN USER PROFILE PAGE STYLES
   ==================================================== */
.profile-hero-card {
  background-color: #161b24;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}

.profile-cover-banner {
  height: 90px;
  background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 40%, #0f172a 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-cover-badge {
  font-size: 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
}

.profile-hero-body {
  padding: 0 20px 16px;
  display: flex;
  gap: 18px;
  position: relative;
  margin-top: -38px;
  flex-wrap: wrap;
}

.profile-avatar-wrapper {
  position: relative;
  width: 85px;
  height: 85px;
  flex-shrink: 0;
}

.profile-main-avatar {
  width: 85px;
  height: 85px;
  border-radius: 6px;
  border: 3px solid #161b24;
  object-fit: cover;
  background: #0b0e14;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.profile-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 13px;
  line-height: 1;
}

.profile-hero-info {
  flex: 1;
  min-width: 250px;
  padding-top: 42px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-username {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}

.badge-online-pill {
  font-size: 10px;
  font-weight: bold;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid #10b981;
  padding: 2px 7px;
  border-radius: 10px;
}

.badge-offline-pill {
  font-size: 10px;
  font-weight: normal;
  background: #1e2634;
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 10px;
}

.profile-bio-text {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.profile-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background-color: var(--border-dark);
  border-top: 1px solid var(--border-dark);
}

.profile-stat-box {
  background-color: #11151c;
  padding: 12px 14px;
  text-align: center;
}

.stat-number {
  font-size: 20px;
  font-weight: 900;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 2px;
}

.profile-tabs-nav {
  display: flex;
  background-color: #161b22;
  border-bottom: 1px solid var(--border-dark);
  overflow-x: auto;
}

.profile-tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}

.profile-tab-btn:hover {
  color: #fff;
  background-color: #1c232f;
}

.profile-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--forum-accent);
  background-color: #1e2634;
}

.profile-tab-content {
  background-color: var(--bg-postcontent);
}

/* ====================================================
   LOCKED THREADS & VIP INVITATIONS GATEWAY
   ==================================================== */
.badge-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #f59e0b;
  margin-right: 4px;
  vertical-align: middle;
}

.locked-preview-container {
  position: relative;
  margin: 12px 0 16px;
  padding: 14px 16px;
  background-color: #121721;
  border: 1px solid #232b38;
  border-radius: 6px;
  overflow: hidden;
}

.locked-preview-text {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  filter: blur(2.5px);
  user-select: none;
  pointer-events: none;
}

.locked-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #121721);
}

.locked-gate-box {
  background: linear-gradient(145deg, #161c28 0%, #10151f 100%);
  border: 1px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 16px 0 20px;
}

.locked-gate-shield {
  font-size: 38px;
  margin-bottom: 8px;
  animation: pulse-lock 2s infinite ease-in-out;
}

@keyframes pulse-lock {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.locked-gate-title {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.locked-gate-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

.locked-alert-error {
  background: #490202;
  border: 1px solid #da3633;
  color: #ff7b72;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  margin: 0 auto 14px;
  max-width: 520px;
}

.locked-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #a7f3d0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  margin: 0 auto 14px;
  max-width: 520px;
}

.locked-redeem-form {
  max-width: 480px;
  margin: 0 auto;
}

.locked-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.locked-code-input {
  flex: 1;
  min-width: 200px;
  background-color: #0b0f16;
  border: 1px solid #f59e0b;
  color: #f0abfc;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 5px;
  outline: none;
}

.locked-code-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.btn-locked-submit {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-locked-submit:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.locked-guest-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.locked-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.5;
}

.locked-replies-placeholder {
  background-color: #111620;
  border: 1px solid #232b38;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  margin: 16px 0;
}

/* ====================================================
   MOBILE BOTTOM STICKY APP BAR & ENHANCED MOBILE UX
   ==================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.drawer-open {
    overflow: hidden;
    touch-action: none;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(14, 18, 27, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.65);
    z-index: 9990;
    align-items: center;
    justify-content: space-around;
    padding-left: 4px;
    padding-right: 4px;
    touch-action: manipulation;
  }

  /* Prevent toast overlay collision with mobile bottom nav */
  #cheat-copy-toast,
  #invi-toast {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 0 4px;
    transition: all 0.15s ease;
    min-width: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item:focus {
    color: #38bdf8;
    text-decoration: none;
  }

  .bottom-nav-item.active {
    color: #38bdf8;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
  }

  .bottom-nav-icon {
    font-size: 19px;
    line-height: 1.2;
    transition: transform 0.15s ease;
  }

  .bottom-nav-label {
    font-size: 9.5px;
    font-weight: 700;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
  }

  .bottom-nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #38bdf8;
  }

  .bottom-nav-cta {
    position: relative;
    top: -8px;
  }

  .bottom-nav-cta-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #f43f5e 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 36px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.45);
    border: 2px solid #0f131c;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .bottom-nav-cta:hover .bottom-nav-cta-btn,
  .bottom-nav-cta:active .bottom-nav-cta-btn {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(217, 70, 239, 0.6);
  }

  .bottom-nav-cta .bottom-nav-label {
    color: #f0abfc;
    font-weight: 800;
    margin-top: 1px;
  }

  /* Prevent post text and thread content from sticking to edges */
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .postbit-wrapper {
    margin-bottom: 14px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .postbit-content-col {
    padding: 16px 16px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .postbit-text {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  .postbit-text blockquote {
    margin: 10px 0 !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 3px solid #38bdf8 !important;
  }

  .breadcrumb-bar {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
    gap: 6px !important;
  }
}

