/* ============================================================
   BATTLE MVP BLOG — NEXUS DESIGN SYSTEM
   battle-mvp.blog
   Version: 1.0
   ============================================================ */

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

:root {
  /* Backgrounds */
  --bg-primary:    #050b12;
  --bg-secondary:  #0c1218;
  --bg-card:       #0f1724;
  --bg-card-hover: #131e2e;
  --bg-elevated:   #182234;

  /* Accents */
  --accent:        #00ffa6;
  --accent2:       #00d8ff;
  --accent3:       #5865f2;
  --accent-glow:   rgba(0,255,166,.15);
  --accent2-glow:  rgba(0,216,255,.12);

  /* Semantic */
  --success:  #22c55e;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --live:     #00ffa6;
  --online:   #22c55e;

  /* Text */
  --text-primary:   #eaf1ff;
  --text-secondary: #7a90aa;
  --text-muted:     #4a6070;
  --text-accent:    #00ffa6;

  /* Borders */
  --border:         rgba(255,255,255,.07);
  --border-strong:  rgba(255,255,255,.13);
  --border-accent:  rgba(0,255,166,.3);

  /* Buttons */
  --btn-primary-bg: linear-gradient(135deg,#24df92,#00d8ff);
  --btn-primary-color: #001a0f;

  /* Spacing */
  --sp-xs: 6px;  --sp-sm: 10px;
  --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 36px; --sp-2xl: 56px;

  /* Radius */
  --r-sm: 6px;  --r-md: 10px;
  --r-lg: 16px; --r-xl: 22px;

  /* Sidebar widths */
  --sidebar-left:  220px;
  --sidebar-right: 256px;

  /* Typography */
  --font-body: 'Inter', Arial, sans-serif;
  --font-display: 'Rajdhani', 'Inter', sans-serif;

  /* Transitions */
  --tr: .18s ease;
}

html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- SCROLLBAR -------------------------------------------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.blog-layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.blog-inner {
  display: flex;
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--sp-md);
  gap: var(--sp-lg);
  padding-top: 72px; /* header height */
}

.blog-sidebar-left {
  width: var(--sidebar-left);
  flex-shrink: 0;
  position: sticky;
  top: 82px;
  height: calc(100vh - 90px);
  overflow-y: auto;
  padding: var(--sp-md) 0;
}

.blog-content {
  flex: 1;
  min-width: 0;
  padding: var(--sp-lg) 0;
}

.blog-sidebar-right {
  width: var(--sidebar-right);
  flex-shrink: 0;
  position: sticky;
  top: 82px;
  height: calc(100vh - 90px);
  overflow-y: auto;
  padding: var(--sp-md) 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.blog-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(5,11,18,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-lg);
  gap: var(--sp-lg);
}

.blog-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.blog-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--btn-primary-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: #001a0f;
}
.blog-logo .logo-name { color: var(--text-primary); }
.blog-logo .logo-sub  { color: var(--accent); font-size: .8rem; font-weight: 400; margin-left: 2px; }

.blog-header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.blog-header-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: .875rem;
  outline: none;
  transition: border var(--tr);
}
.blog-header-search input:focus { border-color: var(--border-accent); }
.blog-header-search .search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.blog-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.blog-header-nav a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  color: var(--text-secondary);
  transition: background var(--tr), color var(--tr);
}
.blog-header-nav a:hover, .blog-header-nav a.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.blog-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.btn-notif {
  width: 36px; height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  transition: border-color var(--tr), color var(--tr);
}
.btn-notif:hover { border-color: var(--border-strong); color: var(--text-primary); }
.btn-notif .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  border: 1px solid var(--bg-primary);
}

.header-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--tr);
}
.header-avatar:hover { border-color: var(--accent); }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   LEFT SIDEBAR NAV
   ============================================================ */
.sidebar-section { margin-bottom: var(--sp-md); }
.sidebar-section-title {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 var(--sp-sm) 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--sp-sm);
  border-radius: var(--r-md);
  font-size: .875rem;
  color: var(--text-secondary);
  transition: background var(--tr), color var(--tr);
  cursor: pointer;
  position: relative;
}
.sidebar-nav-item:hover  { background: var(--bg-secondary); color: var(--text-primary); }
.sidebar-nav-item.active { background: var(--bg-elevated); color: var(--accent); }
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.sidebar-nav-item .nav-icon { width: 18px; text-align: center; font-size: 1rem; }
.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #001a0f;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

.sidebar-user-mini {
  margin-bottom: var(--sp-md);
  padding: var(--sp-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.sidebar-user-mini .user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-mini img {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.sidebar-user-mini .user-name { font-size: .875rem; font-weight: 600; }
.sidebar-user-mini .user-rank {
  font-size: .75rem;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: .05em;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
}
.card-sm  { padding: var(--sp-md); }
.card-xs  { padding: var(--sp-sm); }
.card-hover { transition: border-color var(--tr), background var(--tr); }
.card-hover:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}
.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.card-subtitle { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  border: none;
  transition: opacity var(--tr), transform var(--tr);
}
.btn:hover  { opacity: .88; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text-primary); }
.btn-danger  { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }
.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-xs { padding: 3px 8px;  font-size: .75rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-live    { background: rgba(0,255,166,.12); color: var(--accent);  border: 1px solid rgba(0,255,166,.25); }
.badge-online  { background: rgba(34,197,94,.12); color: var(--online);  border: 1px solid rgba(34,197,94,.25); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); border: 1px solid rgba(245,158,11,.25); }
.badge-danger  { background: rgba(239,68,68,.12);  color: var(--danger);  border: 1px solid rgba(239,68,68,.25); }
.badge-accent2 { background: rgba(0,216,255,.12);  color: var(--accent2); border: 1px solid rgba(0,216,255,.25); }
.badge-purple  { background: rgba(88,101,242,.12); color: var(--accent3); border: 1px solid rgba(88,101,242,.25); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-muted); }

.live-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .35; }
}

/* ============================================================
   FEED POST CARD
   ============================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--tr);
  margin-bottom: var(--sp-md);
}
.post-card:hover { border-color: var(--border-strong); }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--sp-md) var(--sp-md) 0;
}
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  overflow: hidden;
  flex-shrink: 0;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta .post-author { font-size: .875rem; font-weight: 600; }
.post-meta .post-rank   { font-size: .75rem; color: var(--accent); font-family: var(--font-display); }
.post-meta .post-time   { font-size: .75rem; color: var(--text-muted); margin-left: auto; }

.post-type-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: .7rem;
  font-weight: 600;
}

.post-body { padding: var(--sp-sm) var(--sp-md) var(--sp-md); }
.post-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.65; }
.post-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }

.post-media {
  margin: 0 var(--sp-md) var(--sp-md);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16/9;
  position: relative;
}
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; }
.post-media .play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4);
}
.post-media .play-btn svg { width: 56px; height: 56px; color: white; opacity: .9; }

.post-match-embed {
  margin: 0 var(--sp-md) var(--sp-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.match-score {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}
.match-score .win  { color: var(--accent); }
.match-score .loss { color: var(--danger); }

.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px var(--sp-md);
  border-top: 1px solid var(--border);
}
.post-action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: .8rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: background var(--tr), color var(--tr);
}
.post-action-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.post-action-btn.liked { color: var(--accent); }
.post-action-btn .count { font-size: .78rem; }

/* ============================================================
   HIGHLIGHT CARD
   ============================================================ */
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--tr), transform var(--tr);
  cursor: pointer;
}
.highlight-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }

.highlight-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
}
.highlight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-thumb .hl-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
}
.highlight-thumb .hl-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.highlight-thumb .hl-type {
  position: absolute;
  top: 8px; left: 8px;
}

.highlight-info { padding: var(--sp-sm) var(--sp-md); }
.highlight-title { font-size: .875rem; font-weight: 600; margin-bottom: 4px; }
.highlight-meta  { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   FORUM
   ============================================================ */
.forum-thread {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  transition: border-color var(--tr);
  cursor: pointer;
}
.forum-thread:hover { border-color: var(--border-strong); }
.forum-thread.pinned { border-color: rgba(0,255,166,.2); }

.thread-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 36px;
}
.thread-vote button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  width: 28px; height: 28px;
  font-size: .75rem;
  transition: all var(--tr);
}
.thread-vote button:hover { border-color: var(--accent); color: var(--accent); }
.vote-count { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }

.thread-main { flex: 1; min-width: 0; }
.thread-title { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.thread-excerpt { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-tags  { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.thread-tag {
  padding: 2px 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .7rem;
  color: var(--text-muted);
}
.thread-footer { display: flex; align-items: center; gap: var(--sp-md); font-size: .75rem; color: var(--text-muted); }
.thread-author { display: flex; align-items: center; gap: 5px; }
.thread-author img { width: 18px; height: 18px; border-radius: 50%; }
.thread-stat { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   VOICE ROOMS
   ============================================================ */
.voice-room-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin-bottom: 8px;
  transition: border-color var(--tr);
}
.voice-room-card.active { border-color: rgba(0,255,166,.3); }

.voice-room-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-sm);
}
.voice-room-icon {
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent2);
}
.voice-room-name { font-size: .9rem; font-weight: 600; }
.voice-room-desc { font-size: .75rem; color: var(--text-muted); }

.voice-members {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-sm);
}
.voice-member {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: .75rem;
  color: var(--text-secondary);
}
.voice-member img { width: 18px; height: 18px; border-radius: 50%; }
.voice-member.speaking { color: var(--accent); background: rgba(0,255,166,.08); }
.speaking-bar {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.speaking-bar span {
  width: 2px; background: var(--accent); border-radius: 1px;
  animation: bar .6s ease-in-out infinite alternate;
}
.speaking-bar span:nth-child(2) { animation-delay: .15s; }
.speaking-bar span:nth-child(3) { animation-delay: .3s; }
@keyframes bar { from { height: 3px; } to { height: 10px; } }

/* ============================================================
   USER PROFILE MINI
   ============================================================ */
.user-card-mini {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--tr);
}
.user-card-mini:hover { border-color: var(--border-strong); }
.user-card-mini .ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  overflow: hidden; flex-shrink: 0;
}
.user-card-mini .ava img { width: 100%; height: 100%; object-fit: cover; }
.user-card-mini .info { flex: 1; min-width: 0; }
.user-card-mini .name { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-mini .rank { font-size: .75rem; color: var(--accent); font-family: var(--font-display); }
.user-card-mini .stats-row { display: flex; gap: 10px; margin-top: 3px; font-size: .72rem; color: var(--text-muted); }

/* ============================================================
   CLAN CARD
   ============================================================ */
.clan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.clan-banner {
  height: 70px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
  position: relative;
}
.clan-avatar {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  border: 3px solid var(--bg-card);
  position: absolute;
  bottom: -18px; left: var(--sp-md);
  overflow: hidden; background: var(--bg-elevated);
}
.clan-avatar img { width: 100%; height: 100%; object-fit: cover; }
.clan-body { padding: calc(var(--sp-md) + 14px) var(--sp-md) var(--sp-md); }
.clan-name { font-size: .95rem; font-weight: 700; }
.clan-tag  { font-size: .75rem; color: var(--accent); font-family: var(--font-display); margin-bottom: 6px; }
.clan-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.clan-stats { display: flex; gap: var(--sp-md); margin-top: var(--sp-sm); }
.clan-stat  { font-size: .8rem; }
.clan-stat .val { font-weight: 600; color: var(--text-primary); }
.clan-stat .lbl { color: var(--text-muted); font-size: .72rem; }

/* ============================================================
   ACHIEVEMENT BADGE
   ============================================================ */
.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: var(--sp-sm);
}
.achievement-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
}
.achievement-icon.earned { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.achievement-icon.legendary { border-color: #f59e0b; box-shadow: 0 0 16px rgba(245,158,11,.25); }
.achievement-name { font-size: .75rem; font-weight: 600; color: var(--text-secondary); }
.achievement.earned .achievement-name { color: var(--text-primary); }

/* ============================================================
   TRENDING / TAGS SIDEBAR
   ============================================================ */
.trending-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--sp-sm);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--tr);
}
.trending-tag:hover { background: var(--bg-secondary); }
.trending-tag .tag-name { font-size: .85rem; color: var(--accent2); font-weight: 500; }
.trending-tag .tag-count { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   ONLINE USERS SIDEBAR
   ============================================================ */
.online-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px var(--sp-sm);
  border-radius: var(--r-md);
  transition: background var(--tr);
  cursor: pointer;
}
.online-user:hover { background: var(--bg-secondary); }
.online-user-ava {
  width: 28px; height: 28px;
  border-radius: 50%; overflow: hidden;
  position: relative;
}
.online-user-ava img { width: 100%; height: 100%; object-fit: cover; }
.online-user-ava::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 7px; height: 7px;
  background: var(--online);
  border-radius: 50%;
  border: 1px solid var(--bg-card);
}
.online-user-name { font-size: .82rem; color: var(--text-secondary); }

/* ============================================================
   PAGE HERO BANNERS
   ============================================================ */
.page-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl) var(--sp-xl);
  margin-bottom: var(--sp-xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p  { color: var(--text-secondary); font-size: 1rem; }

/* ============================================================
   TABS
   ============================================================ */
.tabs-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-lg);
}
.tab-btn {
  padding: 9px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--tr), border-color var(--tr);
  margin-bottom: -1px;
}
.tab-btn:hover  { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--sp-md); }
.form-label { display: block; font-size: .82rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 14px;
  color: var(--text-primary);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--tr);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--border-accent); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   WRITE POST COMPOSER
   ============================================================ */
.post-composer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.composer-row { display: flex; gap: var(--sp-sm); align-items: flex-start; }
.composer-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: .9rem;
  resize: none;
  min-height: 44px;
  max-height: 180px;
  outline: none;
  transition: border-color var(--tr);
}
.composer-input:focus { border-color: var(--border-accent); }
.composer-actions { display: flex; gap: 6px; margin-top: var(--sp-sm); align-items: center; }
.composer-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  padding: 5px 10px;
  font-size: .8rem;
  display: flex; align-items: center; gap: 4px;
  transition: all var(--tr);
}
.composer-action-btn:hover { border-color: var(--border-strong); color: var(--text-secondary); }

/* ============================================================
   STATS MINI WIDGET
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.stat-cell {
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  padding: var(--sp-sm);
  text-align: center;
}
.stat-cell .val { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.stat-cell .lbl { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-fill {
  height: 100%;
  background: var(--btn-primary-bg);
  border-radius: 2px;
  transition: width .4s ease;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-md) 0; }
.divider-text {
  display: flex; align-items: center; gap: var(--sp-sm);
  font-size: .75rem; color: var(--text-muted); margin: var(--sp-md) 0;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; border-top: 1px solid var(--border);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: var(--sp-md); opacity: .5; }
.empty-state h3  { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p   { font-size: .85rem; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  font-size: .875rem;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: toastIn .2s ease;
  max-width: 320px;
}
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.error   { border-color: rgba(239,68,68,.3); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .blog-sidebar-right { display: none; }
}
@media (max-width: 768px) {
  .blog-sidebar-left { display: none; }
  .blog-inner { padding-top: 62px; }
  .page-hero h1 { font-size: 1.5rem; }
}
