/* ============================================================
   NETRIGO FORUM — forum.css
   Design System: Netrigo Design System v1
   Forum-specific components layered on top
   ============================================================ */

/* 1. FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* 2. DESIGN TOKENS */
:root {
  /* Backgrounds */
  --bg: #050505;
  --bg-2: #0a0a0a;
  --bg-3: #0f0f0f;

  /* Surfaces */
  --panel: rgba(255, 255, 255, 0.025);
  --panel-hover: rgba(255, 255, 255, 0.045);
  --panel-elevated: rgba(255, 255, 255, 0.04);

  /* Text */
  --text: #ffffff;
  --text-muted: #a8b3bb;
  --muted: #71717a;

  /* Accent crimson */
  --accent: #8B0000;
  --accent-mid: #a01212;
  --accent-bright: #c0392b;
  --accent-glow: rgba(192, 57, 43, 0.35);

  /* Border */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(139, 0, 0, 0.3);

  /* Shadow */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.8);
  --shadow-button: 0 8px 32px rgba(192, 57, 43, 0.4);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Layout */
  --max-w: 1160px;
  --header-h: 72px;
  --home-trending-peek: 240px;

  /* Status colors */
  --green: #4ade80;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --silver: #94a3b8;
}

/* 3. RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
}

ul,
ol {
  list-style: none;
}

textarea {
  font-family: var(--font-sans);
  resize: vertical;
}

/* 4. PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.75s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-mark {
  padding: 0.6rem 1.2rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  animation: preloader-pulse 1.8s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.preloader-bar {
  width: 220px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  width: 0;
  animation: preloader-load 1.6s ease forwards;
}

@keyframes preloader-load {
  to {
    width: 100%;
  }
}

@keyframes preloader-pulse {

  0%,
  100% {
    box-shadow: 0 0 48px rgba(192, 57, 43, 0.45);
  }

  50% {
    box-shadow: 0 0 72px rgba(192, 57, 43, 0.75);
    transform: scale(1.04);
  }
}

/* 5. TOAST */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  max-width: 360px;
  animation: toast-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.toast.toast-out {
  opacity: 0;
  transform: translateX(20px);
}

.toast-success {
  border-color: rgba(74, 222, 128, 0.3);
}

.toast-error {
  border-color: rgba(192, 57, 43, 0.4);
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.toast-error .toast-icon {
  background: rgba(192, 57, 43, 0.15);
  color: var(--accent-bright);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 6. HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.96);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  background: linear-gradient(135deg, #fff 0%, #ffccc7 50%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  background: rgba(139, 0, 0, 0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--panel-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Header icon buttons */
.header-icon-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  padding: 0 !important;
  border: 1px solid var(--border) !important;
  background: var(--panel) !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.header-icon-btn:hover {
  border-color: var(--accent-bright) !important;
  color: var(--accent-bright) !important;
  box-shadow: 0 0 10px var(--accent-glow) !important;
  background: rgba(139, 0, 0, 0.08) !important;
}

.header-icon-btn svg {
  display: block;
}

.unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-bright);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 10px;
  border: 2px solid var(--panel);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
}

/* Header search bar */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-search-input {
  width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 2.2rem 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  font-family: var(--font-sans);
  transition: width 0.3s, border-color 0.2s, background 0.2s;
  outline: none;
}

.header-search-input::placeholder {
  color: var(--muted);
}

.header-search-input:focus {
  width: 280px;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.07);
}

.header-search-icon {
  position: absolute;
  right: 0.75rem;
  font-size: 0.78rem;
  pointer-events: none;
  color: var(--muted);
}

/* Hide native clear-button in search input */
.header-search-input::-webkit-search-cancel-button {
  display: none;
}

/* Autocomplete Popup styling */
.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(139, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  z-index: 1100;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.header-search-results.hidden {
  display: none !important;
}

.search-result-item {
  padding: 0.625rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.18s;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.search-result-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-view-all {
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.04);
  border-top: 1px solid rgba(139, 0, 0, 0.12);
  transition: background 0.18s;
  cursor: pointer;
}

.search-view-all:hover {
  background: rgba(139, 0, 0, 0.1);
  color: var(--text);
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.filter-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--panel-hover);
}

.filter-chip.active {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--border-accent);
  color: var(--accent-bright);
}

/* Post continuation chain (same-author replies) */
.post-continuation {
  padding-top: 0.25rem;
  border-bottom: none;
}

.post-continuation .post-author-col {
  position: relative;
}

.post-chain-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--border-accent), transparent);
  border-radius: 2px;
  margin: 0 auto;
  align-self: stretch;
}

.post-chain-end {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.post-author-inline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}



/* User avatar in header */
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  object-fit: cover;
  cursor: pointer;
  transition: border-color 0.2s;
}

.header-avatar:hover {
  border-color: var(--accent-bright);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-xs);
  background: var(--panel);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle:checked+.menu-button span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle:checked+.menu-button span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked+.menu-button span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 7. HERO BACKGROUND */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 0%, transparent 100%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orb-drift 9s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 560px;
  height: 560px;
  background: rgba(139, 0, 0, 0.13);
  top: -140px;
  left: -120px;
}

.bg-orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(192, 57, 43, 0.08);
  bottom: -60px;
  right: -60px;
  animation-delay: -3.5s;
}

.bg-orb-3 {
  width: 280px;
  height: 280px;
  background: rgba(220, 40, 40, 0.05);
  top: 45%;
  left: 55%;
  animation-delay: -6s;
}

@keyframes orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(28px, -22px) scale(1.1);
  }
}

/* 8. SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.45s;
}

/* 9. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-bright));
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(192, 57, 43, 0.5);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: rgba(192, 57, 43, 0.05);
}

.btn-ghost {
  background: var(--panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--panel-hover);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-danger {
  background: linear-gradient(135deg, #7f1d1d, var(--accent-bright));
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  border-radius: 6px;
}

.btn-full {
  width: 100%;
}

.btn-loading {
  pointer-events: none;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-loading .btn-text {
  opacity: 0.5;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Google sign-in button */
.btn-google {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.btn-google:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

/* 10. FORM INPUTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(161, 161, 170, 0.45);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.form-textarea {
  min-height: 140px;
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-select option {
  background: #1a1a1a;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-error {
  font-size: 0.78rem;
  color: var(--accent-bright);
  display: none;
}

.form-error.show {
  display: block;
}

/* Checkbox */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid var(--border-hover);
  border-radius: 5px;
  background: var(--panel);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-field input:checked+.checkbox-box {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.checkbox-field input:checked+.checkbox-box::after {
  content: '✓';
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
}

.checkbox-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 11. LAYOUT */
.page-wrap {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.section-inner,
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 12. EYEBROW + HEADINGS */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: block;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

h1 em,
h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 0%, #ffccc7 45%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 13. GLASS CARD */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--panel-hover);
}

.card-featured {
  background: linear-gradient(140deg, rgba(139, 0, 0, 0.07), var(--panel));
  border-color: var(--border-accent);
}

/* 14. HERO (index page) */
.forum-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4rem 0.875rem;
  background: rgba(139, 0, 0, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.6);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(192, 57, 43, 0);
  }
}

/* 15. CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(139, 0, 0, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 0, 0, 0.15);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(192, 57, 43, 0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.category-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.category-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.badge-archive {
  background: rgba(139, 0, 0, 0.2);
  color: var(--accent-bright);
  border: 1px solid var(--border-accent);
}

.badge-blood {
  background: rgba(220, 40, 40, 0.12);
  color: #e06060;
  border: 1px solid rgba(220, 40, 40, 0.2);
}

.badge-forge {
  background: rgba(245, 158, 11, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-offtopic {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 16. THREAD LIST */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thread-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  position: relative;
}

.thread-item:first-child {
  border-top: 1px solid var(--border);
}

.thread-item:hover {
  background: var(--panel);
}

.thread-item.pinned {
  background: rgba(139, 0, 0, 0.04);
}

.thread-pin-icon {
  color: var(--accent-bright);
  font-size: 0.75rem;
  position: absolute;
  right: 1rem;
  top: 1.1rem;
}

.thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.thread-main {
  flex: 1;
  min-width: 0;
}

.thread-title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.thread-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.thread-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.thread-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.thread-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.thread-stat strong {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

/* PREFIX BADGES */
.prefix {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Blood & Silence Prefixes */
.prefix-lore {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.prefix-theory {
  background: rgba(139, 0, 0, 0.2);
  color: var(--accent-bright);
  border: 1px solid rgba(139, 0, 0, 0.3);
}

.prefix-art {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.prefix-guide {
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.prefix-cosplay {
  background: rgba(217, 70, 239, 0.12);
  color: #e879f9;
  border: 1px solid rgba(217, 70, 239, 0.25);
}

.prefix-fanfic {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.prefix-clip {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.25);
}

/* The Forge Prefixes */
.prefix-feedback {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.prefix-bug {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.prefix-suggestion {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.prefix-mod {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.prefix-tool {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.prefix-wip {
  background: rgba(132, 204, 22, 0.12);
  color: #a3e635;
  border: 1px solid rgba(132, 204, 22, 0.25);
}

/* The Bunker (Off-Topic) Prefixes */
.prefix-discussion {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.prefix-meme {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.prefix-media {
  background: rgba(147, 51, 234, 0.12);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.prefix-chat {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.prefix-gaming {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.prefix-tech {
  background: rgba(71, 85, 105, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(71, 85, 105, 0.25);
}

.prefix-intro {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

/* The Archive (Official) Prefixes */
.prefix-announcement {
  background: rgba(139, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(192, 57, 43, 0.5);
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.2);
}

.prefix-devlog {
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.prefix-patch {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.prefix-event {
  background: rgba(202, 138, 4, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

.prefix-community {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.prefix-preview {
  background: rgba(192, 38, 211, 0.15);
  color: #f472b6;
  border: 1px solid rgba(192, 38, 211, 0.3);
}

/* DEV STATUS BADGES */
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-badge-responded {
  background: rgba(192, 57, 43, 0.25);
  color: #ff6b6b;
  border: 1px solid rgba(192, 57, 43, 0.4);
  animation: glow-badge 2s ease-in-out infinite alternate;
}

.dev-badge-investigating {
  background: rgba(245, 158, 11, 0.2);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dev-badge-resolved {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

@keyframes glow-badge {
  from {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4);
  }

  to {
    box-shadow: 0 0 8px 2px rgba(192, 57, 43, 0.2);
  }
}

.dev-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* TRUST LEVEL BADGES */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-observer {
  background: rgba(113, 113, 122, 0.2);
  color: var(--muted);
  border: 1px solid rgba(113, 113, 122, 0.2);
}

.trust-member {
  background: rgba(139, 0, 0, 0.2);
  color: var(--accent-bright);
  border: 1px solid var(--border-accent);
}

.trust-moderator {
  background: rgba(245, 158, 11, 0.2);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.trust-dev {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.4), rgba(192, 57, 43, 0.25));
  color: #ff6b6b;
  border: 1px solid rgba(192, 57, 43, 0.5);
}

/* WARN BADGES */
.warn-1 {
  color: var(--yellow);
  font-size: 1rem;
}

.warn-2 {
  color: var(--accent-bright);
  font-size: 1rem;
  animation: pulse-warn 2s ease-in-out infinite;
}

@keyframes pulse-warn {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.5
  }
}

/* 17. THREAD DETAIL PAGE */
.thread-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.thread-header h1 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  margin-bottom: 0.75rem;
}

.thread-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-author-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.post-author-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-content-col {
  min-width: 0;
}

.post-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.post-body p+p {
  margin-top: 1rem;
}

.post-body code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.post-timestamp {
  font-size: 0.75rem;
  color: var(--muted);
}

.post.dev-post {
  background: rgba(139, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(139, 0, 0, 0.15);
}

.post.dev-post .post-avatar {
  border-color: var(--accent-bright);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.3);
}

/* Reply form */
.reply-form-wrap {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.reply-form-wrap h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* 18. SIDEBAR */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* 19. AUTH PAGES */
.auth-page-split {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.auth-branding-panel {
  flex: 1.1;
  background: #040404;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.auth-branding-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.branding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(139, 0, 0, 0.15);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  margin-bottom: 2rem;
}

.branding-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.branding-title em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, #ffccc7 50%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.branding-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.auth-form-panel {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #020202;
  position: relative;
}

.auth-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.trust-levels-info {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.trust-levels-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.trust-levels-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-level-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
}

.trust-level-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.auth-logo-mark {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.4);
}

.auth-logo-title {
  font-size: 1.25rem;
  font-weight: 900;
}

.auth-logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

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

.auth-footer a {
  color: var(--accent-bright);
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .auth-page-split {
    flex-direction: column;
  }

  .auth-branding-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
    padding: 1.5rem;
  }
}

/* 20. PROFILE PAGE */
.profile-hero {
  padding: 3rem 0 2rem;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  flex-wrap: wrap;
}

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

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-accent);
  box-shadow: 0 0 24px rgba(139, 0, 0, 0.3);
}

.profile-avatar.quarantined {
  filter: grayscale(1);
  border-color: var(--muted);
  box-shadow: none;
}

.profile-warn-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 1.25rem;
}

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

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.profile-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.profile-stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Quarantine banner */
.quarantine-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--yellow);
}

/* 21. ADMIN PANEL */
.admin-section {
  padding: 2rem 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  width: fit-content;
}

.admin-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab.active {
  background: var(--panel-elevated);
  color: var(--text);
}

.admin-tab:hover:not(.active) {
  color: var(--text);
}

/* 22. 404 / 403 PAGES */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-code {
  font-size: clamp(5rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.4) 0%, var(--accent-bright) 50%, rgba(139, 0, 0, 0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: glitch 4s infinite;
}

@keyframes glitch {

  0%,
  90%,
  100% {
    transform: none;
    filter: none;
  }

  91% {
    transform: translate(-3px, 1px);
    filter: hue-rotate(10deg);
  }

  92% {
    transform: translate(3px, -1px);
    filter: hue-rotate(-10deg);
  }

  93% {
    transform: none;
  }
}

.error-title {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.terminal-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.05);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.8;
  width: 100%;
  max-width: 500px;
}

.terminal-box .prompt {
  color: var(--muted);
  margin-right: 0.5rem;
}

/* 23. LEGAL PAGE */
.legal-section {
  padding: 3rem 0;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-toc a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  display: block;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.05);
}

/* Complaint form */
.complaint-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 24. MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fade-in 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.2s;
}

.modal-close:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 25. BUG TEMPLATE */
.bug-template {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bug-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  display: block;
}

/* 26. SPOILER */
.spoiler-wrap {
  position: relative;
}

.spoiler-blur {
  filter: blur(8px);
  transition: filter 0.3s;
  pointer-events: none;
  user-select: none;
}

.spoiler-reveal-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.7);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  transition: background 0.2s;
  border: none;
}

.spoiler-reveal-btn:hover {
  background: rgba(5, 5, 5, 0.5);
}

/* 27. NEW THREAD FORM */
.new-thread-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prefix-selector {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.prefix-option {
  display: none;
}

.prefix-label {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--panel);
  color: var(--text-muted);
}

.prefix-option:checked+.prefix-label {
  color: var(--text);
}

.prefix-option[value="THEORY"]:checked+.prefix-label {
  border-color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.2);
  color: var(--accent-bright);
}

.prefix-option[value="FEEDBACK"]:checked+.prefix-label {
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.prefix-option[value="BUG"]:checked+.prefix-label {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.prefix-option[value="ART"]:checked+.prefix-label {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.prefix-option[value="ANNOUNCEMENT"]:checked+.prefix-label {
  border-color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.35);
  color: #fff;
}

/* Bug template (hidden by default, shown when BUG selected) */
.bug-template-section {
  display: none;
}

.bug-template-section.visible {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bug-template-header {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.82rem;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* 28. SEARCH BAR */
.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* 29. PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.page-btn.active {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* 30. EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.88rem;
}

/* 31. LOADING SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-hover) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-xs);
}

@keyframes skeleton-wave {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 32. FILTER BAR */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.filter-chip {
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-chip.active {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--border-accent);
  color: var(--accent-bright);
}

/* 33. FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.footer-brand {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-brand strong {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-bright);
}

/* 34. DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* 35. ONLINE COUNT */
.online-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* 36. RESPONSIVE */
@media (max-width: 900px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    display: none;
  }

  .menu-toggle:checked~.site-nav {
    display: flex;
  }

  .nav-link {
    padding: 0.875rem 1rem;
    width: 100%;
    border-radius: var(--radius-xs);
  }

  .header-actions {
    gap: 0.5rem;
  }

  .auth-card {
    padding: 1.75rem;
  }

  .post {
    display: flex;
    flex-direction: column;
  }

  .post-avatar {
    width: 36px;
    height: 36px;
  }

  .thread-stats {
    display: none;
  }

  .admin-table {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .thread-item {
    flex-wrap: wrap;
  }

  .profile-header {
    flex-direction: column;
  }

  .error-code {
    font-size: 8rem;
  }
}

/* 37. SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 0, 0, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 57, 43, 0.5);
}

/* 38. SELECTION */
::selection {
  background: rgba(192, 57, 43, 0.35);
  color: #fff;
}

/* ============================================================
   39. PREMIUM HOMEPAGE OVERHAUL STYLES
   ============================================================ */

/* 3D Cyber Grid Background for Hero */
.bg-grid-3d {
  position: absolute;
  inset: -100% -50% -50% -50%;
  background-image:
    linear-gradient(rgba(139, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(65deg) translateY(0);
  animation: grid-scroll 32s linear infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

@keyframes grid-scroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 1000px;
  }
}

/* Scanline overlay */
.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* Glow orb styling */
.hero-glow-radial {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(192, 57, 43, 0.15) 0%, transparent 100%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Premium Title & Hero Layout */
.hero-layout-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-layout-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-subtitle-glow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: 800;
  color: var(--accent-bright);
  text-shadow: 0 0 12px rgba(192, 57, 43, 0.6);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Category Grid & Cards overhaul */
.category-card {
  --cat-color-rgb: 139, 0, 0;
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.7), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--cat-color-rgb), 0.7), transparent);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--cat-color-rgb), 0.45);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(var(--cat-color-rgb), 0.15),
    0 0 1px 1px rgba(var(--cat-color-rgb), 0.25);
  background: linear-gradient(135deg, rgba(25, 20, 20, 0.75), rgba(15, 10, 10, 0.85));
}

.category-card:hover::after {
  opacity: 1;
}

/* Category individual themes */
#cat-the-archive {
  --cat-color-rgb: 192, 57, 43;
}

#cat-blood-silence {
  --cat-color-rgb: 224, 96, 96;
}

#cat-the-forge {
  --cat-color-rgb: 245, 158, 11;
}

#cat-off-topic {
  --cat-color-rgb: 59, 130, 246;
}

.category-icon {
  background: linear-gradient(135deg, rgba(var(--cat-color-rgb), 0.15), rgba(var(--cat-color-rgb), 0.04));
  border-color: rgba(var(--cat-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, rgba(var(--cat-color-rgb), 0.3), rgba(var(--cat-color-rgb), 0.1));
  border-color: rgba(var(--cat-color-rgb), 0.6);
  box-shadow: 0 0 15px rgba(var(--cat-color-rgb), 0.3);
}

/* Telemetry Panel (System Status Widget) */
.telemetry-panel {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 0, 0, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--accent-bright);
}

.telemetry-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(192, 57, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.telemetry-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-header .status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-node-graph {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  margin: 1rem 0;
  height: 16px;
}

.telemetry-node-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
  animation: node-flicker 2.5s infinite alternate;
}

@keyframes node-flicker {

  0%,
  100% {
    background: rgba(255, 255, 255, 0.05);
  }

  50% {
    background: rgba(192, 57, 43, 0.25);
  }
}

.telemetry-node-bar:nth-child(even) {
  animation-delay: 0.5s;
}

.telemetry-node-bar:nth-child(3n) {
  animation-delay: 1s;
}

.telemetry-panel .data-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.telemetry-panel .data-line strong {
  color: var(--text);
}

/* Spotlight Console Section */
.spotlight-console {
  background: rgba(8, 8, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 3.5rem;
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.spotlight-console::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 57, 43, 0.4), transparent);
}

.console-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.console-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.console-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.console-tab:hover {
  color: var(--text);
}

.console-tab.active {
  color: #fff;
  background: rgba(192, 57, 43, 0.45);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.console-pane {
  display: none;
  animation: pane-slide 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.console-pane.active {
  display: block;
}

@keyframes pane-slide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  min-height: 220px;
}

@media (min-width: 600px) {
  .spotlight-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .spotlight-card {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spotlight-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.spotlight-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(192, 57, 43, 0.3);
  transform: translateY(-2px);
}

.spotlight-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.spotlight-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.75rem;
}

/* Rules / Protocol list custom styling */
.protocol-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.protocol-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.2s, background 0.2s;
}

.protocol-item:hover {
  border-color: rgba(192, 57, 43, 0.25);
  background: rgba(192, 57, 43, 0.02);
}

.protocol-tag {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.68rem;
}

.protocol-text {
  color: var(--text-muted);
}

/* Premium scrollbar/badge details */
.card-featured {
  border-left: 3px solid var(--accent-bright) !important;
}

/* Alert animations */
@keyframes alert-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes alert-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Warning & Media Moderation UI */
.penalty-preview-wrap {
  background: #070707;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.penalty-preview-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.media-moderation-placeholder {
  background: rgba(20, 20, 20, 0.4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin: 0.5rem auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}

.media-moderation-placeholder.pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.03);
  color: var(--yellow);
}

.media-moderation-placeholder.rejected {
  border-color: rgba(192, 57, 43, 0.4);
  background: rgba(192, 57, 43, 0.03);
  color: var(--accent-bright);
}

.media-preview-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0.5rem 0;
}

.media-moderation-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
}

.media-moderation-badge.pending-preview {
  border-color: var(--yellow);
  color: var(--yellow);
}

.media-moderation-badge.approved {
  border-color: var(--green);
  color: var(--green);
}

.media-moderation-badge.rejected {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* ─── PHASE 10 ADDITIONS: LOGIN, CHAT, TIMELINE & SEARCH ─── */

/* 1. Global Header Search */
.header-search-wrap {
  position: relative;
  width: 200px;
  margin-left: 1.5rem;
}

.header-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.45rem 1rem 0.45rem 2.25rem;
  font-size: 0.8rem;
  color: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-bright);
  box-shadow: 0 0 15px rgba(192, 57, 43, 0.2);
  outline: none;
  width: 250px;
}

.header-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  font-size: 0.85rem;
}

.header-search-input:focus+.header-search-icon {
  color: var(--accent-bright);
}

@media (max-width: 900px) {
  .header-search-wrap {
    display: none;
  }
}

/* 2. Login Page Container & Sidebar */
.login-page-container {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 100vh;
  background: #020202;
  position: relative;
  overflow: hidden;
}

.login-sidebar {
  background: rgba(8, 8, 8, 0.9);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  justify-content: space-between;
}

.login-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-sidebar-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-bright));
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.4);
}

.login-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
}

.login-sidebar-item {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}

.login-sidebar-item:hover {
  color: #fff;
  background: var(--panel-hover);
  border-color: var(--border);
}

.login-sidebar-item.active {
  color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.1);
  border-color: var(--border-accent);
}

.login-sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  background: var(--bg-3);
  object-fit: cover;
  transition: border-color 0.2s;
}

.login-sidebar-avatar:hover {
  border-color: var(--accent-bright);
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
  flex-direction: column;
  width: 100%;
}

.login-main .bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0.03) 75%, transparent);
  box-shadow: 0 0 100px 30px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}

/* Auth Card Tabs */
.auth-card-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}

.auth-card-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card-tab:hover {
  color: #fff;
}

.auth-card-tab.active {
  color: #fff;
  border-color: var(--accent-bright);
  text-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-bright);
  width: 14px;
  height: 14px;
}

.auth-forgot-link {
  color: var(--accent-bright);
  font-weight: 600;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .login-page-container {
    grid-template-columns: 1fr;
  }

  .login-sidebar {
    display: none;
  }

  .login-main {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

/* 3. Thread Nested Replies & Connecting Lines */
.post.nested-reply {
  position: relative;
}

.post.nested-reply::before {
  content: '';
  position: absolute;
  top: 18px;
  /* aligns with center of 36px avatar */
  left: -1.25rem;
  width: 1.25rem;
  height: 20px;
  border-bottom: 2px solid rgba(139, 0, 0, 0.25);
  border-left: 2px solid rgba(139, 0, 0, 0.25);
  border-bottom-left-radius: 8px;
}

/* Timeline Vertical Line for same-author consecutive replies */
.post.timeline-start::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 24px;
  width: 2px;
  height: calc(100% + 1.25rem);
  background: linear-gradient(180deg, var(--accent-bright) 0%, rgba(139, 0, 0, 0.06) 100%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.post.timeline-middle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: calc(100% + 1.25rem);
  background: rgba(139, 0, 0, 0.08);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.post.timeline-end::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.08) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.post.consecutive-reply {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: none;
}

.post.consecutive-reply .post-author-col {
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.post.consecutive-reply .post-content-col {
  grid-column: 2 / span 1;
}

.post.consecutive-reply::before {
  display: none;
}

.reply-to-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Replying banner in reply form */
.replying-to-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 0, 0, 0.08);
  border: 1px solid var(--border-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.replying-to-banner span {
  color: var(--accent-bright);
  font-weight: 600;
}

.replying-to-banner button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.replying-to-banner button:hover {
  color: #fff;
}

/* 4. Vault Direct Messages Console Layout */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - var(--header-h) - 4rem);
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 1.5rem;
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
}

.chat-sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.chat-list-item:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 255, 255, 0.03);
}

.chat-list-item.active {
  background: rgba(139, 0, 0, 0.08);
  border-color: var(--border-accent);
  box-shadow: 0 0 15px rgba(192, 57, 43, 0.05);
}

.chat-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
}

.chat-list-item.active .chat-item-avatar {
  border-color: var(--accent-bright);
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.chat-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-time {
  font-size: 0.68rem;
  color: var(--muted);
}

.chat-item-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-preview.unread {
  font-weight: 700;
  color: #fff;
}

.chat-item-badge {
  background: var(--accent-bright);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
}

.chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-main-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
  padding: 2rem;
}

.chat-main-placeholder span {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(5, 5, 5, 0.4);
}

.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: 75%;
}

.chat-msg-row.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-row.received {
  align-self: flex-start;
}

.chat-msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #fff;
  position: relative;
  word-break: break-word;
}

.chat-msg-row.sent .chat-msg-bubble {
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-bright));
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}

.chat-msg-row.received .chat-msg-bubble {
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.chat-msg-row.sent .chat-msg-bubble.redacted,
.chat-msg-row.received .chat-msg-bubble.redacted {
  background: rgba(192, 57, 43, 0.1);
  border: 1px dashed var(--accent-bright);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.chat-msg-sender-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.chat-msg-time {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.35rem;
  display: block;
  text-align: right;
}

.chat-msg-row.received .chat-msg-time {
  text-align: left;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.chat-input-bar {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: #fff;
  height: 42px;
  resize: none;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

.chat-textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .chat-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - var(--header-h) - 2rem);
  }

  .chat-sidebar {
    display: flex;
  }

  .chat-sidebar.hidden-mobile {
    display: none;
  }

  .chat-main {
    display: none;
  }

  .chat-main.active-mobile {
    display: flex;
  }
}

/* ────────────────────────────────────────────────────────── */
/* GAME AD: PROJECT BLOOD & SILENCE                           */
/* ────────────────────────────────────────────────────────── */
.card-ad {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.15), rgba(10, 10, 10, 0.95)) !important;
  border: 1px solid var(--accent-bright) !important;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

.ad-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-bright);
  opacity: 0.5;
  animation: ad-scan 3s linear infinite;
}

@keyframes ad-scan {
  0% {
    top: 0%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0%;
  }
}

/* ────────────────────────────────────────────────────────── */
/* CUSTOM NETRIGO CONTEXT MENU STYLING                       */
/* ────────────────────────────────────────────────────────── */
.netrigo-contextmenu {
  position: fixed;
  z-index: 10000;
  width: 220px;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius-xs);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-glow);
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  display: none;
  animation: context-menu-fade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes context-menu-fade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.netrigo-contextmenu .menu-header {
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-bright);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.netrigo-contextmenu .menu-item {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
}

.netrigo-contextmenu .menu-item:hover {
  color: #fff;
  background: rgba(192, 57, 43, 0.15);
  padding-left: 1.25rem;
}

.netrigo-contextmenu .menu-item.text-danger {
  color: var(--accent-bright);
}

.netrigo-contextmenu .menu-item.text-danger:hover {
  background: rgba(192, 57, 43, 0.25);
  color: #fff;
}

.netrigo-contextmenu .menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.35rem 0;
}

/* ============================================================
   NETRIGO PREMIUM POST CARD & COMMENT TREE STYLES (IMAGE 4)
   ============================================================ */

.post-card-premium {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  position: relative;
}

.post-card-premium:hover {
  border-color: rgba(192, 57, 43, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(192, 57, 43, 0.05);
}

.post-card-premium.dev-post-premium {
  border-color: rgba(192, 57, 43, 0.4);
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.04) 0%, rgba(10, 10, 10, 0.95) 100%);
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.05);
}

.post-header-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.post-author-info-premium {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-avatar-premium {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
}

.post-card-premium:hover .post-avatar-premium {
  border-color: var(--accent-bright);
  transform: scale(1.03);
}

.post-author-meta-premium {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.post-author-name-premium {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author-title-premium {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-timestamp-premium {
  font-size: 0.72rem;
  color: var(--muted);
}

.post-body-premium {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
  word-wrap: break-word;
}

.post-body-premium p+p {
  margin-top: 0.75rem;
}

/* Actions & Reactions */
.post-metrics-bar-premium {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.post-metric-btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-metric-btn-premium:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.post-metric-btn-premium.active-like {
  background: rgba(192, 57, 43, 0.15);
  color: var(--accent-bright);
  border-color: rgba(192, 57, 43, 0.35);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.15);
}

.post-metric-btn-premium.active-dislike {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.post-footer-actions-premium {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Comments divider & filters */
.comments-section-header-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1.25rem 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.comments-title-premium {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.comments-sort-tabs-premium {
  display: flex;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  padding: 2px;
  border-radius: 8px;
}

.sort-tab-btn-premium {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-tab-btn-premium:hover {
  color: #fff;
}

.sort-tab-btn-premium.active {
  background: var(--accent-bright);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Comments Nested Hierarchy Guide Lines */
.reply-tree-node-premium {
  margin-bottom: 1rem;
  position: relative;
}

.replies-children-premium {
  margin-left: 2rem;
  border-left: 2px solid rgba(192, 57, 43, 0.12);
  padding-left: 1.25rem;
  transition: border-color 0.25s ease;
  margin-top: 0.5rem;
}

.replies-children-premium:hover {
  border-color: rgba(192, 57, 43, 0.35);
}

.reply-tree-node-premium.nested-reply-node::before {
  content: '';
  position: absolute;
  top: 21px;
  /* aligns with center of 40px avatar */
  left: -1.25rem;
  width: 1.25rem;
  height: 16px;
  border-bottom: 2px solid rgba(192, 57, 43, 0.12);
  border-left: 2px solid rgba(192, 57, 43, 0.12);
  border-bottom-left-radius: 8px;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.replies-children-premium:hover>.reply-tree-node-premium.nested-reply-node::before {
  border-color: rgba(192, 57, 43, 0.35);
}

/* Premium Text Formatting Editor Toolbar integration */
.formatting-toolbar {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(13, 14, 18, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  align-items: center;
  flex-wrap: wrap;
}

.formatting-toolbar+textarea,
.formatting-toolbar+.form-textarea {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top-color: rgba(255, 255, 255, 0.05) !important;
}

.formatting-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formatting-btn:hover {
  color: var(--text);
  background: rgba(192, 57, 43, 0.15);
  border-color: var(--accent-bright);
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.25);
}

/* Forum controls & filter bar overhaul */
.forum-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.forum-controls-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

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

.forum-controls-search-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 280px;
}

.forum-controls-search-wrapper {
  position: relative;
  flex: 1;
}

.forum-controls-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
}

.forum-controls-search-input {
  width: 100%;
  height: 38px;
  padding: 0.3rem 0.75rem 0.3rem 2.25rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.forum-controls-search-input:focus {
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.15);
}

.forum-controls-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.forum-controls-sort-select {
  height: 38px;
  padding: 0.3rem 2rem 0.3rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.forum-controls-sort-select:focus {
  border-color: var(--accent-bright) !important;
}

/* Premium Filter Chips styling */
.filter-chip-premium {
  padding: 0.35rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip-premium:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.filter-chip-premium.active {
  background: rgba(192, 57, 43, 0.12);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.15);
}


/* ============================================================
   PREMIUM CYBERPUNK HOMEPAGE & SOCIALS OVERHAUL
   ============================================================ */

/* Advanced Neon Category Cards */
.category-card {
  position: relative;
  background: rgba(10, 10, 12, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
}

/* Custom glows per category */
.category-card.cat-the-archive:hover {
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2) !important;
  transform: translateY(-6px) scale(1.02) !important;
}

.category-card.cat-blood-silence:hover {
  border-color: rgba(192, 57, 43, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(192, 57, 43, 0.2) !important;
  transform: translateY(-6px) scale(1.02) !important;
}

.category-card.cat-the-forge:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-6px) scale(1.02) !important;
}

.category-card.cat-off-topic:hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.2) !important;
  transform: translateY(-6px) scale(1.02) !important;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.category-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(5deg);
}

.category-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Dynamic Diagnostics Hub */
.telemetry-panel {
  background: rgba(8, 8, 10, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--radius-sm) !important;
  padding: 1.5rem !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(192, 57, 43, 0.05) !important;
  backdrop-filter: blur(16px) !important;
  font-family: var(--font-mono) !important;
  width: 100% !important;
  max-width: 380px !important;
  position: relative;
  overflow: hidden;
}

.telemetry-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  animation: scan-line-horizontal 3s linear infinite;
}

@keyframes scan-line-horizontal {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.telemetry-header {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-bright) !important;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.telemetry-header .status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
}

.pulse-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-glow 1.5s infinite alternate;
}

.data-line {
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.data-line strong {
  color: #fff;
}

/* Neon Badges and Labels */
.badge-archive {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.badge-blood {
  color: #c0392b !important;
  background: rgba(192, 57, 43, 0.1) !important;
  border: 1px solid rgba(192, 57, 43, 0.2) !important;
}

.badge-forge {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.badge-offtopic {
  color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* Security Modal Visual Override */
.modal-backdrop-premium {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop-premium.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card-premium {
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  width: 90%;
  max-width: 440px;
  padding: 2.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 30px rgba(192, 57, 43, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop-premium.active .modal-card-premium {
  transform: scale(1);
}

.modal-title-premium {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-desc-premium {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Connected Social Badges & Handles on Profile */
.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.profile-social-link.social-discord {
  background: rgba(88, 101, 242, 0.1);
  color: #5865F2;
  border-color: rgba(88, 101, 242, 0.2);
}

.profile-social-link.social-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  transform: translateY(-2px);
}

.profile-social-link.social-steam {
  background: rgba(27, 40, 56, 0.3);
  color: #66c0f4;
  border-color: rgba(102, 192, 244, 0.2);
}

.profile-social-link.social-steam:hover {
  background: rgba(27, 40, 56, 0.5);
  transform: translateY(-2px);
}

.profile-social-link.social-twitch {
  background: rgba(145, 70, 255, 0.1);
  color: #a970ff;
  border-color: rgba(145, 70, 255, 0.2);
}

.profile-social-link.social-twitch:hover {
  background: rgba(145, 70, 255, 0.2);
  transform: translateY(-2px);
}

.linked-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s;
}

.linked-account-row:hover {
  border-color: var(--border-hover);
}

/* ============================================================
   SHOWCASE GRID & IMGAMER STYLING
   ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.showcase-main {
  position: relative;
  background-image: url('../assets/blood_silence_ad.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  padding: 2.5rem;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md), 0 0 30px rgba(139, 0, 0, 0.15);
  overflow: hidden;
}

.showcase-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.6) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.showcase-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow-accent {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
}

.showcase-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.showcase-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 620px;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.showcase-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.showcase-btn {
  height: 44px;
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.steam-btn {
  background: linear-gradient(135deg, #1b2838 0%, #101822 100%);
  border: 1px solid #66c0f4;
  color: #66c0f4;
  box-shadow: 0 4px 20px rgba(102, 192, 244, 0.2);
}

.steam-btn:hover {
  background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
  border-color: #8cd0f8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 192, 244, 0.35);
}

.showcase-sidebar {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.showcase-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.live-pulse {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-weight: 900;
  font-size: 0.7rem;
}

.pulse-icon {
  width: 6px;
  height: 6px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-live 1.5s infinite alternate;
}

@keyframes pulse-live {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
  }

  100% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.25s ease;
}

.trending-item:hover {
  background: var(--panel-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.trending-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.trending-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trending-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.trending-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.trending-skeleton {
  height: 66px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.01) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.6s infinite;
  border: 1px solid var(--border);
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   SYSTEM DIAGNOSTICS ROW
   ============================================================ */
.diagnostics-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .diagnostics-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .diagnostics-bar {
    grid-template-columns: repeat(6, 1fr);
  }
}

.diag-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.diag-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.diag-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.diag-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.diag-badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.badge-green {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

/* ============================================================
   TRENDING INTEL PIPELINE (Horizontal Layout)
   ============================================================ */
.trending-section-new {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.trending-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.trending-grid-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .trending-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .trending-grid-new {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trending-card-premium {
  position: relative;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(24px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trending-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(192, 57, 43, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.trending-card-premium:hover::before {
  opacity: 1;
}

.trending-card-premium:hover {
  transform: translateY(-5px);
  background: rgba(15, 15, 15, 0.6);
  border-color: var(--accent-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(192, 57, 43, 0.25);
}

.trending-card-thumb-wrap {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #000;
}

.trending-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trending-card-no-media-preview {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-accent);
  background: linear-gradient(135deg, rgba(18, 10, 10, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  box-shadow: inset 0 0 15px rgba(139, 0, 0, 0.08);
}

.trending-card-no-media-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}

.no-media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-bright);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.no-media-tag {
  font-weight: 700;
}

.no-media-status {
  opacity: 0.6;
}

.no-media-content-text {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-family: var(--font-sans);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.no-media-tech-decor {
  position: absolute;
  bottom: 8px;
  right: 8px;
  opacity: 0.12;
  color: var(--accent-bright);
  pointer-events: none;
  z-index: 1;
}

.no-media-tech-icon {
  display: block;
}

.no-media-decor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  opacity: 0.5;
  z-index: 2;
}

.no-media-decor .decor-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.35), transparent);
}

.no-media-decor .decor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 5px var(--accent-bright);
}

/* Light Theme overrides for Text-Only cards */
.light-theme .trending-card-no-media-preview {
  border-color: rgba(192, 57, 43, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 244, 247, 0.98) 100%);
  box-shadow: inset 0 0 15px rgba(192, 57, 43, 0.02);
}

.light-theme .no-media-header {
  color: var(--accent-bright);
}

.light-theme .no-media-content-text {
  color: var(--text-muted);
}

.light-theme .no-media-tech-decor {
  opacity: 0.08;
  color: var(--accent-bright);
}

.trending-card-premium:hover .trending-card-thumb {
  transform: scale(1.06);
}

.trending-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.trending-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.2s;
}

.trending-card-premium:hover .trending-card-title {
  color: var(--accent-bright);
}

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

.trending-card-stats {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.trending-card-stat-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* Skeletons */
.trending-card-skeleton {
  height: 236px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.01) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.6s infinite;
  border: 1px solid var(--border);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   LIGHT THEME DESIGN VARIABLES
   ============================================================ */
.light-theme {
  --bg: #f4f4f7;
  --bg-2: #eef1f4;
  --bg-3: #e5e8eb;

  --panel: rgba(0, 0, 0, 0.035);
  --panel-hover: rgba(0, 0, 0, 0.065);
  --panel-elevated: rgba(0, 0, 0, 0.05);

  --text: #1a1a1c;
  --text-muted: #4b5563;
  --muted: #8e97a4;

  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
  --border-accent: rgba(192, 57, 43, 0.45);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.12);
}

.light-theme .site-header {
  background: rgba(244, 244, 247, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light-theme .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: #eef1f4;
}

.light-theme .showcase-card-3d {
  background: #ffffff;
}

.light-theme .trending-card-premium {
  background: rgba(0, 0, 0, 0.015);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.light-theme .trending-card-premium:hover {
  background: rgba(0, 0, 0, 0.035);
}

.light-theme .category-card {
  background: rgba(0, 0, 0, 0.015);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.light-theme .category-card:hover {
  background: rgba(0, 0, 0, 0.035);
}

.light-theme .spotlight-console {
  background: rgba(0, 0, 0, 0.015);
}

.light-theme .console-tab {
  color: var(--text-muted);
}

.light-theme .console-tab.active {
  background: var(--bg-3);
  color: var(--text);
}

.light-theme .forum-card {
  background: #ffffff;
}

.light-theme .sidebar-panel {
  background: rgba(0, 0, 0, 0.015);
}

.light-theme .showcase-telemetry-hud {
  background: rgba(244, 244, 247, 0.95);
  border-color: rgba(192, 57, 43, 0.35);
  color: #1a1a1c;
}

.light-theme .showcase-telemetry-hud span {
  color: #1a1a1c !important;
}

.light-theme .settings-nav {
  background: #ffffff;
}

.light-theme .settings-panel {
  background: #ffffff;
}

.light-theme .settings-nav-btn.active {
  color: #fff !important;
  background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%) !important;
}

.light-theme .settings-nav-btn:hover {
  background: rgba(0, 0, 0, 0.035) !important;
}

.light-theme .header-search-results {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(192, 57, 43, 0.05) !important;
}

.light-theme .search-result-item {
  border-bottom-color: rgba(0, 0, 0, 0.04) !important;
}

.light-theme .search-result-item:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

/* ============================================================
   3D HERO SHOWCASE COVER FLOW LAYOUT
   ============================================================ */
/* ============================================================
   3D HERO SHOWCASE COVER FLOW LAYOUT (DEPRECATED -> OVERHAULED TO SPLIT HERO)
   ============================================================ */
.hero-fullscreen-section {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: visible;
}

.hero-showcase-container {
  position: relative;
  background-image: url('../assets/blood_silence_ad.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.hero-content-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100dvh - var(--header-h) - var(--home-trending-peek, 240px));
  display: flex;
  align-items: center;
  padding: 3rem 0 1.75rem;
}

.hero-showcase-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-showcase-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 45%, rgba(5, 5, 5, 0.25) 75%, rgba(5, 5, 5, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.light-theme .hero-showcase-container::before {
  background: linear-gradient(to right, rgba(244, 244, 247, 0.96) 0%, rgba(244, 244, 247, 0.85) 45%, rgba(244, 244, 247, 0.2) 75%, rgba(244, 244, 247, 0.8) 100%);
}

.hero-showcase-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0 1.5rem;
  flex: 0 0 auto;
  min-height: auto;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.home-trending-in-hero {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

.home-trending-in-hero .trending-section-new {
  margin-top: 0;
  margin-bottom: 0;
}

.home-trending-in-hero .trending-section-header {
  margin-bottom: 1rem;
}

#categories {
  padding-top: 2.5rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg);
}

@media (min-width: 992px) {
  .hero-showcase-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

.hero-telemetry-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 3;
}

@media (min-width: 992px) {
  .hero-telemetry-container {
    justify-content: flex-end;
  }
}

/* ============================================================
   HUD TELEMETRY MONITOR (INTEGRATED IN HERO)
   ============================================================ */
.hero-telemetry-container .telemetry-panel {
  position: relative;
  width: 100%;
  max-width: 310px;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(192, 57, 43, 0.15);
  backdrop-filter: blur(16px);
  font-family: var(--font-mono);
  animation: hud-flicker 4s infinite alternate;
}

.light-theme .hero-telemetry-container .telemetry-panel {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(192, 57, 43, 0.35);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06), 0 0 25px rgba(192, 57, 43, 0.05);
  color: #1a1a1c;
}

.light-theme .hero-telemetry-container .telemetry-panel span {
  color: #4b5563 !important;
}

.light-theme .hero-telemetry-container .telemetry-panel strong {
  color: #1a1a1c !important;
}

.light-theme .hero-telemetry-container .telemetry-panel .data-line strong[style*="var(--green)"],
.light-theme .hero-telemetry-container .telemetry-panel .data-line strong[style*="color: var(--green)"] {
  color: #16a34a !important;
  /* Rich green in light mode */
}

@keyframes hud-flicker {

  0%,
  100% {
    opacity: 0.98;
  }

  50% {
    opacity: 0.98;
  }

  51% {
    opacity: 0.88;
  }

  52% {
    opacity: 0.98;
  }

  88% {
    opacity: 0.98;
  }

  89% {
    opacity: 0.85;
  }

  90% {
    opacity: 0.98;
  }
}

/* ============================================================
   QUICK SWITCHERS IN HEADER (HIDDEN FOR PREMIUM DROP-DOWNS)
   ============================================================ */
.header-quick-control {
  display: none !important;
}

.light-theme .header-quick-control {
  background: rgba(0, 0, 0, 0.02);
}

.header-select {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
}

.header-select option {
  background: var(--bg-2);
  color: var(--text);
  font-weight: 600;
}

.header-theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  width: 16px;
  height: 16px;
}

.header-theme-btn:hover {
  color: var(--accent-bright);
}

/* ============================================================
   MAINTENANCE MODE VIEWPORT STYLING
   ============================================================ */
.maintenance-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at center, #150a0a 0%, #050202 100%);
  padding: 2rem;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

.light-theme .maintenance-container {
  background: radial-gradient(circle at center, #ffffff 0%, #f4f4f7 100%);
}

.maintenance-box {
  width: 100%;
  max-width: 520px;
  background: rgba(10, 5, 5, 0.9);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(192, 57, 43, 0.15);
  text-align: center;
  backdrop-filter: blur(20px);
}

.light-theme .maintenance-box {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(192, 57, 43, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 0 40px rgba(192, 57, 43, 0.04);
}

.maintenance-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.4));
  animation: pulse-glow 2s infinite alternate;
}

.maintenance-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff4500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.2);
}

.light-theme .maintenance-title {
  color: #c0392b;
}

.maintenance-subtitle {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.light-theme .maintenance-subtitle {
  color: #4b5563;
}

.maintenance-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  margin-bottom: 1.5rem;
}

.maintenance-info {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.maintenance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%);
  color: #fff;
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.25);
}

.maintenance-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
  border-color: rgba(255, 69, 0, 0.6);
  background: linear-gradient(135deg, #a01212 0%, #e74c3c 100%);
}

.maintenance-btn:active {
  transform: translateY(0);
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Unconditional theme/lang controls lockdown - hidden from UI */
#header-theme-toggle,
#header-lang-select {
  display: none !important;
}