/* ═══════════════════════════════════════════════════════════════
   TheMoonForum.cc — Dark Theme Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-heading: 'Righteous', cursive, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-hover: #292e36;
  --border-color: #30363d;
  --border-light: #3d444d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #a78bfa;
  --cyan: #06b6d4;
  --success: #3fb950;
  --warning: #d29922;
  --error: #f85149;
  --info: #58a6ff;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --transition: all 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
}

/* ── Typography & Headings (Righteous font) ─────────────────── */

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.navbar-brand .brand-text,
.nav-link,
.dropdown-item,
.dropdown-toggle,
.footer-logo,
.footer-logo span,
.footer-links a,
.card-header,
.page-header h1,
.stat-card-value,
.stat-value,
.listing-title,
.listing-price,
.welcome-banner h1,
.auth-card h2 {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.5px;
}

h1 { font-size: 1.85rem; font-weight: normal; }
h2 { font-size: 1.45rem; font-weight: normal; }
h3 { font-size: 1.2rem; font-weight: normal; }
h4 { font-size: 1.05rem; font-weight: normal; }

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

img { max-width: 100%; height: auto; }

/* ── Layout ─────────────────────────────────────────────────── */

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

main.container {
  flex: 1;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
}

.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* ── Navbar ─────────────────────────────────────────────────── */

.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.brand-icon { font-size: 1.5rem; }
.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
  transition: transform 0.2s ease;
}
.brand-logo-img:hover {
  transform: scale(1.08) rotate(5deg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.hero-logo-wrap {
  margin-bottom: 1rem;
}
.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
  animation: pulseLogo 3s ease-in-out infinite alternate;
}
@keyframes pulseLogo {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(124, 58, 237, 0.4); }
  100% { transform: scale(1.04); box-shadow: 0 0 30px rgba(6, 182, 212, 0.6); }
}

.svg-icon {
  vertical-align: middle;
  display: inline-block;
  stroke: currentColor;
}
.category-icon .svg-icon {
  stroke: var(--accent-light, #a78bfa);
}
.icon-pinned {
  stroke: #ffd700;
}
.icon-locked {
  stroke: #ff6b6b;
}
.icon-thread {
  stroke: var(--text-secondary);
}

.brand-text {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--bg-tertiary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon { position: relative; font-size: 1.1rem; }

.badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--error);
  color: white;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-username {
  margin-left: 0.35rem;
  font-size: 0.9rem;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: var(--transition);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Dropdown ───────────────────────────────────────────────── */

.dropdown { position: relative; }

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 0.35rem 0;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1001;
}
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  text-decoration: none !important;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary) !important; }

.dropdown-item-danger { color: var(--error) !important; }
.dropdown-item-danger:hover { background: rgba(248,81,73,0.1); }

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.35rem 0;
}

/* ── Cards ──────────────────────────────────────────────────── */

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Allow sticky toolbar and dropdown menus without clipping */
.card:has(.bbcode-toolbar),
.card.has-editor,
.new-thread-page .card,
.edit-post-page .card,
#post-latest .card,
.post-reply-card {
  overflow: visible !important;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 1.25rem; }
.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--transition);
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: white !important;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-light); }

.btn-danger {
  background: var(--error);
  color: white !important;
  border-color: var(--error);
}
.btn-danger:hover { background: #da3633; }

.btn-success {
  background: var(--success);
  color: white !important;
  border-color: var(--success);
}
.btn-success:hover { opacity: 0.9; }

.btn-warning {
  background: var(--warning);
  color: #000 !important;
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Forms ──────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary, #161b22);
  color: var(--text-primary, #e6edf3);
  padding: 0.5rem;
}

/* Hide number input spinners / arrows completely in all browsers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}


.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Alerts ─────────────────────────────────────────────────── */

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
  transition: opacity 0.3s, transform 0.3s;
}

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

.alert-success { background: rgba(63,185,80,0.15); border: 1px solid rgba(63,185,80,0.3); color: var(--success); }
.alert-error { background: rgba(248,81,73,0.15); border: 1px solid rgba(248,81,73,0.3); color: var(--error); }
.alert-warning { background: rgba(210,153,34,0.15); border: 1px solid rgba(210,153,34,0.3); color: var(--warning); }
.alert-info { background: rgba(88,166,255,0.15); border: 1px solid rgba(88,166,255,0.3); color: var(--info); }

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
}
.alert-close:hover { opacity: 1; }

/* ── Tables ─────────────────────────────────────────────────── */

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

.table th, .table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.table tr:hover td { background: var(--bg-tertiary); }

/* ── Forum: Category List ───────────────────────────────────── */

.category-list {
  list-style: none;
}

.category-item {
  display: grid;
  grid-template-columns: auto 1fr 100px 100px 200px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.category-item:last-child { border-bottom: none; }
.category-item:hover { background: var(--bg-tertiary); }

.category-icon {
  font-size: 1.75rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
}

.category-info h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.category-info h3 a {
  color: var(--text-primary) !important;
}
.category-info h3 a:hover {
  color: var(--accent-light) !important;
}
.category-info p {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.category-stat {
  text-align: center;
  font-size: 0.85rem;
}
.category-stat .stat-number {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.category-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.category-last-post {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.category-last-post a { color: var(--accent-light); }
.category-last-post .last-post-time { color: var(--text-muted); display: block; }

/* ── Forum: Thread List ─────────────────────────────────────── */

.thread-list {
  list-style: none;
}

.thread-item {
  display: grid;
  grid-template-columns: auto 1fr 80px 80px 180px;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: var(--bg-tertiary); }

.thread-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.thread-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.thread-info h4 a {
  color: var(--text-primary) !important;
}
.thread-info h4 a:hover {
  color: var(--accent-light) !important;
}

.thread-badges {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.thread-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.thread-stat {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.thread-last-post {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.thread-last-post .last-post-time {
  color: var(--text-muted);
  display: block;
}

/* ── Forum: Post ────────────────────────────────────────────── */

.post-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border-color);
}
.post-item:last-child { border-bottom: none; }

.post-author {
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border-color);
}

.post-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 2px solid var(--border-color);
}

.post-author-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 0.5rem;
  border: 2px solid var(--border-color);
}

.post-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.post-author-name a { color: var(--text-primary) !important; }

.post-author-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-body {
  flex: 1;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.95rem;
}

.post-body hr,
.post-content hr,
.bbcode-visual-editor hr,
hr.bbcode-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light, #3d444d) 15%, var(--border-light, #3d444d) 85%, transparent);
  margin: 1.25rem 0;
  clear: both;
}

.post-body span[style*="font-size"] {
  display: inline;
  line-height: 1.35;
}

.post-body h1, .post-body h2, .post-body h3 {
  color: var(--text-primary);
  font-weight: 700;
}

.post-body img.post-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  vertical-align: middle;
}

/* Smilie, Emoji & Small Icon images inside posts — keep in real text size (1.35em / max 22px) */
.post-body img.post-emoji-icon,
.post-body img[src*="joypixels"],
.post-body img[src*="twemoji"],
.post-body img[src*="/unicode/"],
.post-body img[src*="emoji"],
.post-body img[src*="smilie"],
.post-body img[src*="emoticon"],
.post-body img.smilie,
.post-body img.emoji,
.bbcode-visual-editor img.post-emoji-icon,
.bbcode-visual-editor img[src*="joypixels"],
.bbcode-visual-editor img[src*="twemoji"],
.bbcode-visual-editor img[src*="/unicode/"],
.bbcode-visual-editor img[src*="emoji"],
.bbcode-visual-editor img[src*="smilie"],
.bbcode-visual-editor img[src*="emoticon"] {
  width: auto !important;
  height: 1.35em !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 14px;
  min-height: 14px;
  vertical-align: -0.22em !important;
  display: inline-block !important;
  margin: 0 3px !important;
  border-radius: 2px !important;
  object-fit: contain !important;
}

.post-quote {
  border-left: 3px solid var(--accent);
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.post-quote cite {
  display: block;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
  font-style: normal;
  font-size: 0.85rem;
}

.post-signature {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-actions {
  display: flex;
  gap: 0.5rem;
}

.post-actions .btn { font-size: 0.75rem; padding: 0.25rem 0.5rem; }

/* ── Marketplace ────────────────────────────────────────────── */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.listing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.listing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.listing-image {
  width: 100%;
  height: 180px;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.listing-image-placeholder {
  width: 100%;
  height: 180px;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light, #a78bfa);
}

.listing-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card-body .listing-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: auto;
}

.listing-card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.listing-card-body h3 a { color: var(--text-primary) !important; }

.listing-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--success);
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
}

.listing-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.listing-status {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.listing-status.active { background: rgba(63,185,80,0.15); color: var(--success); }
.listing-status.sold { background: rgba(248,81,73,0.15); color: var(--error); }
.listing-status.closed { background: rgba(139,148,158,0.15); color: var(--text-secondary); }

/* Listing detail */
.listing-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.listing-detail-images img {
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
}

.listing-detail-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

.seller-card {
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  text-align: center;
}

.seller-rating {
  color: var(--warning);
  font-size: 1rem;
  margin-top: 0.35rem;
}

/* Feedback */
.feedback-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.feedback-item:last-child { border-bottom: none; }
.feedback-stars { color: var(--warning); }

/* ── Messages ───────────────────────────────────────────────── */

.message-list {
  list-style: none;
}

.message-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.message-item:hover { background: var(--bg-tertiary); }
.message-item.unread { background: rgba(124,58,237,0.05); border-left: 3px solid var(--accent); }

.message-avatar { width: 36px; height: 36px; border-radius: 50%; }

.message-info h4 { font-size: 0.9rem; }
.message-info p { font-size: 0.8rem; color: var(--text-secondary); }

.message-time { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.conversation-message {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.conversation-message:last-child { border-bottom: none; }
.conversation-message-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* ── Pagination ─────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.page-link {
  padding: 0.4rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: var(--transition);
}
.page-link:hover { background: var(--bg-tertiary); color: var(--text-primary) !important; border-color: var(--border-light); }
.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white !important;
}
.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Badges ─────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-admin { background: rgba(248,81,73,0.15); color: var(--error); }
.badge-mod { background: rgba(88,166,255,0.15); color: var(--info); }
.badge-vendor { 
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.32)); 
  color: #fbbf24; 
  border: 1px solid rgba(245, 158, 11, 0.45); 
  font-weight: 600;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.badge-member { background: rgba(63,185,80,0.15); color: var(--success); }
.badge-banned { background: rgba(139,148,158,0.15); color: var(--text-muted); text-decoration: line-through; }
.badge-pinned { background: rgba(210,153,34,0.15); color: var(--warning); }
.badge-locked { background: rgba(139,148,158,0.15); color: var(--text-secondary); }

/* ── BBCode Toolbar ─────────────────────────────────────────── */

.bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  background: #141422;
  border: 1px solid var(--border-color);
  border-bottom: 1px solid #232338;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: sticky;
  top: 60px;
  z-index: 990;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: top 0.15s ease, box-shadow 0.15s ease;
}

.bbcode-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding-right: 0.35rem;
  margin-right: 0.15rem;
  border-right: 1px solid #26263d;
}
.bbcode-group:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.bbcode-toolbar .bbcode-btn,
.bbcode-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  background: #1d1d2f;
  border: 1px solid #2f2f4a;
  border-radius: 4px;
  color: #c4c4e0;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.bbcode-toolbar .bbcode-btn:hover,
.bbcode-toolbar button:hover {
  background: #2b2b48;
  border-color: #6366f1;
  color: #ffffff;
}

.bbcode-toolbar .bbcode-history-group {
  margin-right: 0.2rem;
}

.bbcode-toolbar .bbcode-btn:disabled,
.bbcode-toolbar .bbcode-btn[disabled],
.bbcode-toolbar button:disabled,
.bbcode-toolbar button[disabled] {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #24243a !important;
  background: #171726 !important;
  color: #6b7280 !important;
}

.bbcode-undo-btn,
.bbcode-redo-btn {
  font-weight: 600 !important;
  padding: 0 0.55rem !important;
}

.bbcode-toolbar .bbcode-select {
  height: 28px;
  padding: 0 0.5rem;
  background: #1d1d2f;
  border: 1px solid #2f2f4a;
  border-radius: 4px;
  color: #c4c4e0;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}
.bbcode-toolbar .bbcode-select:hover,
.bbcode-toolbar .bbcode-select:focus {
  border-color: #6366f1;
  color: #ffffff;
}

.bbcode-popover-wrapper {
  position: relative;
  display: inline-block;
}

.bbcode-popover {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 1050;
  background: #18182a;
  border: 1px solid #363656;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.65);
  padding: 0.65rem;
}
.bbcode-popover.show {
  display: block;
}

.bbcode-popover-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a8aa6;
  margin-bottom: 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #282840;
}

/* Color Popover */
.bbcode-color-popover {
  width: 320px;
  max-width: 92vw;
}
.bbcode-color-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-bottom: 0.5rem;
}
.bbcode-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.bbcode-color-swatch:hover {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
.bbcode-custom-color {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #a0a0c4;
  border-top: 1px solid #282840;
  padding-top: 0.45rem;
}
.bbcode-custom-color input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 28px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  padding: 0;
}
.bbcode-custom-color input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.bbcode-custom-color input[type="color"]::-webkit-color-swatch {
  border: 1px solid #3f3f60;
  border-radius: 4px;
}

/* Emoji Popover */
.bbcode-emoji-popover {
  width: 350px;
  max-width: 92vw;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b3b5c #18182a;
}
.bbcode-emoji-category-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a78bfa;
  margin: 0.55rem 0 0.3rem 0;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bbcode-emoji-category-title:first-child {
  margin-top: 0;
}
.bbcode-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin-bottom: 0.4rem;
}
.bbcode-emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.12s ease, transform 0.1s ease;
  user-select: none;
}
.bbcode-emoji-item:hover {
  background: rgba(124, 58, 237, 0.25);
  transform: scale(1.22);
}

/* ── Thread Title Emoji Picker & Tray ──────────────────────── */
.title-emoji-dropdown-wrapper {
  position: relative;
  z-index: 1020;
}
.title-emoji-popover {
  z-index: 2500 !important;
  width: 350px !important;
  max-width: 90vw !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #3b3b5c #18182a !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif !important;
}
.title-emoji-category-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a78bfa;
  margin: 0.55rem 0 0.3rem 0;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.title-emoji-category-title:first-child {
  margin-top: 0;
}
.title-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  text-align: center;
  margin-bottom: 0.35rem;
}
.title-emoji-item,
.edit-title-emoji-item,
.edit-post-title-emoji-item,
.bbcode-emoji-item {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif !important;
  cursor: pointer;
  user-select: none;
}
.title-emoji-item:hover,
.edit-title-emoji-item:hover,
.edit-post-title-emoji-item:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.22);
}

.bbcode-toolbar + .form-textarea,
.bbcode-toolbar + .bbcode-visual-editor {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: 0;
}

.bbcode-visual-editor {
  min-height: 280px;
  max-height: 850px;
  resize: vertical;
  overflow-y: auto;
  background: var(--bg-secondary, #151522);
  border: 1px solid var(--border-color, #2a2a40);
  border-top: none;
  padding: 0.85rem 1.1rem;
  color: var(--text-primary, #e6edf3);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  cursor: text;
  word-wrap: break-word;
  white-space: pre-wrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bbcode-visual-editor:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.bbcode-visual-editor [style*="font-size"] {
  line-height: 1.25;
}

.bbcode-visual-editor blockquote.post-quote {
  margin: 0.5rem 0;
  padding: 0.5rem 0.85rem;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366f1;
  border-radius: 0 4px 4px 0;
}

.bbcode-visual-editor code {
  background: #10101c;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-family: monospace;
}

.bbcode-visual-editor img {
  max-width: 100%;
  border-radius: 4px;
}

.bbcode-mode-btn.active {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
}

/* ── Spoiler ────────────────────────────────────────────────── */

.spoiler {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
}
.spoiler summary {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-light);
}
.spoiler[open] > :not(summary) {
  padding: 0.75rem;
}

/* ── Profile ────────────────────────────────────────────────── */

.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: none !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}

.avatar-1-1 {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
}

.profile-avatar-placeholder {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  border: 3px solid var(--accent-hover);
  flex-shrink: 0;
}

.profile-info h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }

.profile-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.profile-stat {
  text-align: center;
}
.profile-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
}
.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Admin Dashboard ────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Tabs ───────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.tab-link {
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-link:hover { color: var(--text-primary) !important; }
.tab-link.active {
  color: var(--accent-light) !important;
  border-bottom-color: var(--accent);
}

/* ── Breadcrumbs ────────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-separator { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); }

/* ── Search ─────────────────────────────────────────────────── */

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-form .form-control {
  flex: 1;
}

.search-result {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.search-result:last-child { border-bottom: none; }
.search-result h4 { margin-bottom: 0.25rem; }
.search-result p { font-size: 0.85rem; color: var(--text-secondary); }
.search-result .search-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ── Utility ────────────────────────────────────────────────── */

.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-header h1, .page-header h2 {
  font-size: 1.35rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ── Error Page ─────────────────────────────────────────────── */

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-stats { font-size: 0.8rem; }

/* ── Auth Pages ─────────────────────────────────────────────── */

.auth-page {
  max-width: 420px;
  margin: 2rem auto;
}

.auth-page h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.auth-page .auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Navbar */
  .navbar-toggle { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    z-index: 999;
  }
  .navbar-menu.active { display: flex; }
  .navbar-links { flex-direction: column; gap: 0; }
  .nav-link { padding: 0.6rem 0.5rem; }
  .navbar-actions { justify-content: flex-start; padding-top: 0.5rem; border-top: 1px solid var(--border-color); }
  .nav-username { display: none; }

  /* Layout */
  .content-wrapper { 
    grid-template-columns: 1fr !important; 
    width: 100% !important;
    max-width: 100% !important;
    gap: 1rem !important;
  }
  .main-content, .sidebar {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .container { 
    padding: 0 0.5rem !important; 
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  main.container { padding-top: 0.75rem; padding-bottom: 2rem; }

  /* Page Headers */
  .page-header { flex-direction: column; align-items: flex-start !important; gap: 0.75rem; margin-bottom: 1rem !important; }
  .page-header h1 { font-size: 1.25rem !important; }
  .flex-between { flex-wrap: wrap; gap: 0.5rem; }

  /* Cards */
  .card-header { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; }
  .card-body { padding: 1rem; }

  /* Welcome Banner */
  .welcome-banner { padding: 1.5rem 1rem !important; }
  .welcome-banner h1 { font-size: 1.4rem !important; }
  .hero-logo { width: 64px !important; height: 64px !important; }

  /* Category List */
  .category-item { 
    grid-template-columns: auto 1fr !important; 
    display: flex !important; 
    align-items: center !important;
    gap: 0.75rem !important; 
    padding: 0.85rem 1rem !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .category-stat { display: none !important; }
  .category-last-post { display: none !important; }
  .category-icon { width: 38px !important; height: 38px !important; font-size: 1.4rem; flex-shrink: 0 !important; }
  .category-info { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden !important; }
  .category-info h3 { font-size: 0.95rem; margin: 0 0 0.15rem 0; word-break: break-word; overflow-wrap: break-word; }
  .category-info p { font-size: 0.8rem; margin: 0; word-break: break-word; overflow-wrap: break-word; }

  /* Thread List */
  .thread-item { display: block; padding: 0.75rem 1rem; }
  .thread-icon, .thread-stat, .thread-last-post { display: none; }
  .thread-info h4 { font-size: 0.9rem; }

  /* Post Item */
  .post-item { display: flex !important; flex-direction: column !important; }
  .post-author {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.6rem 1rem !important;
    text-align: left !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    width: auto !important;
    min-width: unset !important;
  }
  .post-author img, .post-author .avatar-1-1 {
    width: 36px !important; height: 36px !important; min-width: 36px !important;
  }
  .post-author-info { display: none; }
  .post-content { padding: 0.85rem 1rem; }
  .post-body { font-size: 0.9rem; }

  /* BBCode Toolbar */
  .bbcode-toolbar { flex-wrap: wrap; gap: 0.25rem !important; }
  .bbcode-toolbar button { font-size: 0.75rem !important; padding: 0.3rem 0.5rem !important; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-control, .form-select, .form-textarea { font-size: 1rem; }
  .btn-group { flex-wrap: wrap; }

  /* Auth */
  .auth-page { margin: 1rem auto; padding: 0 0.5rem; }

  /* Profile */
  .profile-header { flex-direction: column; text-align: center; }

  /* Marketplace */
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .listing-detail-info { grid-template-columns: 1fr; }

  /* Admin Tables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-content { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

  /* Pagination */
  .pagination { gap: 0.15rem !important; }
  .page-link { padding: 0.4rem 0.65rem !important; font-size: 0.8rem !important; }

  /* Post actions */
  .post-actions { flex-wrap: wrap; gap: 0.3rem !important; }
  .post-actions .btn { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .listing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .welcome-banner h1 { font-size: 1.2rem !important; }
  .page-header > div:last-child { flex-wrap: wrap; gap: 0.35rem; }
  .card-header { font-size: 0.9rem; }
  .btn-small { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
}

/* ── Floating Telegram Live Chat Widget ─────────────────────── */
.floating-live-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
}

.live-chat-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(34, 158, 217, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
  cursor: pointer;
}

.live-chat-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 28px rgba(34, 158, 217, 0.65), 0 3px 10px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.live-chat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
}

.live-chat-btn:hover .live-chat-icon {
  transform: rotate(-6deg) scale(1.05);
}

.live-chat-online-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0d1117;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
}

.live-chat-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(42, 171, 238, 0.6);
  animation: liveChatPulse 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  pointer-events: none;
}

@keyframes liveChatPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.22);
    opacity: 0;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

/* Tooltip / Badge */
.live-chat-tooltip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(42, 171, 238, 0.4);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(34, 158, 217, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.live-chat-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(42, 171, 238, 0.4);
}

.live-chat-tooltip-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-chat-tooltip-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.live-chat-tooltip-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.3px;
}

.live-chat-btn:hover .live-chat-tooltip,
.floating-live-chat:hover .live-chat-tooltip,
.live-chat-tooltip.peek {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ── Scroll to Top Floating Button ─────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 88px;
  right: 29px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.2s ease, visibility 0.3s;
  transform: translateY(12px);
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.4);
}

/* ── Announcement Ticker Bar ───────────────────────────────── */
.announcement-ticker-container {
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 0.4rem 0;
  font-size: 0.84rem;
}
.announcement-ticker-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}
.ticker-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-content-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15px, black 95%, transparent);
}
.ticker-content-items {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
}
.ticker-content-items:hover {
  animation-play-state: paused;
}
.ticker-content-items span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}
.ticker-content-items strong {
  color: var(--text-primary);
}
@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Dictionary & Popover Styles ───────────────────────────── */
.bbcode-dict-popover {
  padding: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 1050;
}
.bbcode-dict-tab-btn {
  transition: all 0.15s ease;
}
.bbcode-dict-tab-btn:hover {
  color: #ffffff !important;
}
.bbcode-dict-tab-btn.active {
  background: #6366f1 !important;
  color: #ffffff !important;
  font-weight: 600;
}
.bbcode-dict-item, .bbcode-template-item {
  width: 100%;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bbcode-dict-item:hover, .bbcode-template-item:hover {
  filter: brightness(1.15);
  transform: translateX(2px);
}
.bbcode-local-img-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-light);
}

/* ── Mobile View Hardening (Full Responsiveness) ───────────── */
@media (max-width: 768px) {
  .ticker-badge { font-size: 0.68rem; padding: 0.15rem 0.4rem; }
  .announcement-ticker-container { font-size: 0.78rem; }
  .floating-live-chat { bottom: 18px; right: 18px; }
  .live-chat-btn { width: 48px; height: 48px; }
  .live-chat-icon svg { width: 25px; height: 25px; }
  .scroll-to-top { bottom: 76px; right: 23px; width: 38px; height: 38px; }
  .live-chat-tooltip { display: none; }
  .table-responsive, table { width: 100% !important; max-width: 100% !important; }
  .admin-reports-page, .marketplace-page, .marketplace-listing-page { width: 100% !important; }
}

/* ── Live Homepage Banners ───────────────────────────────────── */
.live-banner-container {
  margin-bottom: 1.5rem;
}

.live-banner-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, rgba(16, 26, 46, 0.95) 0%, rgba(22, 36, 62, 0.95) 50%, rgba(13, 22, 38, 0.95) 100%);
  border: 1px solid rgba(0, 136, 204, 0.45);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  color: var(--text-primary, #ffffff) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.live-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.15), transparent);
  transition: left 0.75s ease;
  pointer-events: none;
}

.live-banner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 255, 0.75);
  box-shadow: 0 8px 30px rgba(0, 136, 204, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.live-banner-card:hover::before {
  left: 100%;
}

.live-banner-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  flex: 1;
}

.live-banner-icon-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.live-banner-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.live-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.live-banner-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  min-width: 112px;
  box-sizing: border-box;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: liveBeaconPulse 1.6s infinite;
}

@keyframes liveBeaconPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.live-banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live-banner-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.live-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 155px;
  min-width: 155px;
  height: 44px;
  padding: 0 1.15rem;
  box-sizing: border-box;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0088cc 0%, #0099e6 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.live-banner-cta-label {
  flex: 1;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.live-banner-card:hover .live-banner-cta {
  background: linear-gradient(135deg, #0099e6 0%, #00aaff 100%);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.55);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .live-banner-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.9rem;
  }
  .live-banner-cta {
    width: 100% !important;
    min-width: 100% !important;
    justify-content: center;
    padding: 0.6rem 1rem;
    height: auto;
  }
}

/* ── Tools Banner Cyber Violet/Flame Accent ──────────────────── */
.live-banner-card-tools {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-banner-card-tools::before {
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.18), transparent);
}

.live-banner-card-tools:hover {
  border-color: rgba(192, 132, 252, 0.8);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.live-banner-icon-tools {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.45);
}

.live-pulse-badge-tools {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.12);
  border-color: rgba(255, 82, 82, 0.35);
}

.live-pulse-dot-tools {
  background-color: #ff5252;
  box-shadow: 0 0 8px #ff5252;
  animation: liveBeaconPulseRed 1.6s infinite;
}

@keyframes liveBeaconPulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(255, 82, 82, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.live-banner-cta-tools {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.38);
}

.live-banner-card-tools:hover .live-banner-cta-tools {
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

/* ── SpamHouse Banner Crimson Red/Rose Accent ────────────────── */
.live-banner-card-spam {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-banner-card-spam::before {
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.18), transparent);
}

.live-banner-card-spam:hover {
  border-color: rgba(251, 113, 133, 0.8);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.live-banner-icon-spam {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.45);
}

.live-pulse-badge-spam {
  color: #ff3838;
  background: rgba(255, 56, 56, 0.12);
  border-color: rgba(255, 56, 56, 0.35);
}

.live-pulse-dot-spam {
  background-color: #ff3838;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3838;
  animation: liveBeaconPulseRed 1.6s infinite;
}

.live-banner-cta-spam {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.38);
}

.live-banner-card-spam:hover .live-banner-cta-spam {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6);
}

/* ── KillHacks Animated Graphic Banner (1400x120) ────────────── */
.killhacks-banner-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 1.5rem auto;
}

.killhacks-graphic-banner-link {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 0, 128, 0.22);
  border: 1px solid rgba(255, 0, 128, 0.35);
  background: #101216;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.killhacks-graphic-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 0, 128, 0.45);
  border-color: rgba(255, 0, 128, 0.75);
}

.killhacks-graphic-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 120;
  object-fit: fill;
  display: block;
}

@media (max-width: 768px) {
  .killhacks-banner-wrapper {
    margin-bottom: 1rem;
  }
}

/* ── DefiWeb3 Animated Graphic Banner (1400x120) ─────────────── */
.defiweb3-banner-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: -0.5rem auto 1.5rem auto;
}

.defiweb3-graphic-banner-link {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 25px rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: #101216;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.defiweb3-graphic-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.45);
  border-color: rgba(59, 130, 246, 0.75);
}

.defiweb3-graphic-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 120;
  object-fit: fill;
  display: block;
}

@media (max-width: 768px) {
  .defiweb3-banner-wrapper {
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/* ── Live Traffic Counter with Country Flags ─────────────────────── */
.live-traffic-counter-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(124, 58, 237, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(124, 58, 237, 0.08);
}

.live-traffic-pulsing-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: trafficPulse 2s infinite ease-in-out;
}

@keyframes trafficPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.traffic-country-item:hover {
  background: rgba(124, 58, 237, 0.12) !important;
  border-color: rgba(124, 58, 237, 0.35) !important;
  transform: translateY(-1px);
}

/* ── Pinned Demanding Stuff in Marketplace ──────────────────────── */
.listing-card-pinned {
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.2) !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, rgba(22, 27, 34, 0.95) 100%) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.listing-card-pinned:hover {
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-3px);
}

.listing-pinned-badge {
  animation: pinnedGlow 3s infinite alternate ease-in-out;
}

@keyframes pinnedGlow {
  0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 5px rgba(245, 158, 11, 0.3); }
  100% { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 14px rgba(245, 158, 11, 0.7); }
}

/* ── Animated Modern AI Theme: Hero Banner ──────────────────────── */
.ai-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 3.2rem 1.5rem;
  margin-bottom: 1.75rem;
  background: radial-gradient(ellipse at 50% -10%, rgba(99, 102, 241, 0.22) 0%, rgba(13, 17, 34, 0.98) 55%, #070913 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 
              0 0 50px rgba(99, 102, 241, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.4s ease;
}

.ai-hero-banner:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 
              0 0 60px rgba(56, 189, 248, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Ambient Floating AI Energy Blobs */
.ai-hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ai-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.55;
  will-change: transform;
}

.ai-blob-1 {
  top: -15%;
  left: 15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%);
  animation: aiFloatBlob1 14s ease-in-out infinite alternate;
}

.ai-blob-2 {
  bottom: -20%;
  right: 15%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  animation: aiFloatBlob2 16s ease-in-out infinite alternate;
}

.ai-blob-3 {
  top: 30%;
  right: 40%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  animation: aiFloatBlob3 18s ease-in-out infinite alternate;
}

@keyframes aiFloatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

@keyframes aiFloatBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.2); }
  100% { transform: translate(40px, -30px) scale(0.9); }
}

@keyframes aiFloatBlob3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.4; }
  50% { transform: translate(-30px, 40px) scale(1.15); opacity: 0.65; }
  100% { transform: translate(50px, -20px) scale(1); opacity: 0.4; }
}

/* AI Scanning Laser Line */
.ai-scanline {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.15) 50%, rgba(168, 85, 247, 0.25) 75%, transparent 100%);
  transform: skewX(-20deg);
  animation: aiScanBeam 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes aiScanBeam {
  0% { left: -100%; }
  45% { left: 160%; }
  100% { left: 160%; }
}

/* AI Content Inner */
.ai-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* AI Status Badge */
.ai-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 1.35rem;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(10px);
}

.ai-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: aiDotPulse 1.6s infinite ease-in-out;
}

@keyframes aiDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 6px #38bdf8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #38bdf8, 0 0 20px #06b6d4; }
}

/* Hero Logo (Clean, No Circle) */
.ai-logo-container {
  margin: 0 auto 1.35rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ai-hero-logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.7));
}

/* AI Hero Title */
.ai-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 0.65rem 0;
  font-family: var(--font-heading) !important;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 25%, #c084fc 50%, #38bdf8 75%, #f472b6 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aiShimmerText 6s linear infinite;
  filter: drop-shadow(0 3px 12px rgba(139, 92, 246, 0.45));
}

@keyframes aiShimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subtitle */
.ai-hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 1.45rem auto;
  line-height: 1.55;
  font-weight: 400;
}

/* AI Feature Chips */
.ai-feature-chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.85rem;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.ai-chip svg {
  color: #a855f7;
  transition: color 0.25s ease;
}

.ai-chip:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.ai-chip:hover svg {
  color: #38bdf8;
}

/* Modern Glassmorphic AI Search Box */
.ai-search-form {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.ai-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(13, 18, 36, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 14px;
  padding: 0.35rem 0.45rem 0.35rem 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 
              0 0 22px rgba(99, 102, 241, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 
              0 0 35px rgba(56, 189, 248, 0.38), 
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.ai-search-icon {
  color: #a855f7;
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

.ai-search-box:focus-within .ai-search-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.ai-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.96rem;
  font-family: inherit;
  padding: 0.5rem 0;
}

.ai-search-input::placeholder {
  color: #64748b;
  transition: color 0.2s ease;
}

.ai-search-box:focus-within .ai-search-input::placeholder {
  color: #94a3b8;
}

.ai-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  background-size: 200% auto;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
  flex-shrink: 0;
}

.ai-search-btn:hover {
  background-position: right center;
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
}

@media (max-width: 768px) {
  .ai-hero-banner {
    padding: 2.2rem 1.1rem;
    border-radius: 14px;
  }
  .ai-hero-title {
    font-size: 2rem;
  }
  .ai-hero-subtitle {
    font-size: 1rem;
  }
  .ai-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}

@media (max-width: 520px) {
  .ai-search-btn span {
    display: none;
  }
  .ai-search-btn {
    padding: 0.65rem 0.85rem;
  }
}

/* ── Modern AI Theme: Forum Categories ────────────────────────── */
.ai-categories-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(10, 14, 26, 0.98) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.28) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.08) !important;
  backdrop-filter: blur(16px);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-categories-card:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.6), 0 0 45px rgba(56, 189, 248, 0.12) !important;
}

.ai-categories-header {
  padding: 1.15rem 1.4rem !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-categories-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ai-category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: aiDotPulse 1.8s infinite;
}

.ai-categories-heading {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 40%, #c084fc 75%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ai-header-accent-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 35%, #06b6d4 70%, transparent 100%);
}

.ai-new-thread-btn {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%) !important;
  background-size: 200% auto !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.25s ease !important;
}

.ai-new-thread-btn:hover {
  background-position: right center !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5) !important;
}

/* Specific Category AI Theme Palettes */
.ai-cat-announcements {
  --cat-color: #fbbf24;
  --cat-glow: rgba(251, 191, 36, 0.45);
  --cat-bg: rgba(245, 158, 11, 0.22);
  --cat-border: rgba(245, 158, 11, 0.4);
}

.ai-cat-general-discussion {
  --cat-color: #38bdf8;
  --cat-glow: rgba(56, 189, 248, 0.45);
  --cat-bg: rgba(6, 182, 212, 0.22);
  --cat-border: rgba(6, 182, 212, 0.4);
}

.ai-cat-technology {
  --cat-color: #c084fc;
  --cat-glow: rgba(192, 132, 252, 0.45);
  --cat-bg: rgba(139, 92, 246, 0.22);
  --cat-border: rgba(139, 92, 246, 0.4);
}

.ai-cat-gaming {
  --cat-color: #f43f5e;
  --cat-glow: rgba(244, 63, 94, 0.45);
  --cat-bg: rgba(236, 72, 153, 0.22);
  --cat-border: rgba(236, 72, 153, 0.4);
}

.ai-cat-marketplace-discussion,
.ai-cat-marketplace {
  --cat-color: #34d399;
  --cat-glow: rgba(52, 211, 153, 0.45);
  --cat-bg: rgba(16, 185, 129, 0.22);
  --cat-border: rgba(16, 185, 129, 0.4);
}

.ai-cat-off-topic {
  --cat-color: #fb923c;
  --cat-glow: rgba(251, 146, 60, 0.45);
  --cat-bg: rgba(249, 115, 22, 0.22);
  --cat-border: rgba(249, 115, 22, 0.4);
}

.ai-cat-feedback,
.ai-cat-feedback-suggestions {
  --cat-color: #818cf8;
  --cat-glow: rgba(129, 140, 248, 0.45);
  --cat-bg: rgba(99, 102, 241, 0.22);
  --cat-border: rgba(99, 102, 241, 0.4);
}

.ai-cat-cyber-security {
  --cat-color: #f87171;
  --cat-glow: rgba(248, 113, 113, 0.45);
  --cat-bg: rgba(239, 68, 68, 0.22);
  --cat-border: rgba(239, 68, 68, 0.4);
}

/* Category Rows */
.ai-category-item {
  display: grid;
  grid-template-columns: auto 1fr 100px 100px 220px;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(13, 18, 36, 0.4);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cat-color, #6366f1);
  box-shadow: 0 0 10px var(--cat-glow, rgba(99, 102, 241, 0.5));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ai-category-item:last-child {
  border-bottom: none;
}

.ai-category-item:hover {
  background: linear-gradient(90deg, var(--cat-bg, rgba(99, 102, 241, 0.12)) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
  transform: translateX(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-category-item:hover::before {
  opacity: 1;
}

/* Category AI Icon Emblem */
.ai-category-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: radial-gradient(circle at 35% 35%, var(--cat-bg, rgba(139, 92, 246, 0.25)) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--cat-border, rgba(139, 92, 246, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 14px var(--cat-glow, rgba(139, 92, 246, 0.2));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Cyber Scanning Flare on Icon Hover */
.ai-category-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.ai-category-item:hover .ai-category-icon::after {
  transform: translateX(100%);
}

.ai-category-icon .svg-icon {
  color: var(--cat-color, #a855f7);
  stroke: var(--cat-color, #a855f7);
  filter: drop-shadow(0 0 8px var(--cat-glow, rgba(168, 85, 247, 0.5)));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-category-item:hover .ai-category-icon {
  border-color: var(--cat-color, #38bdf8);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 25px var(--cat-glow, rgba(56, 189, 248, 0.45));
  transform: scale(1.06);
}

.ai-category-item:hover .ai-category-icon .svg-icon {
  transform: scale(1.12) rotate(3deg);
  filter: drop-shadow(0 0 12px var(--cat-color, #38bdf8));
}

/* Category Info */
.ai-category-info h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.ai-category-info h3 a {
  color: #f1f5f9 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ai-category-item:hover .ai-category-info h3 a {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.ai-category-info p {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* Category Stats */
.ai-category-stat {
  text-align: center;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.ai-category-item:hover .ai-category-stat {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(15, 23, 42, 0.7);
}

.ai-category-stat .stat-number {
  font-weight: 800;
  font-size: 0.95rem;
  color: #f8fafc;
  display: block;
}

.ai-category-stat .stat-label {
  color: #64748b;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Category Last Post */
.ai-category-last-post {
  font-size: 0.82rem;
  color: #94a3b8;
}

.ai-category-last-post .last-post-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.ai-category-last-post .last-post-title a {
  color: #cbd5e1 !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.ai-category-last-post .last-post-title a:hover {
  color: #a855f7 !important;
  text-decoration: underline !important;
}

.ai-user-accent {
  color: #c084fc;
}

/* Responsive adjustment for categories */
@media (max-width: 900px) {
  .ai-category-item {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
  }
  .ai-category-stat,
  .ai-category-last-post {
    display: none;
  }
}

/* ==========================================================================
   ⭐ VERIFIED HUB & VENDORS DIRECTORY (AI THEME)
   ========================================================================== */

/* Navbar Verified Link */
.nav-link-verified {
  position: relative;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.nav-link-verified:hover {
  color: #67e8f9 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.nav-verified-badge {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  display: inline-block;
  animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Page Layout */
.verified-hub-page {
  padding-bottom: 4rem;
}

/* Hero Banner */
.verified-hero-banner {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 2.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 20, 36, 0.98) 50%, rgba(20, 16, 41, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.12);
  padding: 3rem 2.5rem;
}

.verified-hero-glow {
  position: absolute;
  top: -80px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(168, 85, 247, 0.12) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.verified-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.verified-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.verified-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.verified-hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 780px;
}

.verified-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.hero-stat-pill {
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.hero-stat-pill:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.hero-stat-pill .stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: inherit;
}

.hero-stat-pill .stat-label {
  font-size: 0.76rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Controls Bar (Filter Tabs + Search) */
.verified-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.verified-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.verified-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.verified-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.verified-tab.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.verified-tab.tab-highlight {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.verified-tab.tab-highlight:hover,
.verified-tab.tab-highlight.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
}

.verified-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.verified-search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.verified-search-input {
  width: 100%;
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  color: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.verified-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

/* Hub Section Titles */
.verified-hub-section {
  margin-bottom: 3.5rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.section-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0;
}

/* Badges */
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

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

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Telegram Buttons */
.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0099e6 0%, #0088cc 100%);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45);
  transform: translateY(-1px);
}

/* Cards Grid */
.verified-cards-grid,
.channels-cards-grid,
.groups-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.guides-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.35rem;
}

/* Universal Entity Card */
.entity-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.entity-card:hover {
  background: rgba(20, 30, 55, 0.85);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
}

/* Vendor Cards */
.vendor-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.vendor-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.vendor-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
}

.vendor-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  background: rgba(15, 23, 42, 0.8);
  display: block;
}

/* Boss of Forum Card Highlight */
.vendor-card-boss {
  background: linear-gradient(135deg, rgba(20, 26, 50, 0.95) 0%, rgba(30, 25, 45, 0.92) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15) !important;
}

.vendor-card-boss:hover {
  border-color: rgba(245, 158, 11, 0.7) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-4px);
}

.vendor-card-boss .vendor-logo-img {
  border-color: #f59e0b !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4) !important;
  background: #0f172a !important;
  padding: 3px;
}

.channel-avatar-wrap,
.group-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.channel-logo-img,
.group-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: block;
}

.group-logo-img {
  border-color: rgba(168, 85, 247, 0.4);
}

.vendor-verified-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  border: 2px solid #0f172a;
  box-shadow: 0 0 8px #38bdf8;
}

.vendor-header-info {
  flex: 1;
  min-width: 0;
}

.vendor-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.vendor-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.vendor-name a {
  color: #f8fafc !important;
  text-decoration: none;
}

.vendor-name a:hover {
  color: #38bdf8 !important;
}

.vendor-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.vendor-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.vendor-deposit-pill {
  color: #fbbf24;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.vendor-rating {
  color: #cbd5e1;
  font-weight: 600;
}

.vendor-description {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  min-height: 4.2em;
  flex: 1;
}

.vendor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  min-height: 52px;
  align-content: flex-start;
}

.vendor-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.vendor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.vendor-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.vendor-actions {
  display: flex;
  gap: 0.5rem;
}

/* Channel Cards */
.channel-card-header,
.group-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  min-height: 80px;
}

.channel-icon-wrap,
.group-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.group-icon-wrap {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.channel-title-meta,
.group-title-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.channel-name-row,
.group-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.channel-name,
.group-name {
  font-size: 1.02rem;
  font-weight: 750;
  color: #f8fafc;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.channel-badge-wrap,
.group-badge-wrap {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
}

.channel-handle,
.group-type-tag {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.3;
}

.channel-description,
.group-description {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  min-height: 4.2em;
  flex: 1;
}

.channel-stats-row,
.group-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1.1rem;
  padding: 0.55rem 0.85rem;
  background: rgba(10, 15, 28, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 38px;
}

.group-badge-verified {
  color: #38bdf8;
  font-weight: 600;
}

.channel-card-footer,
.group-card-footer {
  margin-top: auto;
}

/* Guide Cards */
.guide-card {
  padding: 1.35rem;
}

.guide-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.guide-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22d3ee;
  flex-shrink: 0;
}

.guide-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #f8fafc;
  margin: 0.2rem 0 0 0;
}

.guide-description {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-tag {
  color: #64748b;
  font-weight: 600;
}

.guide-action-link {
  color: #22d3ee;
  font-weight: 700;
}

/* Application Banner Box */
.verification-application-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 18, 51, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.1);
  padding: 3rem 2.5rem;
}

.app-box-glow {
  position: absolute;
  top: -100px;
  left: 30%;
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
}

.app-box-content {
  position: relative;
  z-index: 2;
}

.app-header {
  margin-bottom: 2rem;
  max-width: 800px;
}

.app-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 0.75rem 0;
}

.app-subtitle {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.6;
}

.app-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.app-step-card {
  background: rgba(10, 15, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.35rem;
  transition: all 0.2s ease;
}

.app-step-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-2px);
}

.step-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: #f59e0b;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  font-family: inherit;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #f8fafc;
  margin: 0 0 0.4rem 0;
}

.step-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.app-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Responsive queries */
@media (max-width: 768px) {
  .verified-hero-banner {
    padding: 2rem 1.5rem;
  }
  .verified-hero-title {
    font-size: 1.75rem;
  }
  .verified-cards-grid,
  .channels-cards-grid,
  .groups-cards-grid {
    grid-template-columns: 1fr;
  }
  .verified-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .verified-search-box {
    max-width: 100%;
  }
  .verification-application-box {
    padding: 2rem 1.5rem;
  }
  .app-title {
    font-size: 1.6rem;
  }
}

/* Admin Change Logo Quick Button on Homepage Live Banners */
.admin-change-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.55);
  color: #c4b5fd !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5rem;
  vertical-align: middle;
  cursor: pointer;
  z-index: 10;
  position: relative;
}
.admin-change-logo-badge:hover {
  background: rgba(124, 58, 237, 0.6);
  border-color: #a78bfa;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

/* Scroll target highlight for admin card row */
.admin-card-row:target {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5), inset 0 0 15px rgba(6, 182, 212, 0.15) !important;
  animation: adminRowFlash 1.5s ease-out;
}
@keyframes adminRowFlash {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* ── Thread Hashtags Block & Badges ─────────────────────────── */
.thread-hashtags-block {
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid var(--border-color, #30363d);
}
.thread-hashtag-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c4b5fd !important;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.thread-hashtag-badge:hover {
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(124, 58, 237, 0.6);
  color: #ffffff !important;
  transform: translateY(-1px);
}
.quick-hashtag-btn {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.1);
  color: #c4b5fd;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-hashtag-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Container expansion on wide screens (1440px+) for 1400px Banners ── */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* ── Homepage 1400x120 Sponsor Banners Space ─────────────────────── */
.homepage-1400-banners-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 1.5rem auto;
}

.hp-1400-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
}

.hp-1400-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hp-1400-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseNeon 2s infinite ease-in-out;
}

.hp-1400-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hp-1400-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hp-1400-admin-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.hp-1400-admin-manage-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.hp-1400-banners-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-1400-banner-item {
  position: relative;
  width: 100%;
}

.hp-1400-banner-link {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #0d1117;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hp-1400-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.75);
}

.hp-1400-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 120;
  object-fit: fill;
  display: block;
}

.hp-1400-admin-quick-pill {
  position: absolute;
  top: 8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hp-1400-banner-item:hover .hp-1400-admin-quick-pill {
  opacity: 1;
}

.hp-1400-slot-num {
  font-weight: 700;
  color: #38bdf8;
}

.hp-1400-quick-edit-link {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
}

.hp-1400-quick-edit-link:hover {
  color: #fff;
  text-decoration: underline;
}

.hp-1400-empty-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(56, 189, 248, 0.04);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  gap: 1rem;
}

@media (max-width: 768px) {
  .homepage-1400-banners-section {
    margin-bottom: 1rem;
  }
  .hp-1400-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .hp-1400-admin-quick-pill {
    top: 5px;
    right: 6px;
    padding: 0.15rem 0.35rem;
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   PINNED ITEMS DRAG & DROP REORDERING (FORUM & MARKETPLACE)
   ========================================================================== */

/* Forum Category Pinned Reorder Controls */
.pin-reorder-ctrls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 4px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 6px;
  flex-shrink: 0;
  user-select: none;
}

.pin-drag-handle {
  cursor: grab;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 3px;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pin-drag-handle:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.1);
}

.pin-drag-handle:active {
  cursor: grabbing;
}

.pin-arrow-btns {
  display: flex;
  gap: 2px;
}

.btn-pin-move {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 0.62rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-pin-move:hover {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

/* Thread Item Drag States */
.thread-item-pinned {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.thread-item-pinned.is-dragging {
  opacity: 0.35 !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px dashed #f59e0b !important;
  transform: scale(0.99);
}

.thread-item-pinned.drag-over-top {
  border-top: 3px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

.thread-item-pinned.drag-over-bottom {
  border-bottom: 3px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

/* Marketplace Pinned Reorder Bar */
.marketplace-pin-reorder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  user-select: none;
}

.marketplace-pin-drag-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #f59e0b;
  font-weight: 700;
  cursor: grab;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.marketplace-pin-drag-handle:hover {
  background: rgba(245, 158, 11, 0.2);
}

.marketplace-pin-drag-handle:active {
  cursor: grabbing;
}

.marketplace-pin-arrows {
  display: flex;
  gap: 3px;
}

.btn-mp-pin-move {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.65rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-mp-pin-move:hover {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

/* Marketplace Card Drag States */
.listing-card-pinned {
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.listing-card-pinned.is-dragging {
  opacity: 0.35 !important;
  border: 1px dashed #f59e0b !important;
  transform: scale(0.97);
}

.listing-card-pinned.drag-over-left {
  border-left: 4px solid #f59e0b !important;
  box-shadow: -4px 0 15px rgba(245, 158, 11, 0.35) !important;
}

.listing-card-pinned.drag-over-right {
  border-right: 4px solid #f59e0b !important;
  box-shadow: 4px 0 15px rgba(245, 158, 11, 0.35) !important;
}

/* Global Reorder Toast */
.reorder-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  border: 1px solid #374151;
  color: #f9fafb;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(99, 102, 241, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 999999;
  display: none;
  align-items: center;
  gap: 8px;
  animation: reorderToastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reorder-toast.toast-success {
  border-color: #10b981;
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  color: #a7f3d0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(16, 185, 129, 0.35);
}

.reorder-toast.toast-error {
  border-color: #ef4444;
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  color: #fecaca;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(239, 68, 68, 0.35);
}

@keyframes reorderToastSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}










