/* ============================================================
   AimHack Forum — Main Stylesheet
   Inspired by Fatality.win dark aesthetic
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --surface2:  #161616;
  --border:    #1e1e1e;
  --accent:    #c0392b;
  --accent2:   #e74c3c;
  --text:      #e8e8e8;
  --muted:     #666666;
  --success:   #27ae60;
  --warning:   #f39c12;
  --gold:      #f39c12;
  --info:      #2980b9;
  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.6);
  --transition: .18s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  height: 56px;
  display: flex;
  align-items: center;
}
.navbar .container,
.navbar .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand span.dot { color: var(--accent2); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-nav a {
  color: #aaa;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--text); background: var(--surface2); }
.navbar-nav a.active { border-bottom: 2px solid var(--accent); }
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.navbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.navbar-username {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.navbar-logout {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .75rem;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.navbar-logout:hover { color: var(--accent); background: rgba(192,57,43,.12); }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  padding: 4px;
}

/* Page offset for fixed navbar */
.page-content { padding-top: 72px; }

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(192,57,43,.18) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(30,30,30,.35) 39px,
      rgba(30,30,30,.35) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(30,30,30,.35) 39px,
      rgba(30,30,30,.35) 40px
    );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.3);
  color: var(--accent2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  font-size: 1rem;
  color: #888;
  margin-bottom: 32px;
  letter-spacing: .04em;
}
.hero-subtitle span { color: var(--accent2); }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: left; }
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn-secondary {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: #333; background: #1c1c1c; color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-muted {
  background: transparent;
  border-color: #333;
  color: var(--muted);
}
.btn-outline-muted:hover { border-color: #555; color: var(--text); }
.btn-danger { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-sm { padding: 5px 12px; font-size: .74rem; }
.btn-xs { padding: 3px 8px; font-size: .68rem; }
.btn-icon { padding: 7px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: rgba(192,57,43,.35); box-shadow: 0 0 0 1px rgba(192,57,43,.1), var(--shadow); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon { color: var(--accent); }
.card-body { }
.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Feature cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: top;
}
.feature-card:hover::before { transform: scaleY(1); }
.feature-card:hover { border-color: rgba(192,57,43,.4); background: var(--surface2); }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--accent2);
}
.feature-card h3 {
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  color: #fff;
}
.feature-card p { color: var(--muted); font-size: .83rem; line-height: 1.7; }

/* Plan cards */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(192,57,43,.08) 0%, var(--surface) 100%);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-popular-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 16px;
  border-radius: 0 0 4px 4px;
}
.plan-name {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.plan-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.plan-price sup { font-size: 1rem; vertical-align: top; margin-top: .4rem; color: var(--accent2); }
.plan-period { font-size: .75rem; color: var(--muted); margin-top: 4px; margin-bottom: 24px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: #aaa;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* Dashboard cards */
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition);
}
.dashboard-card:hover { border-color: rgba(192,57,43,.3); }
.dashboard-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent2);
  flex-shrink: 0;
}
.dashboard-card-info {}
.dashboard-card-value { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.dashboard-card-label { font-size: .73rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; }

/* Invite card */
.invite-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color var(--transition);
}
.invite-card:hover { border-color: #2a2a2a; }
.invite-code {
  font-family: 'Courier New', monospace;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .1em;
}
.invite-meta { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.invite-actions { display: flex; gap: 6px; align-items: center; }
.invite-card.used { opacity: .5; }
.invite-card.used .invite-code { text-decoration: line-through; }

/* License key card */
.key-card {
  background: linear-gradient(135deg, rgba(192,57,43,.08) 0%, var(--surface2) 100%);
  border: 1px solid rgba(192,57,43,.25);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.key-value {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}
.key-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.key-meta-item {}
.key-meta-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.key-meta-value { font-size: .88rem; font-weight: 600; color: var(--text); margin-top: 3px; }

/* ══════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid transparent;
}
.badge-admin { background: rgba(192,57,43,.2); border-color: rgba(192,57,43,.4); color: var(--accent2); }
.badge-vip { background: rgba(243,156,18,.15); border-color: rgba(243,156,18,.35); color: var(--gold); }
.badge-member { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--muted); }
.badge-active { background: rgba(39,174,96,.15); border-color: rgba(39,174,96,.3); color: var(--success); }
.badge-expired { background: rgba(192,57,43,.15); border-color: rgba(192,57,43,.25); color: var(--accent); }
.badge-banned { background: rgba(192,57,43,.25); border-color: var(--accent); color: #ff6b6b; }
.badge-pending { background: rgba(243,156,18,.15); border-color: rgba(243,156,18,.3); color: var(--warning); }
.badge-used { background: rgba(255,255,255,.05); border-color: var(--border); color: var(--muted); }
.badge-available { background: rgba(39,174,96,.12); border-color: rgba(39,174,96,.25); color: var(--success); }

/* UID pill */
.uid-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .68rem;
  font-family: 'Courier New', monospace;
  color: var(--muted);
  letter-spacing: .05em;
}

/* User rank */
.user-rank {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rank-admin { color: var(--accent2); }
.rank-vip { color: var(--gold); }
.rank-member { color: var(--muted); }

/* Online indicator */
.online-indicator {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  flex-shrink: 0;
}
.online-indicator.offline { background: var(--muted); box-shadow: none; }

/* ══════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.form-control::placeholder { color: #3a3a3a; }
.form-control.is-valid { border-color: var(--success); }
.form-control.is-invalid { border-color: var(--accent); }
.form-hint {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-hint.valid { color: var(--success); }
.form-hint.invalid { color: var(--accent2); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Auth card centering */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(192,57,43,.1) 0%, transparent 70%),
    var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.auth-logo-sub { font-size: .72rem; color: var(--muted); letter-spacing: .12em; margin-top: 3px; }
.auth-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}
.auth-footer {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 20px;
}
.auth-footer a { color: var(--accent2); }

/* ══════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .83rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  animation: slide-in .2s ease;
}
.alert-success { background: rgba(39,174,96,.12); border: 1px solid rgba(39,174,96,.3); color: #5dbd87; }
.alert-error { background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.35); color: #e87566; }
.alert-warning { background: rgba(243,156,18,.1); border: 1px solid rgba(243,156,18,.3); color: #f3b043; }
.alert-info { background: rgba(41,128,185,.1); border: 1px solid rgba(41,128,185,.3); color: #60a8d4; }
.alert-close { margin-left: auto; background: none; border: none; color: inherit; opacity: .6; font-size: 1rem; cursor: pointer; padding: 0; }
.alert-close:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-bar::-webkit-scrollbar { height: 3px; }
.tab-bar::-webkit-scrollbar-track { background: var(--surface); }
.tab-bar::-webkit-scrollbar-thumb { background: var(--border); }
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent2); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ══════════════════════════════════════════════════════════
   FORUM STYLES
   ══════════════════════════════════════════════════════════ */
.forum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.forum-section-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.forum-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.forum-category + .forum-category { margin-top: 4px; }
.forum-category:hover { border-color: rgba(192,57,43,.3); background: var(--surface2); color: var(--text); }
.forum-cat-icon {
  width: 42px; height: 42px;
  background: rgba(192,57,43,.1);
  border: 1px solid rgba(192,57,43,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--accent2);
}
.forum-cat-info { flex: 1; min-width: 0; }
.forum-cat-name { font-weight: 700; font-size: .9rem; color: #fff; }
.forum-cat-desc { font-size: .78rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-cat-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.forum-stat { text-align: center; }
.forum-stat-value { font-size: .9rem; font-weight: 700; color: var(--text); }
.forum-stat-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.forum-last-post { flex-shrink: 0; min-width: 140px; text-align: right; font-size: .72rem; color: var(--muted); }
.forum-last-post a { color: var(--accent2); }

/* Thread list */
.thread-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: all var(--transition);
}
.thread-row + .thread-row { margin-top: 3px; }
.thread-row:hover { border-color: rgba(192,57,43,.25); background: var(--surface2); }
.thread-icon { font-size: 1rem; color: var(--muted); flex-shrink: 0; }
.thread-info { flex: 1; min-width: 0; }
.thread-title { font-weight: 600; font-size: .88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-title a { color: var(--text); }
.thread-title a:hover { color: var(--accent2); }
.thread-meta { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.thread-stats { display: flex; gap: 16px; flex-shrink: 0; text-align: center; }
.thread-stat-num { font-size: .83rem; font-weight: 700; color: var(--text); }
.thread-stat-lbl { font-size: .62rem; color: var(--muted); text-transform: uppercase; }

/* Posts */
.forum-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
}
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.post-author { display: flex; align-items: center; gap: 10px; }
.post-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-author-name { font-weight: 700; font-size: .86rem; }
.post-author-rank { font-size: .68rem; color: var(--muted); }
.post-body { padding: 20px; font-size: .88rem; line-height: 1.8; color: #ccc; }
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 72px;
}
.sidebar-profile {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
}
.sidebar-avatar .online-indicator {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 12px; height: 12px;
  border: 2px solid var(--surface);
}
.sidebar-username { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.sidebar-uid { margin-bottom: 8px; }
.sidebar-rank { margin-bottom: 14px; }
.sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.sidebar-stat-item {
  background: var(--surface);
  padding: 12px 8px;
  text-align: center;
}
.sidebar-stat-val { font-size: .92rem; font-weight: 700; color: var(--text); }
.sidebar-stat-lbl { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.sidebar-meta {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  padding: 4px 0;
}
.sidebar-meta-item .label { color: var(--muted); }
.sidebar-meta-item .value { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   STATS GRID
   ══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-bar-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}
.stat-bar-value span { color: var(--accent); }
.stat-bar-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   ADMIN TABLES
   ══════════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.data-table th {
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(30,30,30,.7);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }
.table-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.table-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.table-search .form-control { max-width: 280px; padding: 7px 12px; font-size: .82rem; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin-top: 24px;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0 8px;
}
.page-btn:hover { border-color: #333; color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn[disabled] { opacity: .35; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   SECTIONS & LAYOUT HELPERS
   ══════════════════════════════════════════════════════════ */
section { padding: 72px 0; }
.section-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent2);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub { font-size: .9rem; color: var(--muted); max-width: 540px; }
.section-header { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent2); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--accent2); }
.fw-bold { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: .4; }
.empty-state-text { font-size: .88rem; }
.page-title-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 28px;
}
.page-title-bar h1 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.page-title-bar .breadcrumb { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb span { margin: 0 5px; }

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand { font-size: 1.3rem; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.footer-tagline { font-size: .78rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.footer-col h4 {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #777; font-size: .82rem; }
.footer-col ul a:hover { color: var(--accent2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .73rem;
  color: var(--muted);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2e2e2e; }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in { animation: fade-in .3s ease; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 768px breakpoint
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(10,10,10,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }
  .navbar-toggle { display: block; }

  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }

  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .stat-bar-item:nth-child(2) { border-right: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .forum-cat-stats { display: none; }
  .forum-last-post { display: none; }
  .thread-stats { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .data-table th, .data-table td { padding: 8px 10px; }
  .table-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: 1fr; }
  .stat-bar-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px; }
  .stat-bar-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   CHATBOX
   ══════════════════════════════════════════════════════════ */
.chat-card { padding: 0; }
.chat-messages {
  height: 340px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: var(--surface); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.chat-empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 24px 0; }

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}
.chat-avatar-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.chat-avatar-init {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--info);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
}
.chat-body { flex: 1; min-width: 0; }
.chat-username {
  font-weight: 700;
  font-size: .8rem;
  color: var(--text);
  margin-right: 6px;
}
.chat-username.chat-admin { color: var(--accent2); }
.chat-username.chat-vip   { color: var(--gold); }
.chat-time {
  font-size: .72rem;
  color: var(--muted);
}
.chat-text {
  font-size: .875rem;
  color: var(--text);
  word-break: break-word;
  line-height: 1.5;
  margin-top: 1px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.chat-form .form-control { flex: 1; }

/* ══════════════════════════════════════════════════════════
   UPLOAD AVATAR / BANNIÈRE
   ══════════════════════════════════════════════════════════ */
.upload-banner-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-banner-placeholder {
  color: var(--muted);
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.upload-banner-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.upload-banner-wrap:hover .upload-banner-overlay { opacity: 1; }

.upload-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--info);
  cursor: pointer;
}
.upload-avatar-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}
.upload-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.upload-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--transition);
  cursor: pointer;
  border-radius: 50%;
}
.upload-avatar-wrap:hover .upload-avatar-overlay { opacity: 1; }

.upload-label { cursor: pointer; }
.mb-16 { margin-bottom: 16px; }
.card-body { padding: 16px 20px; }
