/* ================================================================
   DXED — Full Gaming Social Platform Styles
   ================================================================ */

:root {
  --bg-primary:       #080811;
  --bg-secondary:     #0d0d1a;
  --bg-card:          #0e0e20;
  --bg-card-hover:    rgba(255,255,255,0.03);
  --bg-input:         rgba(255,255,255,0.03);
  --bg-widget:        rgba(255,255,255,0.02);
  --accent:           #8b5cf6;
  --accent-2:         #7c3aed;
  --accent-glow:      rgba(139,92,246,0.35);
  --accent-blue:      #3b82f6;
  --accent-cyan:      #06b6d4;
  --accent-green:     #22c55e;
  --accent-red:       #ef4444;
  --accent-orange:    #f97316;
  --accent-gold:      #f59e0b;
  --text-primary:     #f0f0fa;
  --text-secondary:   #8080a8;
  --text-muted:       #4d4d6e;
  --border:           rgba(255,255,255,0.05);
  --border-accent:    rgba(139,92,246,0.12);
  --radius:           10px;
  --radius-sm:        6px;
  --radius-full:      999px;
  --shadow-card:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:      0 0 20px rgba(139,92,246,0.08);
  --sidebar-w:        260px;
  --right-w:          290px;
  --transition:       0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 99px; }

/* ================================================================
   LAYOUT
   ================================================================ */
#app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--right-w);
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
}

#main-content {
  border-left: 1px solid rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.04);
  min-height: 100vh;
}

/* ================================================================
   LEFT SIDEBAR
   ================================================================ */
#sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 20px;
  cursor: pointer;
  user-select: none;
}
.logo-icon svg { width: 40px; height: 40px; }
.logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-gg { color: var(--accent-blue); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}
.nav-item.active {
  background: rgba(139,92,246,0.08);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.1);
  font-weight: 600;
}
.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}
.nav-badge {
  margin-left: auto;
  background: #f43f5e;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  min-width: 18px;
  text-align: center;
}
.notif-badge { background: var(--accent); }

.btn-post {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 12px 0;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
}
.btn-post:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}
.btn-post svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; }

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid rgba(255,255,255,0.04);
  margin-top: auto;
}
.sidebar-user-card:hover { background: rgba(255,255,255,0.03); }
.user-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  flex-shrink: 0;
}
.user-info-sm { flex: 1; min-width: 0; }
.user-name-sm { display: block; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tag-sm { display: block; font-size: 11px; color: var(--text-muted); }
.user-online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

/* ================================================================
   SECTION LAYOUT
   ================================================================ */
.section { display: none; }
.section.active { display: block; }

.section-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8,8,17,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.section-header-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; padding: 6px; border-radius: 8px; transition: all 0.12s; }
.mobile-menu-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }

.header-tabs { display: flex; gap: 4px; }
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); }
.tab-btn.active {
  background: rgba(139,92,246,0.1);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.15);
}

/* ================================================================
   STORIES
   ================================================================ */
/* ── Story Bubbles ── */
.stories-container {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.stories-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.stories-scroll::-webkit-scrollbar { display: none; }
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  width: 64px;
}
.story-item:hover .story-ring { transform: scale(1.06); }
/* Ring wrapper — provides the gradient border effect */
.story-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4, #8b5cf6);
  background-size: 300% 300%;
  animation: storyRingPulse 3s ease infinite;
}
.story-ring.watched {
  background: var(--text-muted);
  animation: none;
}
.story-ring.own {
  background: linear-gradient(135deg, #f97316, #ef4444, #f97316);
  background-size: 200% 200%;
  animation: storyRingPulse 3s ease infinite;
}
@keyframes storyRingPulse {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Inner avatar circle */
.story-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid var(--bg-card);
}
.add-avatar {
  background: var(--bg-secondary) !important;
  font-size: 24px;
  color: var(--accent);
}
.story-item span {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ================================================================
   COMPOSE BOX
   ================================================================ */
.compose-box {
  display: flex;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.compose-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white;
  flex-shrink: 0;
}
.compose-right { flex: 1; }
.compose-right textarea, .compose-area textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  min-height: 36px;
  padding: 6px 0;
  line-height: 1.5;
}
.compose-right textarea::placeholder { color: rgba(255,255,255,0.25); }
.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
/* Toolbar pill container */
.compose-toolbar-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 4px 6px;
}
/* Toolbar icon buttons */
.toolbar-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.38);
  transition: background 0.15s, color 0.15s;
}
.toolbar-icon-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}
.toolbar-icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Toolbar separator */
.toolbar-separator {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.07);
  margin: 0 2px;
  flex-shrink: 0;
}
/* Toolbar tooltip */
.toolbar-icon-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
}
.toolbar-icon-btn[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0,0,0,0.85);
  pointer-events: none;
  z-index: 100;
}
/* Compose cancel button */
.compose-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.compose-cancel-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
}
/* Compose post button */
.compose-post-btn-new {
  background: #5b4fcf;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.compose-post-btn-new:hover {
  opacity: 0.88;
}

/* ================================================================
   FEED POSTS
   ================================================================ */
.feed-container { padding: 0; }

.post-card {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.post-card:hover { background: rgba(255,255,255,0.02); }

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.post-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-avatar:hover { transform: scale(1.05); box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }

.post-user-info { flex: 1; min-width: 0; }
.post-user-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-username {
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.15s ease;
  letter-spacing: -0.01em;
}
.post-username:hover { color: var(--accent); }
.post-tag { color: var(--text-muted); font-size: 13px; letter-spacing: -0.01em; }
.post-time { color: var(--text-muted); font-size: 12px; margin-left: auto; opacity: 0.7; }

.rank-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.rank-iron     { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.15); }
.rank-bronze   { background: rgba(180,83,9,0.12); color: #f97316; border: 1px solid rgba(180,83,9,0.15); }
.rank-silver   { background: rgba(148,163,184,0.12); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.15); }
.rank-gold     { background: rgba(245,158,11,0.12); color: var(--accent-gold); border: 1px solid rgba(245,158,11,0.15); }
.rank-platinum { background: rgba(6,182,212,0.12); color: var(--accent-cyan); border: 1px solid rgba(6,182,212,0.15); }
.rank-diamond  { background: rgba(139,92,246,0.12); color: var(--accent); border: 1px solid rgba(139,92,246,0.15); }
.rank-master   { background: rgba(239,68,68,0.12); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.15); }
.rank-challenger { background: linear-gradient(135deg,rgba(245,158,11,0.15),rgba(239,68,68,0.15)); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }

.post-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59,130,246,0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.post-game-tag:hover { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.25); }

.post-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  margin-left: auto;
  opacity: 0;
}
.post-card:hover .post-delete-btn { opacity: 1; }
.post-delete-btn:hover { color: var(--accent-red); background: rgba(239,68,68,0.08); }

.post-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.type-clip { background: rgba(239,68,68,0.1); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.12); }
.type-achievement { background: rgba(245,158,11,0.1); color: var(--accent-gold); border: 1px solid rgba(245,158,11,0.12); }
.type-lfg { background: rgba(34,197,94,0.1); color: var(--accent-green); border: 1px solid rgba(34,197,94,0.12); }
.type-post { display: none; }

.post-platform-badge {
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  opacity: 0.8;
}

.post-body { font-size: 15px; line-height: 1.65; margin-bottom: 12px; word-break: break-word; color: rgba(240,240,250,0.92); }
.post-body .hashtag { color: var(--accent); cursor: pointer; font-weight: 500; }
.post-body .hashtag:hover { text-decoration: underline; }
.post-body .mention { color: var(--accent-blue); cursor: pointer; font-weight: 500; }
.post-body .mention:hover { text-decoration: underline; }

.post-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.post-image img { width: 100%; max-height: 320px; object-fit: cover; }

.post-clip-preview {
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s ease;
}
.post-clip-preview:hover { border-color: rgba(239,68,68,0.25); }
.clip-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(239,68,68,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--accent-red); flex-shrink: 0;
}
.clip-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clip-info { flex: 1; }
.clip-title { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.clip-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.clip-play-btn {
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.clip-play-btn:hover { opacity: 0.85; }

.post-achievement {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(239,68,68,0.03));
  border: 1px solid rgba(245,158,11,0.12);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s ease;
}
.post-achievement:hover { border-color: rgba(245,158,11,0.3); }
.achievement-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(245,158,11,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--accent-gold); flex-shrink: 0;
}
.achievement-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.achievement-info .ach-title { font-weight: 700; font-size: 14px; color: var(--accent-gold); letter-spacing: -0.01em; }
.achievement-info .ach-game { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  margin-left: -8px;
}
.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.post-action-btn:hover { background: rgba(139,92,246,0.06); color: rgba(139,92,246,0.85); }
.post-action-btn:hover svg { stroke: rgba(139,92,246,0.85); }
.post-action-btn.liked { color: #f43f5e; }
.post-action-btn.liked:hover { background: rgba(244,63,94,0.06); color: #f43f5e; }
.post-action-btn.liked:hover svg { stroke: #f43f5e; }
.post-action-btn.liked svg path { fill: #f43f5e; stroke: #f43f5e; }
.post-action-btn.reposted { color: var(--accent-green); }
.post-action-btn.reposted:hover { background: rgba(34,197,94,0.06); }
.post-action-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s ease; }
.post-action-btn.active { color: var(--accent); }
.post-action-btn.active svg { stroke: var(--accent); fill: var(--accent); }

/* Reactions */
.reactions-bar {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.reaction-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.reaction-pill:hover { border-color: var(--accent); background: rgba(139,92,246,0.1); }
.reaction-pill.active { border-color: var(--accent); background: rgba(139,92,246,0.15); color: var(--accent); }
.reaction-emoji { font-size: 14px; }

/* ================================================================
   EXPLORE
   ================================================================ */
.search-bar-big {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 16px;
  flex: 1;
  max-width: 420px;
  transition: border-color 0.15s, background 0.15s;
}
.search-bar-big:focus-within { border-color: rgba(139,92,246,0.3); background: rgba(255,255,255,0.04); }
.search-bar-big svg { width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-bar-big input { background: transparent; border: none; outline: none; color: var(--text-primary); font-size: 14px; flex: 1; }
.search-bar-big input::placeholder { color: var(--text-muted); }

.explore-tabs { display: flex; gap: 4px; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }

#explore-content { padding: 0; }

.trending-section { padding: 0 20px; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.15s ease;
}
.trending-item:hover { background: rgba(255,255,255,0.02); }
.trending-rank { font-size: 24px; font-weight: 900; color: var(--text-muted); width: 36px; text-align: center; }
.trending-game-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.trending-info { flex: 1; }
.trending-name { font-weight: 700; font-size: 15px; }
.trending-posts { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.trending-change { font-size: 12px; font-weight: 700; }
.trending-change.up { color: var(--accent-green); }
.trending-change.down { color: var(--accent-red); }

/* ================================================================
   GAMES GRID
   ================================================================ */
.games-filter-row { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); flex-wrap: wrap; }
.filter-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: rgba(139,92,246,0.25); color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
.filter-btn.active { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.2); color: #a78bfa; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
}
.game-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.game-card:hover {
  border-color: rgba(139,92,246,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.03);
}
.game-cover {
  height: 110px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  position: relative;
}
.game-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, var(--bg-card));
}
.game-info { padding: 10px 12px 12px; }
.game-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-genre { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.game-stats { display: flex; gap: 8px; align-items: center; }
.game-players { font-size: 11px; color: var(--accent-green); font-weight: 600; }
.game-rating { font-size: 11px; color: var(--accent-gold); }
.game-follow-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(8,8,17,0.8);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.game-follow-btn:hover { background: var(--accent); color: white; }
.game-follow-btn.following { background: rgba(139,92,246,0.2); }
.game-steam-btn {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  background: #1b2838;
  color: #c7d5e0;
  border: 1px solid #4c6b22;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.game-steam-btn:hover { background: #4c6b22; color: #fff; }

.gc-steam-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: #1b2838;
  color: #c7d5e0;
  border: 1px solid #4c6b22;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.gc-steam-btn:hover { background: #4c6b22; color: #fff; }

/* ================================================================
   LFG
   ================================================================ */
.lfg-filter-row {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.lfg-container { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }

.lfg-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.lfg-card:hover { border-color: rgba(34,197,94,0.25); background: rgba(255,255,255,0.03); }
.lfg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lfg-user-info { display: flex; align-items: center; gap: 10px; }
.lfg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: white;
}
.lfg-username { font-weight: 700; font-size: 14px; }
.lfg-rank-region { font-size: 12px; color: var(--text-muted); }
.lfg-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.lfg-open { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.lfg-filling { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.lfg-full { background: rgba(239,68,68,0.15); color: var(--accent-red); }

.lfg-game-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lfg-game-name { font-weight: 700; font-size: 15px; }
.lfg-mode { font-size: 12px; color: var(--text-muted); }
.lfg-description { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.lfg-footer { display: flex; align-items: center; justify-content: space-between; }
.lfg-slots {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.slot-dots { display: flex; gap: 4px; }
.slot-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-accent);
}
.slot-dot.filled { background: var(--accent-green); border-color: var(--accent-green); box-shadow: 0 0 5px var(--accent-green); }
.slot-dot.me { background: var(--accent); border-color: var(--accent); }
.lfg-join-btn {
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.lfg-join-btn:hover { opacity: 0.85; }
.lfg-join-btn:disabled { background: var(--bg-card-hover); color: var(--text-muted); transform: none; box-shadow: none; cursor: default; }
.lfg-delete-btn {
  background: none;
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.lfg-delete-btn:hover { background: rgba(239,68,68,0.1); }

/* ================================================================
   TOURNAMENTS
   ================================================================ */
#tournaments-container { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.tournament-card:hover { border-color: var(--accent-gold); }
.tournament-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.tournament-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.tournament-live-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}
.tournament-info { padding: 14px 16px; }
.tournament-name { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.tournament-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tournament-meta-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.tournament-prize { font-size: 18px; font-weight: 900; color: var(--accent-gold); margin-bottom: 10px; }
.tournament-footer { display: flex; align-items: center; justify-content: space-between; }
.tournament-teams { font-size: 13px; color: var(--text-secondary); }
.tournament-register-btn {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ================================================================
   MESSAGES
   ================================================================ */
.messages-layout { display: flex; height: 100vh; overflow: hidden; }
.messages-sidebar {
  width: 280px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.messages-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.messages-sidebar-header h3 { font-size: 16px; font-weight: 800; }
.messages-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.messages-search svg { width: 14px; height: 14px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.messages-search input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 13px; flex: 1; }
#conversations-list { flex: 1; overflow-y: auto; }
.conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.conv-item:hover { background: var(--bg-card); }
.conv-item.active { background: rgba(139,92,246,0.1); }
.conv-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  position: relative;
  flex-shrink: 0;
}
.conv-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 700; font-size: 13px; }
.conv-last-msg { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { text-align: right; flex-shrink: 0; }
.conv-time { font-size: 11px; color: var(--text-muted); }
.conv-unread {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
  margin-left: auto;
}

.messages-chat { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 75%;
}
.chat-msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: white;
  flex-shrink: 0;
}
.chat-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}
.chat-msg.mine .chat-msg-bubble {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(59,130,246,0.15));
  border-color: var(--border-accent);
}
.chat-msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.chat-input-row {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-input-row input::placeholder { color: var(--text-muted); }

/* ================================================================
   NOTIFICATIONS
   ================================================================ */
.notif-filter-row { display: flex; gap: 4px; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
#notifications-container { padding: 0; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
  cursor: pointer;
}
.notif-item:hover { background: rgba(255,255,255,0.02); }
.notif-item.unread { background: rgba(139,92,246,0.03); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}
.notif-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.notif-reaction { background: rgba(239,68,68,0.08); }
.notif-follow { background: rgba(139,92,246,0.08); }
.notif-mention { background: rgba(59,130,246,0.08); }
.notif-achievement { background: rgba(245,158,11,0.08); }
.notif-system { background: rgba(34,197,94,0.08); }
.notif-content { flex: 1; }
.notif-text { font-size: 14px; line-height: 1.5; }
.notif-text strong { font-weight: 700; }
.notif-time { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.unread-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ================================================================
   LEADERBOARD
   ================================================================ */
.lb-time-filter { display: flex; gap: 4px; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
#leaderboard-container { padding: 16px 20px; }
.lb-table { display: flex; flex-direction: column; gap: 3px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}
.lb-row:hover { border-color: rgba(139,92,246,0.15); transform: translateX(3px); background: rgba(255,255,255,0.03); }
.lb-row.top1 { border-color: rgba(245,158,11,0.15); background: rgba(245,158,11,0.04); }
.lb-row.top2 { border-color: rgba(148,163,184,0.1); background: rgba(148,163,184,0.03); }
.lb-row.top3 { border-color: rgba(249,115,22,0.12); background: rgba(249,115,22,0.03); }
.lb-rank { font-size: 20px; font-weight: 900; width: 36px; text-align: center; flex-shrink: 0; }
.lb-rank.r1 { color: var(--accent-gold); }
.lb-rank.r2 { color: #94a3b8; }
.lb-rank.r3 { color: var(--accent-orange); }
.lb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  flex-shrink: 0;
}
.lb-info { flex: 1; }
.lb-name { font-weight: 700; font-size: 14px; }
.lb-game { font-size: 12px; color: var(--text-muted); }
.lb-stats { display: flex; gap: 16px; align-items: center; }
.lb-stat { text-align: right; }
.lb-stat-val { font-size: 16px; font-weight: 800; color: var(--accent); }
.lb-stat-lbl { font-size: 10px; color: var(--text-muted); }
.lb-change { font-size: 12px; font-weight: 700; }
.lb-change.up { color: var(--accent-green); }
.lb-change.down { color: var(--accent-red); }
.lb-change.same { color: var(--text-muted); }

/* ================================================================
   PROFILE
   ================================================================ */
.profile-banner {
  height: 220px;
  background: linear-gradient(135deg, #1a0a3a, #0a1a40, #0a2a1a);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
}
.profile-header-info { padding: 0 24px 8px; position: relative; }
.profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -52px;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 28px; color: white;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 24px rgba(139,92,246,0.2);
}
.profile-actions-row { display: flex; gap: 10px; margin-bottom: 12px; }
.profile-name { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.profile-handle { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.profile-bio { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 16px; padding: 10px 14px; background: rgba(255,255,255,.03); border-radius: 10px; border: 1px solid rgba(255,255,255,.05); }
.profile-stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.profile-stat { cursor: pointer; padding: 10px 20px; border-radius: 10px; transition: background .15s; text-align: center; }
.profile-stat:hover { background: rgba(139,92,246,.08); }
.profile-stat:hover .stat-label { color: var(--text-primary); }
.stat-val { font-size: 19px; font-weight: 800; display: block; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.profile-game-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-game-tag {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.profile-game-tag:hover { border-color: rgba(139,92,246,0.2); color: #a78bfa; background: rgba(139,92,246,0.06); }

.profile-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.04); margin-top: 4px; }
.profile-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.profile-tab:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,.02); }
.profile-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; font-weight: 700; }

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 20px;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.achievement-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.achievement-card.locked { opacity: 0.4; filter: grayscale(1); }
.ach-icon { font-size: 36px; margin-bottom: 8px; }
.ach-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ach-desc { font-size: 11px; color: var(--text-muted); }
.ach-progress {
  margin-top: 8px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.ach-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-blue)); border-radius: 2px; }

/* ================================================================
   RIGHT SIDEBAR WIDGETS
   ================================================================ */
#right-sidebar { padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.05) transparent; }
.widget {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 14px;
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.widget-count {
  margin-left: auto;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.online-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

.friends-list { display: flex; flex-direction: column; gap: 8px; }
.friend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.friend-item:hover { background: rgba(255,255,255,0.05); }
.friend-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: white;
  position: relative;
  flex-shrink: 0;
}
.friend-status-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-widget);
}
.friend-info { flex: 1; min-width: 0; }
.friend-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-game { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trending-list { display: flex; flex-direction: column; gap: 6px; }
.trend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.trend-item:hover { background: rgba(255,255,255,0.05); }
.trend-icon { font-size: 22px; flex-shrink: 0; }
.trend-info { flex: 1; min-width: 0; }
.trend-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-players { font-size: 11px; color: var(--accent-green); }
.trend-rank { font-size: 18px; font-weight: 900; color: var(--text-muted); }

.hashtags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}
.hashtag-pill:hover { background: rgba(139,92,246,0.15); border-color: var(--accent); }

.quick-lfg-list { display: flex; flex-direction: column; gap: 8px; }
.quick-lfg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.quick-lfg-game { font-size: 12px; font-weight: 700; }
.quick-lfg-slots { font-size: 11px; color: var(--accent-green); }
.quick-join-btn {
  background: rgba(34,197,94,0.15);
  color: var(--accent-green);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.quick-join-btn:hover { background: rgba(34,197,94,0.3); }

.lfg-widget { border-color: rgba(34,197,94,0.2); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
.btn-secondary.btn-sm { padding: 6px 14px; font-size: 13px; }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.btn-ghost:hover { background: rgba(139,92,246,0.1); }

.icon-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 6px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.hidden { display: none !important; }
.modal-box {
  background: #111122;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.compose-area {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
}
.compose-fields { flex: 1; }
.compose-fields textarea {
  width: 100%;
  min-height: 100px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
}
.compose-fields textarea::placeholder { color: var(--text-muted); }
.compose-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.char-counter { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 6px; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compose-actions-row { display: flex; gap: 4px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.modal-close-btn { position: absolute; top: 14px; right: 14px; }
.profile-modal-box { position: relative; max-width: 620px; max-height: 85vh; overflow-y: auto; padding: 0; }

/* ================================================================
   SELECTS / INPUTS
   ================================================================ */
.game-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.game-select:focus { border-color: rgba(139,92,246,0.3); }
.game-select option { background: #111122; }

/* ================================================================
   TOAST
   ================================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #151528;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  max-width: 320px;
  backdrop-filter: blur(12px);
}
.toast.success { border-color: rgba(34,197,94,0.2); }
.toast.error { border-color: rgba(239,68,68,0.2); }
.toast.info { border-color: rgba(139,92,246,0.15); }
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  to { transform: translateX(120px); opacity: 0; }
}

/* ================================================================
   LOADING / EMPTY STATES
   ================================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state p { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.empty-state span { font-size: 13px; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ================================================================
   MISC UTILITY
   ================================================================ */
.divider { height: 1px; background: rgba(255,255,255,0.04); margin: 8px 0; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }

/* Glow effects for special elements */
.glow-purple { box-shadow: 0 0 20px var(--accent-glow); }
.glow-blue   { box-shadow: 0 0 20px rgba(59,130,246,0.3); }
.glow-green  { box-shadow: 0 0 20px rgba(34,197,94,0.3); }
.glow-gold   { box-shadow: 0 0 20px rgba(245,158,11,0.3); }

/* Responsive */
@media (max-width: 1200px) {
  :root { --right-w: 0px; }
  #right-sidebar { display: none; }
  #app { grid-template-columns: var(--sidebar-w) 1fr; }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 72px; }
  .logo-text, .nav-item span, .btn-post span, .user-info-sm { display: none; }
  .btn-post { padding: 12px; width: 44px; height: 44px; border-radius: 50%; justify-content: center; }
  .sidebar-user-card { justify-content: center; }
  .user-online-dot { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
}
@media (max-width: 560px) {
  :root { --sidebar-w: 0px; }
  #sidebar { display: none; }
  #app { grid-template-columns: 1fr; }
}

/* ================================================================
   AUTH MODAL
   ================================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-box {
  background: #111122;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), var(--shadow-glow);
  overflow: hidden;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 10px;
  justify-content: center;
}
.auth-logo-text {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg,#8b5cf6,#3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
}
.auth-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.auth-tab-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.auth-tab-btn.active { color: var(--accent); background: rgba(139,92,246,0.12); }
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 24px;
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-field input,
.auth-field select {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 13px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  width: 100%;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.auth-field input::placeholder { color: var(--text-muted); }
.auth-field select { cursor: pointer; }
.auth-field select option { background: var(--bg-card); }
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 12px;
  margin-top: 4px;
  font-size: 15px;
}
.auth-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #ef4444;
  font-weight: 600;
}
.auth-demo-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-demo-hint code {
  color: var(--accent);
  background: rgba(139,92,246,0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.auth-optional { color: var(--text-muted); font-weight: 400; text-transform: none; }

/* OAuth Buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.oauth-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.oauth-btn svg { flex-shrink: 0; }
.oauth-google:hover { border-color: #4285F4; box-shadow: 0 0 0 3px rgba(66,133,244,0.12); }
.oauth-discord:hover { border-color: #5865F2; box-shadow: 0 0 0 3px rgba(88,101,242,0.12); }
.oauth-apple:hover { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ================================================================
   SIDEBAR USER MENU
   ================================================================ */
.sidebar-user-card {
  cursor: pointer;
  position: relative;
  user-select: none;
}
.sidebar-more-icon {
  margin-left: auto;
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 1px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--transition);
}
.sidebar-user-card:hover .sidebar-more-icon { color: var(--text-primary); }

.sidebar-user-menu {
  position: absolute;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 200;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition);
}
.sidebar-menu-item svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-menu-item:hover { background: var(--bg-hover); }
.sidebar-menu-item.danger { color: var(--accent-red); }
.sidebar-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ================================================================
   SHARE DROPDOWN
   ================================================================ */
.post-share-wrap {
  position: relative;
  display: inline-flex;
  flex: 1;
  justify-content: center;
}
.share-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #151528;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
  z-index: 100;
  min-width: 170px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.share-option {
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.12s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-option:hover { background: rgba(255,255,255,0.06); }

/* ================================================================
   QUOTE POST
   ================================================================ */
.quoted-post-box {
  margin-top: 10px;
}
.quoted-inner {
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-hover);
}
.quoted-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.quoted-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.quoted-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.views-btn { pointer-events: none; opacity: 0.5; }

/* Action-specific hover colors */
.post-action-btn.like-btn:hover { background: rgba(244,63,94,0.06); color: #f43f5e; }
.post-action-btn.like-btn:hover svg { stroke: #f43f5e; }
.post-action-btn.comment-btn:hover { background: rgba(59,130,246,0.06); color: #3b82f6; }
.post-action-btn.comment-btn:hover svg { stroke: #3b82f6; }
.post-action-btn.share-btn:hover { background: rgba(34,197,94,0.06); color: #22c55e; }
.post-action-btn.share-btn:hover svg { stroke: #22c55e; }
.post-action-btn.bookmark-btn:hover { background: rgba(139,92,246,0.06); color: var(--accent); }
.post-action-btn.bookmark-btn:hover svg { stroke: var(--accent); }

/* ================================================================
   VERIFIED BADGE (Shield System)
   ================================================================ */
/* Legacy compat */
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d9bf0, #0a7dda); color: #fff;
  font-size: 9px; font-weight: 900; width: 16px; height: 16px;
  border-radius: 50%; flex-shrink: 0; vertical-align: middle;
  margin-left: 2px; box-shadow: 0 0 0 2px rgba(29,155,240,0.15);
}
.verified-gold { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 0 0 2px rgba(245,158,11,0.15); }
.verified-lg { width: 22px; height: 22px; font-size: 12px; }

/* New shield verification badges */
.vb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle;
  margin-left: 3px; cursor: pointer; position: relative;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), filter 0.2s;
}
.vb:hover { transform: scale(1.2) rotate(-4deg); }
.vb-lg { width: 22px; height: 22px; }
.vb-svg { width: 100%; height: 100%; display: block; }

/* Color variants */
.vb-official  { color: #1D9BF0; filter: drop-shadow(0 1px 4px rgba(29,155,240,0.3)); }
.vb-verified  { color: #7C3AED; filter: drop-shadow(0 1px 4px rgba(124,58,237,0.3)); }
.vb-trusted   { color: #059669; filter: drop-shadow(0 1px 4px rgba(5,150,105,0.3)); }
.vb-gold      { color: #D97706; filter: drop-shadow(0 1px 4px rgba(217,119,6,0.3)); }
.vb-premium   { color: #DC2626; filter: drop-shadow(0 1px 4px rgba(220,38,38,0.3)); }
.vb-creator   { color: #DB2777; filter: drop-shadow(0 1px 4px rgba(219,39,119,0.3)); }
.vb-partner   { color: #0891B2; filter: drop-shadow(0 1px 4px rgba(8,145,178,0.3)); }
.vb-staff     { color: #65A30D; filter: drop-shadow(0 1px 4px rgba(101,163,13,0.3)); }
.vb-admin     { color: #9333EA; filter: drop-shadow(0 1px 4px rgba(147,51,234,0.3)); }
.vb-legend    { color: #F59E0B; filter: drop-shadow(0 1px 4px rgba(245,158,11,0.3)); }
.vb-newcomer  { color: #14B8A6; filter: drop-shadow(0 1px 4px rgba(20,184,166,0.3)); }
.vb-elite     { color: #6366F1; filter: drop-shadow(0 1px 4px rgba(99,102,241,0.3)); }
.vb-ownership {
  color: #FFD700;
  filter: drop-shadow(0 2px 6px rgba(255,215,0,0.4));
  animation: vb-owner-glow 2.5s ease-in-out infinite alternate;
}
@keyframes vb-owner-glow {
  0% { filter: drop-shadow(0 2px 6px rgba(255,215,0,0.3)); }
  100% { filter: drop-shadow(0 2px 12px rgba(255,215,0,0.6)) drop-shadow(0 0 4px rgba(255,215,0,0.2)); }
}
/* Hover glow boost */
.vb-official:hover  { filter: drop-shadow(0 2px 10px rgba(29,155,240,0.5)); }
.vb-verified:hover  { filter: drop-shadow(0 2px 10px rgba(124,58,237,0.5)); }
.vb-trusted:hover   { filter: drop-shadow(0 2px 10px rgba(5,150,105,0.5)); }
.vb-gold:hover      { filter: drop-shadow(0 2px 10px rgba(217,119,6,0.5)); }
.vb-premium:hover   { filter: drop-shadow(0 2px 10px rgba(220,38,38,0.5)); }
.vb-creator:hover   { filter: drop-shadow(0 2px 10px rgba(219,39,119,0.5)); }
.vb-partner:hover   { filter: drop-shadow(0 2px 10px rgba(8,145,178,0.5)); }
.vb-staff:hover     { filter: drop-shadow(0 2px 10px rgba(101,163,13,0.5)); }
.vb-admin:hover     { filter: drop-shadow(0 2px 10px rgba(147,51,234,0.5)); }
.vb-legend:hover    { filter: drop-shadow(0 2px 10px rgba(245,158,11,0.5)); }
.vb-newcomer:hover  { filter: drop-shadow(0 2px 10px rgba(20,184,166,0.5)); }
.vb-elite:hover     { filter: drop-shadow(0 2px 10px rgba(99,102,241,0.5)); }
.vb-ownership:hover { filter: drop-shadow(0 3px 14px rgba(255,215,0,0.7)) drop-shadow(0 0 6px rgba(255,215,0,0.3)); }
/* Tooltip on hover */
.vb::after {
  content: attr(title); position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) scale(0.9); opacity: 0;
  background: rgba(0,0,0,0.85); color: white; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  transition: opacity 0.15s, transform 0.15s; z-index: 100;
}
.vb:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ================================================================
   X-STYLE QUOTED POST CARD (in feed)
   ================================================================ */
.quoted-post-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quoted-post-card:hover { border-color: rgba(139,92,246,0.25); background: rgba(255,255,255,0.03); }
.quoted-post-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.quoted-avatar-sm {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.quoted-username-sm {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.quoted-handle-sm {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}
.quoted-time-sm {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  opacity: 0.7;
}
.quoted-body-sm {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quoted-media { margin-top: 8px; }
.quoted-media-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}
.quoted-media-video {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ================================================================
   INLINE COMPOSE FOOTER
   ================================================================ */
#compose-footer {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.compose-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#compose-text {
  resize: none;
  transition: height var(--transition);
}

/* ================================================================
   TOURNAMENTS MAINTENANCE SCREEN
   ================================================================ */
.maintenance-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  gap: 16px;
}
.maintenance-icon {
  font-size: 72px;
  animation: spin-slow 4s linear infinite;
}
@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(15deg); }
  75%  { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}
.maintenance-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
}
.maintenance-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.6;
}
.maintenance-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.maintenance-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.maintenance-eta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ================================================================
   STORIES — Instagram-style v2
   ================================================================ */

/* ── Story Creator Overlay ── */
.story-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.story-creator-box {
  background: var(--bg-card);
  border-radius: 20px;
  width: 100%; max-width: 500px;
  border: 1px solid var(--border);
  overflow: hidden;
  max-height: 92vh;
  display: flex; flex-direction: column;
}
.story-creator-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.story-creator-header h3 { font-size: 17px; font-weight: 800; color: var(--text-primary); margin: 0; }
/* Source tabs */
.story-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.story-tab {
  flex: 1; padding: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.story-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.story-tab:hover { background: var(--bg-secondary); }
/* Panel */
.story-panel { padding: 16px; overflow-y: auto; }
/* Upload zone */
.story-upload-zone {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-accent);
  border-radius: 14px; min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative; overflow: hidden;
}
.story-upload-zone:hover { border-color: var(--accent); background: rgba(139,92,246,0.06); }
#story-upload-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 24px; text-align: center; pointer-events: none;
}
.story-upload-icon { font-size: 42px; }
#story-upload-placeholder p { color: var(--text-primary); font-weight: 700; margin: 0; }
#story-upload-placeholder span { font-size: 11px; color: var(--text-muted); }
#story-preview-wrap {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; padding: 12px;
}
/* Text overlay on preview */
.story-text-overlay-input {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  color: #fff; border: none; outline: none;
  font-size: 18px; font-weight: 700; text-align: center;
  border-radius: 8px; padding: 8px 12px;
  resize: none; width: 80%; max-width: 300px;
  backdrop-filter: blur(4px);
  pointer-events: all; z-index: 2;
}
.story-text-overlay-input::placeholder { color: rgba(255,255,255,0.6); }
.story-remove-media {
  position: absolute; top: 8px; right: 8px;
  background: rgba(239,68,68,0.85); border: none;
  color: #fff; border-radius: 50%; width: 26px; height: 26px;
  font-size: 12px; font-weight: 800; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.story-caption-input {
  width: 100%; margin-top: 10px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-primary); border-radius: 10px;
  padding: 9px 13px; font-size: 13px; outline: none;
  box-sizing: border-box;
}
.story-caption-input:focus { border-color: var(--accent); }
/* Camera panel */
.story-camera-wrap { display: flex; flex-direction: column; gap: 10px; }
.story-camera-controls { display: flex; gap: 8px; justify-content: center; }
/* Upload progress */
.story-upload-progress-bar {
  height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden;
}
.story-upload-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 3px; transition: width 0.15s linear;
}
.story-creator-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 12px 20px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}

/* ── Story Viewer Overlay ── */
.story-viewer-overlay {
  position: fixed; inset: 0; background: #000;
  z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.story-viewer-inner {
  width: 100%; max-width: 440px;
  height: 100dvh; max-height: 860px;
  position: relative; display: flex; flex-direction: column;
  user-select: none;
}
/* Progress bars */
.story-progress-bars {
  display: flex; gap: 3px;
  padding: 14px 12px 0;
  z-index: 10; position: relative; flex-shrink: 0;
}
.story-prog-bar {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px; overflow: hidden;
}
.story-prog-fill {
  height: 100%; background: #fff;
  border-radius: 2px; width: 0%;
}
.story-prog-fill.done { width: 100%; }
/* Viewer header */
.story-viewer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; z-index: 10; position: relative; flex-shrink: 0;
}
.story-viewer-user { display: flex; align-items: center; gap: 10px; }
.story-viewer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.story-viewer-name { color: #fff; font-weight: 800; font-size: 14px; }
.story-viewer-time { color: rgba(255,255,255,0.6); font-size: 11px; }
.sv-close-btn { color: #fff !important; background: rgba(255,255,255,0.15) !important; border-radius: 50% !important; }
.sv-close-btn svg { stroke: #fff; }
.sv-unmute-btn {
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.sv-view-count {
  color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,0.4); border-radius: 12px; padding: 3px 8px;
}
.sv-delete-btn {
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
/* Media */
.story-viewer-media {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.story-viewer-media img,
.story-viewer-media video {
  width: 100%; height: 100%; object-fit: contain;
}
/* Text overlay on story */
.sv-text-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: #fff; font-size: 20px; font-weight: 700; text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.45); border-radius: 8px;
  padding: 8px 14px; max-width: 80%;
  pointer-events: none; backdrop-filter: blur(3px);
}
/* Caption */
.story-viewer-caption {
  padding: 10px 16px 18px; color: rgba(255,255,255,0.9);
  font-size: 13px; font-weight: 500; text-align: center;
  z-index: 10; position: relative; flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
/* Tap zones — 30% prev / 70% next */
.sv-tap-prev, .sv-tap-next {
  position: absolute; top: 0; bottom: 0; z-index: 5;
}
.sv-tap-prev { left: 0; width: 30%; cursor: w-resize; }
.sv-tap-next { right: 0; width: 70%; cursor: e-resize; }

/* ================================================================
   GAME COMMUNITY PAGES
   ================================================================ */
.gc-hero {
  position: relative; min-height: 260px; background-size: cover;
  background-position: center; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; border-radius: 0 0 16px 16px;
  margin-bottom: 0;
}
.gc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 70%, rgba(10,10,20,0.97) 100%);
}
.gc-back-btn {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); color: #fff;
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  cursor: pointer; transition: background .2s;
}
.gc-back-btn:hover { background: rgba(255,255,255,0.22); }
.gc-hero-content {
  position: relative; z-index: 2; display: flex;
  align-items: flex-end; justify-content: space-between;
  padding: 20px 20px 24px; gap: 16px;
}
.gc-hero-left { display: flex; align-items: flex-end; gap: 16px; flex: 1; min-width: 0; }
.gc-cover-thumb {
  width: 90px; height: 120px; border-radius: 10px; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25); flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.gc-cover-placeholder {
  width: 90px; height: 120px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#8b5cf622,#3b82f622);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.gc-hero-info { min-width: 0; }
.gc-title { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.gc-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gc-genre-chip {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9);
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
}
.gc-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,0.25); border: 1px solid rgba(239,68,68,0.5);
  color: #fca5a5; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  margin-bottom: 4px;
}
.gc-release { color: rgba(255,255,255,0.55); font-size: 12px; }
.gc-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.gc-rating-big { font-size: 22px; font-weight: 700; color: #fbbf24; }
.gc-rating-big span { font-size: 13px; color: rgba(255,255,255,0.5); }
.gc-follow-btn {
  background: linear-gradient(135deg,#8b5cf6,#3b82f6); color: #fff;
  border: none; padding: 10px 20px; border-radius: 22px;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.gc-follow-btn:hover { opacity: .88; transform: scale(1.03); }
.gc-follow-btn.following {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Tabs */
.gc-tabs-bar {
  display: flex; gap: 4px; padding: 12px 16px 0;
  border-bottom: 1px solid var(--border); background: var(--bg-card);
  position: sticky; top: 0; z-index: 10;
}
.gc-tab {
  padding: 10px 18px; border-radius: 8px 8px 0 0; font-size: 13px; font-weight: 600;
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.gc-tab:hover { color: var(--text-primary); }
.gc-tab.active {
  color: var(--accent-purple); border-bottom-color: var(--accent-purple);
  background: rgba(139,92,246,0.06);
}

/* Content area */
.gc-content { padding: 16px 0; min-height: 300px; }
.gc-loading { padding: 40px; text-align: center; color: var(--text-muted); }

/* LFG grid inside community */
.gc-content .lfg-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 14px; padding: 0 16px; }

/* About tab */
.gc-about { padding: 20px 16px; max-width: 700px; }
.gc-about-card { display: flex; gap: 20px; margin-bottom: 20px; }
.gc-about-cover { width: 120px; height: 160px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.gc-about-details { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.gc-about-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--bg-card); border-radius: 8px;
  border: 1px solid var(--border); font-size: 13px;
}
.gc-about-row span { color: var(--text-muted); }
.gc-about-row strong { color: var(--text-primary); font-weight: 600; }
.gc-summary {
  color: var(--text-secondary); font-size: 14px; line-height: 1.7;
  border-left: 3px solid var(--accent-purple); padding-left: 14px;
  margin: 0;
}

/* ================================================================
   PEOPLE SECTION
   ================================================================ */
.people-grid {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 20px;
}
.people-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px; padding: 16px;
  cursor: pointer; transition: all 0.15s ease;
}
.people-card:hover { border-color: rgba(139,92,246,0.15); background: rgba(255,255,255,0.03); }
.people-avatar {
  width: 52px; height: 52px; min-width: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
}
.people-info { flex: 1; min-width: 0; }
.people-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.people-handle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.people-bio { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ================================================================
   FOLLOW MODAL
   ================================================================ */
.follow-modal-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; border-radius: var(--radius-sm);
}
.follow-modal-user:hover { background: var(--bg-card-hover); padding-left: 8px; }
.follow-modal-user:last-child { border-bottom: none; }

/* ================================================================
   PROFILE GAMES TAB
   ================================================================ */
.profile-games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr));
  gap: 14px; padding: 16px 20px;
}
.profile-game-item {
  cursor: pointer; text-align: center;
  transition: transform .2s;
}
.profile-game-item:hover { transform: scale(1.04); }
.profile-game-cover {
  width: 100%; aspect-ratio: 3/4; border-radius: 8px;
  background: var(--bg-card); display: flex; align-items: center;
  justify-content: center; overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 6px;
}
.profile-game-name { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

/* Clickable profile stats */
.clickable-stat { cursor: pointer; transition: color .15s; }
.clickable-stat:hover .stat-val, .clickable-stat:hover .stat-label { color: var(--accent); }

/* ================================================================
   SETTINGS PAGE
   ================================================================ */
.settings-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  min-height: 500px;
}
.settings-nav {
  border-right: 1px solid var(--border); padding: 16px 0;
}
.settings-nav-item {
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background .15s, color .15s;
  color: var(--text-secondary); border-right: 2px solid transparent;
}
.settings-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.settings-nav-item.active {
  background: rgba(139,92,246,0.1); color: var(--accent);
  border-right-color: var(--accent);
}
.settings-nav-item.danger { color: var(--accent-red); }
.settings-nav-item.danger:hover { background: rgba(239,68,68,0.1); }
.settings-content { padding: 24px; }
.settings-section { margin-bottom: 32px; }
.settings-section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.settings-field {
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px;
}
.settings-field label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.settings-field input, .settings-field textarea, .settings-field select {
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-primary); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 14px; width: 100%; box-sizing: border-box;
  transition: border-color .2s;
}
.settings-field input:focus, .settings-field textarea:focus, .settings-field select:focus {
  outline: none; border-color: var(--accent);
}
.settings-field textarea { resize: vertical; font-family: inherit; }
.settings-toggle-row { display: flex; align-items: center; gap: 12px; }
.settings-avatar-section {
  display: flex; align-items: center; gap: 20px; margin-bottom: 20px;
}
.settings-avatar-preview {
  width: 80px; height: 80px; border-radius: 50%; font-size: 28px;
  font-weight: 700; color: #fff; display: flex; align-items: center;
  justify-content: center;
}

/* Accent color swatches */
.accent-color-grid {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.accent-swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  transition: transform .2s; border: 2px solid transparent;
}
.accent-swatch:hover { transform: scale(1.15); }
.accent-swatch.active { border-color: #fff; transform: scale(1.1); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border); border-radius: 24px; transition: .3s;
}
.toggle-slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Danger button */
.btn-danger {
  background: var(--accent-red); color: white; border: none;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 14px; cursor: pointer; transition: opacity .2s;
}
.btn-danger:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { border-right: none; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; padding: 0; }
  .settings-nav-item { white-space: nowrap; border-right: none; border-bottom: 2px solid transparent; }
  .settings-nav-item.active { border-right-color: transparent; border-bottom-color: var(--accent); }
}

/* ================================================================
   COMMENT SYSTEM
   ================================================================ */
.comment-section {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 16px 20px 0;
  background: rgba(255,255,255,0.01);
}
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
.comments-list::-webkit-scrollbar { width: 3px; }
.comments-list::-webkit-scrollbar-track { background: transparent; }
.comments-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.empty-comments { color: var(--text-muted); font-size: 13px; padding: 20px 0; text-align: center; opacity: 0.7; }
.comment-item { display: flex; gap: 10px; align-items: flex-start; }
.comment-item.comment-claude { background: linear-gradient(135deg,rgba(204,120,92,.05),rgba(168,95,69,.02)); border-radius: 12px; padding: 12px 14px; margin: 0 -4px; border: 1px solid rgba(204,120,92,.08); }
.comment-avatar { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; cursor: pointer; transition: transform 0.15s ease; }
.comment-avatar:hover { transform: scale(1.08); }
.claude-comment-avatar { background: transparent !important; border: 2px solid #cc785c; box-shadow: 0 0 12px rgba(204,120,92,.15); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-author { font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text-primary); transition: color 0.12s ease; letter-spacing: -0.01em; }
.comment-author:hover { color: var(--accent); }
.comment-time { font-size: 11px; color: var(--text-muted); opacity: 0.7; }
.comment-text { font-size: 13.5px; color: rgba(240,240,250,0.78); line-height: 1.55; word-break: break-word; }
.claude-ai-badge { background: linear-gradient(135deg,#cc785c,#a85f45); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: .3px; }
.comment-input-row { display: flex; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.04); }
.comment-input-wrap { flex: 1; display: flex; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 9px 14px; gap: 8px; transition: border-color .15s, background .15s; }
.comment-input-wrap:focus-within { border-color: rgba(139,92,246,0.35); background: rgba(255,255,255,0.04); }
.comment-input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 13px; }
.comment-input::placeholder { color: rgba(255,255,255,0.25); }
.comment-submit-btn { background: var(--accent); border: none; color: white; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s, transform .12s; }
.comment-submit-btn:hover { opacity: .85; transform: scale(1.06); }
.comment-reply-btn { background: none; border: none; color: rgba(255,255,255,0.3); font-size: 11px; cursor: pointer; padding: 3px 8px; border-radius: 5px; transition: all .12s; font-weight: 500; }
.comment-reply-btn:hover { color: var(--accent); background: rgba(139,92,246,0.06); }
.post-highlight { animation: highlightPost .4s ease; }
@keyframes highlightPost { 0%,100% { background: transparent; } 40% { background: rgba(139,92,246,.15); } }

/* Profile back bar */
.profile-back-bar { padding: 12px 0 4px; }
.profile-back-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 6px 10px; border-radius: 8px; transition: all .2s; }
.profile-back-btn:hover { color: var(--text-primary); background: var(--bg-card); }

/* Claude Replies Tab */
.claude-reply-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.claude-reply-card:hover { background: var(--card-hover, rgba(255,255,255,0.05)); }
.claude-reply-context { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.claude-reply-quote {
  font-size: 13px; color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 10px; margin-bottom: 10px;
  font-style: italic;
}
.claude-reply-body { font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.claude-reply-time { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ── Thread-line comment system ── */
.comment-thread-item { display: flex; flex-direction: column; }
.comment-thread-replies { margin-left: 18px; padding-left: 14px; border-left: 2px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.comment-thread-replies:hover { border-left-color: rgba(139,92,246,0.12); }
.comment-item { display: flex; gap: 10px; align-items: flex-start; }
.comment-left { display: flex; flex-direction: column; align-items: center; }
.comment-thread-line { width: 2px; flex: 1; background: rgba(255,255,255,0.05); min-height: 8px; margin-top: 4px; border-radius: 1px; transition: background 0.15s; }
.comment-item:hover > .comment-left > .comment-thread-line { background: rgba(139,92,246,0.15); }
.comment-item.comment-nested { padding-left: 0; }
.comment-actions-micro { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.inline-reply-wrap { margin-top: 8px; }
.inline-reply-row { border-top: none !important; padding-top: 0 !important; }

/* ── Comment sort tabs ── */
.comment-sort-tabs { display: flex; gap: 4px; padding: 8px 0 10px; border-bottom: 1px solid rgba(255,255,255,0.04); margin-bottom: 12px; overflow-x: auto; }
.csort-tab { background: none; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; color: rgba(255,255,255,0.35); font-size: 11px; padding: 4px 10px; cursor: pointer; white-space: nowrap; transition: all .12s; font-weight: 500; }
.csort-tab:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.1); }
.csort-tab.active { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.2); color: #a78bfa; }

/* ── AI button on post ── */
.ai-action-btn { gap: 4px; }
.ai-action-btn.active { color: #cc785c !important; }

/* ── AI bubble ── */
.ai-bubble { background: linear-gradient(135deg,rgba(204,120,92,.06),rgba(139,92,246,.04)); border: 1px solid rgba(204,120,92,.1); border-radius: 12px; padding: 14px 16px; margin: 8px 18px 4px; }
.ai-bubble.hidden { display: none; }
.ai-bubble-header { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #cc785c; margin-bottom: 8px; letter-spacing: .3px; }
.ai-bubble-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-chip { background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.15); border-radius: 7px; color: #a78bfa; font-size: 11px; font-weight: 500; padding: 5px 10px; cursor: pointer; transition: all .12s; }
.ai-chip:hover { background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.3); }
.ai-chip.used { opacity: .3; pointer-events: none; }

/* ── AI thinking animation ── */
.ai-bubble-thinking { display: flex; gap: 5px; padding: 4px 0; align-items: center; }
.ai-bubble-thinking span { width: 7px; height: 7px; background: #cc785c; border-radius: 50%; animation: aiDot 1.2s ease-in-out infinite; }
.ai-bubble-thinking span:nth-child(2) { animation-delay: .2s; }
.ai-bubble-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%,80%,100% { transform: scale(0.6); opacity:.4; } 40% { transform: scale(1); opacity:1; } }

/* ── Compose Modal (Post Composer) ── */
.compose-modal { background: #111122; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; width: 100%; max-width: 620px; box-shadow: 0 24px 64px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,0.03); overflow: hidden; }
.compose-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.compose-modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.compose-modal-body { display: flex; gap: 14px; padding: 20px 22px 12px; }
.compose-avatar-col { flex-shrink: 0; }
.compose-content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.compose-textarea { width: 100%; min-height: 140px; max-height: 300px; background: transparent; border: none; outline: none; resize: none; color: var(--text-primary); font-size: 17px; font-family: inherit; line-height: 1.55; }
.compose-textarea::placeholder { color: var(--text-muted); }
.compose-tags-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.06); }
.compose-tag-select { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 7px; color: rgba(255,255,255,0.6); font-size: 12px; padding: 6px 12px; outline: none; cursor: pointer; transition: border-color .15s, background .15s; }
.compose-tag-select:hover, .compose-tag-select:focus { border-color: rgba(139,92,246,0.25); background: rgba(255,255,255,0.04); }
.compose-tag-select option { background: #111122; }
.compose-modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 16px; border-top: 1px solid rgba(255,255,255,0.04); gap: 12px; }
.compose-footer-right { display: flex; align-items: center; gap: 12px; }
.compose-char-count { font-size: 12px; color: var(--text-muted); }

/* ── Post image preview (in composer) ── */
.post-image-preview { position: relative; margin-top: 8px; }
.post-img-wrap { position: relative; display: inline-block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.post-img-thumb { max-width: 100%; max-height: 260px; border-radius: 14px; object-fit: cover; display: block; }
.post-img-remove { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); color: white; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.post-img-remove:hover { background: rgba(220,50,50,.8); transform: scale(1.1); }
.post-video-preview { position: relative; margin-top: 8px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.post-video-preview video { display: block; }
.post-media-remove { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); color: white; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; z-index: 2; }
.post-media-remove:hover { background: rgba(220,50,50,.8); transform: scale(1.1); }

/* ── Custom confirm dialog ── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.confirm-overlay.visible { opacity: 1; }
.confirm-box {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.confirm-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}
.confirm-actions {
  display: flex;
  gap: 10px;
}
.confirm-cancel-btn,
.confirm-ok-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.confirm-cancel-btn {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}
.confirm-cancel-btn:hover { background: rgba(255,255,255,0.12); }
.confirm-ok-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: white;
}
.confirm-ok-btn:hover { opacity: 0.9; }
.confirm-ok-btn.confirm-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.confirm-ok-btn:active, .confirm-cancel-btn:active { transform: scale(0.97); }

/* ── Post image in feed ── */
.post-image-container { margin: 10px 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.post-image { width: 100%; max-height: 420px; object-fit: cover; cursor: zoom-in; display: block; border-radius: 14px; transition: transform .25s ease, opacity .2s; }
.post-image:hover { transform: scale(1.01); opacity: .95; }

/* ── Image lightbox ── */
.img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.img-lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.img-lightbox-inner img { max-width: 100%; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.img-lightbox-inner button { position: absolute; top: -14px; right: -14px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); color: white; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 14px; transition: background .15s; }
.img-lightbox-inner button:hover { background: rgba(255,255,255,.2); }

/* ── Profile page tweaks ── */
.profile-banner-icon { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); opacity: .3; font-size: 72px; }
.profile-banner { position: relative; }
.profile-avatar-lg { width: 110px; height: 110px; min-width: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 38px; color: white; border: 4px solid var(--bg-primary); overflow: hidden; }
.profile-online-dot { font-size: 11px; margin-left: 6px; }
.profile-edit-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* ── Replies feed (profile tab) ── */
.replies-feed { display: flex; flex-direction: column; gap: 2px; }
.reply-feed-item { padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: background .15s; }
.reply-feed-item:hover { background: rgba(255,255,255,.02); }
.reply-feed-quote-block { border-left: 2px solid rgba(139,92,246,.25); padding: 8px 14px; margin-bottom: 14px; border-radius: 0 8px 8px 0; background: rgba(139,92,246,.04); }
.reply-feed-quote-label { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.reply-feed-quote-text { font-size: 13px; color: var(--text-secondary); line-height: 1.45; font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reply-feed-row { display: flex; gap: 12px; align-items: flex-start; }
.reply-feed-avatar { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }
.reply-feed-avatar-bot { object-fit: cover; border: 2px solid #cc785c; background: transparent; box-shadow: 0 0 12px rgba(204,120,92,.3); }
.reply-feed-bubble { flex: 1; background: rgba(255,255,255,0.02); border-radius: 2px 14px 14px 14px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.04); }
.reply-feed-item:hover .reply-feed-bubble { border-color: rgba(139,92,246,.1); }
.reply-feed-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.reply-feed-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.reply-feed-time { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.reply-feed-text { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* Claude-specific reply card enhancements */
.reply-feed-item--claude { border-bottom: 1px solid rgba(204,120,92,.12); }
.reply-feed-item--claude .reply-feed-bubble { background: linear-gradient(135deg, rgba(204,120,92,.06), rgba(168,95,69,.03)); border: 1px solid rgba(204,120,92,.12); }
.reply-feed-item--claude:hover .reply-feed-bubble { border-color: rgba(204,120,92,.25); }
.reply-feed-item--claude .reply-feed-quote-block { border-left-color: rgba(204,120,92,.5); background: rgba(204,120,92,.05); }

/* ================================================================
   PLANS / SUBSCRIPTION
   ================================================================ */

/* Plan badges inline */
.plan-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; line-height: 1; vertical-align: middle; }
.plan-badge-plus { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.plan-badge-pro  { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.18); }

/* Sidebar plan badge */
#sidebar-plan-badge .plan-badge { font-size: 9px; padding: 2px 6px; }

/* Nav DXED+ item */
.nav-item-plans { position: relative; }
.nav-plans-badge { background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 99px; letter-spacing: .3px; }
.nav-plans-active > span:first-of-type { background: linear-gradient(90deg,#8b5cf6,#f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Plans hero */
.plans-hero { text-align: center; padding: 48px 24px 32px; }
.plans-hero-icon { font-size: 48px; margin-bottom: 12px; }
.plans-hero-title { font-size: 28px; font-weight: 900; margin-bottom: 10px; background: linear-gradient(135deg,#8b5cf6,#f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plans-hero-sub { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto 16px; line-height: 1.5; }
.plans-current-banner { display: inline-flex; align-items: center; gap: 8px; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3); border-radius: 99px; padding: 6px 16px; font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

/* Plans grid */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 0 24px 32px; max-width: 960px; margin: 0 auto; }
@media(max-width:860px) { .plans-grid { grid-template-columns: 1fr; max-width: 400px; } }

/* Plan card */
.plan-card { background: var(--plan-gradient,var(--bg-card)); border: 1.5px solid var(--border); border-radius: 20px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 20px; position: relative; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.plan-card-featured { border-color: var(--plan-color,#8b5cf6); box-shadow: 0 0 0 1px var(--plan-color,#8b5cf6), 0 8px 32px rgba(139,92,246,0.25); }
.plan-card-current { border-color: var(--accent-green); }

/* Popular / best value badge on top */
.plan-badge-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: white; white-space: nowrap; }

/* Plan card header */
.plan-card-header { text-align: center; }
.plan-name { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.plan-price { font-size: 36px; font-weight: 900; color: var(--plan-color,var(--text-primary)); line-height: 1; }
.plan-period { font-size: 14px; font-weight: 400; color: var(--text-muted); }

/* Plan features */
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.feature-ok { color: var(--text-secondary); }
.feature-no { color: var(--text-muted); text-decoration: line-through; }
.feature-icon { font-size: 11px; font-weight: 900; min-width: 14px; margin-top: 2px; }
.feature-ok .feature-icon { color: var(--accent-green); }
.feature-no .feature-icon { color: var(--text-muted); }

/* CTA buttons */
.plan-cta-btn { width: 100%; padding: 12px; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; border: none; transition: all .2s; }
.plan-cta-upgrade { background: linear-gradient(135deg, var(--plan-color,#8b5cf6), color-mix(in srgb, var(--plan-color,#8b5cf6) 60%, #000)); color: white; }
.plan-cta-upgrade:hover:not(:disabled) { opacity: .88; transform: scale(1.02); }
.plan-cta-current { background: rgba(34,197,94,0.15); color: var(--accent-green); border: 1.5px solid var(--accent-green); cursor: default; }
.plan-cta-downgrade { background: var(--bg-input); color: var(--text-muted); border: 1.5px solid var(--border); }
.plan-cta-downgrade:hover:not(:disabled) { color: var(--text-secondary); }
.plan-cta-btn:disabled { opacity: .7; cursor: not-allowed; transform: none !important; }

/* Plans footer */
.plans-footer { text-align: center; padding: 0 24px 48px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* Upgrade prompt toast */
.upgrade-prompt-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; animation: slideInUp 0.3s ease; }
.upgrade-prompt-inner { display: flex; align-items: center; gap: 12px; background: #1a0a3a; border: 1.5px solid #7c3aed; border-radius: 14px; padding: 14px 18px; box-shadow: 0 8px 32px rgba(124,58,237,0.4); min-width: min(340px, calc(100vw - 32px)); max-width: 480px; }
.upgrade-prompt-icon { font-size: 22px; flex-shrink: 0; }
.upgrade-prompt-text { flex: 1; }
.upgrade-prompt-text strong { display: block; font-size: 14px; color: var(--text-primary); margin-bottom: 2px; }
.upgrade-prompt-text span { font-size: 12px; color: var(--text-muted); }
.upgrade-prompt-btn { background: linear-gradient(135deg,#7c3aed,#4f46e5); color: white; border: none; border-radius: 8px; padding: 8px 16px; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; }
.upgrade-prompt-btn:hover { opacity: .85; }
.upgrade-prompt-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 4px; line-height: 1; flex-shrink: 0; }
.upgrade-prompt-close:hover { color: var(--text-primary); }
@keyframes slideInUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== POLLS ===== */
.poll-card { margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.poll-option { position: relative; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; overflow: hidden; padding: 10px 12px; cursor: pointer; transition: border-color .2s; display: flex; align-items: center; justify-content: space-between; }
.poll-option:hover { border-color: rgba(108,99,255,.6); }
.poll-option.voted { border-color: #6c63ff; cursor: default; }
.poll-option.winner { border-color: #a78bfa; }
.poll-option-bar { position: absolute; left: 0; top: 0; height: 100%; background: rgba(108,99,255,.18); transition: width .6s cubic-bezier(.4,0,.2,1); z-index: 0; }
.poll-option-text { position: relative; z-index: 1; font-size: 14px; }
.poll-option-pct { position: relative; z-index: 1; font-size: 13px; font-weight: 600; opacity: .9; }
.poll-meta { font-size: 12px; opacity: .5; margin-top: 4px; }

/* ===== SEARCH ===== */
.search-hero { padding: 20px 16px 12px; }
.search-input-big { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; font-size: 16px; color: inherit; outline: none; transition: border-color .2s; box-sizing: border-box; }
.search-input-big:focus { border-color: #6c63ff; }
.search-tabs { display: flex; gap: 8px; padding: 0 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.search-tab { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,.15); background: none; color: inherit; transition: all .2s; }
.search-tab.active, .search-tab:hover { background: #6c63ff; border-color: #6c63ff; }
.search-section-title { font-size: 13px; font-weight: 600; opacity: .5; padding: 12px 16px 6px; text-transform: uppercase; letter-spacing: .05em; }
.search-user-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background .15s; }
.search-user-row:hover { background: rgba(255,255,255,.04); }
.search-game-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; cursor: pointer; transition: background .15s; }
.search-game-row:hover { background: rgba(255,255,255,.04); }
.search-game-img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.search-recent { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-recent-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 5px 14px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.search-recent-chip:hover { background: rgba(108,99,255,.2); }

/* ===== CLANS ===== */
.clan-card { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .15s; margin: 0 16px 12px; }
.clan-card:hover { border-color: #6c63ff; transform: translateY(-1px); }
.clan-card-banner { height: 60px; }
.clan-card-body { padding: 10px 14px 14px; }
.clan-card-top { display: flex; align-items: center; gap: 10px; margin-top: -20px; }
.clan-avatar { width: 44px; height: 44px; border-radius: 10px; background: #6c63ff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; border: 3px solid var(--bg-primary, #0a0a0f); flex-shrink: 0; }
.clan-tag { display: inline-block; background: rgba(108,99,255,.2); border: 1px solid rgba(108,99,255,.4); color: #a78bfa; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 700; font-family: monospace; }
.clan-tag-inline { background: rgba(108,99,255,.15); border: 1px solid rgba(108,99,255,.3); color: #a78bfa; border-radius: 3px; padding: 0 5px; font-size: 11px; font-weight: 700; font-family: monospace; margin-left: 4px; }
.clan-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.clan-meta { font-size: 12px; opacity: .55; display: flex; gap: 10px; flex-wrap: wrap; }
.clan-detail-header { position: relative; height: 120px; border-radius: 12px 12px 0 0; overflow: hidden; }
.clan-detail-body { padding: 16px; }
.clan-detail-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.clan-detail-tab { padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; opacity: .6; transition: all .2s; }
.clan-detail-tab.active { border-color: #6c63ff; opacity: 1; }
.my-clan-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(108,99,255,.15); border: 1px solid rgba(108,99,255,.3); border-radius: 20px; padding: 4px 12px; font-size: 12px; cursor: pointer; margin: 4px; }

/* ===== CHALLENGES WIDGET ===== */
.challenge-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.challenge-item:last-child { border-bottom: none; }
.challenge-icon { font-size: 20px; flex-shrink: 0; }
.challenge-info { flex: 1; min-width: 0; }
.challenge-title { font-size: 13px; font-weight: 600; }
.challenge-desc { font-size: 11px; opacity: .5; }
.challenge-progress-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.challenge-progress-fill { height: 100%; background: linear-gradient(90deg, #6c63ff, #a78bfa); border-radius: 2px; transition: width .4s; }
.challenge-claim-btn { background: linear-gradient(135deg, #6c63ff, #a78bfa); border: none; color: white; border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.challenge-claim-btn:disabled { background: rgba(255,255,255,.1); cursor: default; }
.challenge-xp { font-size: 11px; font-weight: 700; color: #a78bfa; flex-shrink: 0; }

/* ===== VIDEO CLIP IN FEED ===== */
.clip-video-wrapper { position: relative; border-radius: 12px; overflow: hidden; background: #000; margin: 8px 0; cursor: pointer; }
.post-clip-video { width: 100%; max-height: 400px; display: block; pointer-events: none; }
.clip-video-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); transition: opacity 0.2s;
}
.clip-video-wrapper:hover .clip-video-play-overlay { opacity: 0.8; }

/* ===== CUSTOM VIDEO PLAYER ===== */
.vp-overlay {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  opacity: 0; transition: opacity 0.25s ease;
}
.vp-overlay.visible { opacity: 1; }
.vp-container { width: 100%; height: 100%; position: relative; overflow: hidden; }
.vp-video-area { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; background: #000; }
.vp-video { width: 100%; height: 100%; object-fit: contain; }

/* Gradient overlays */
.vp-gradient-top {
  position: absolute; top: 0; left: 0; right: 0; height: 140px; z-index: 6; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.35s ease;
}
.vp-gradient-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 280px; z-index: 6; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}
.vp-overlay.controls-visible .vp-gradient-top { opacity: 1; }

/* Tap zones */
.vp-tap-zone { position: absolute; top: 60px; bottom: 60px; z-index: 7; -webkit-tap-highlight-color: transparent; }
.vp-tap-left { left: 0; width: 28%; }
.vp-tap-center { left: 28%; width: 44%; }
.vp-tap-right { right: 0; width: 28%; }

/* Play/pause state icon (center flash) */
.vp-state-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10; pointer-events: none; opacity: 0;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.vp-state-icon .vp-state-play,
.vp-state-icon .vp-state-pause { display: none; line-height: 0; }
.vp-state-icon.show { opacity: 1; animation: vp-state-pop 0.5s ease forwards; }
.vp-state-icon.playing .vp-state-pause { display: block; }
.vp-state-icon.paused .vp-state-play { display: block; }
.vp-state-icon.paused .vp-state-play { padding-left: 3px; }
@keyframes vp-state-pop {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
  40% { transform: translate(-50%,-50%) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1); }
}

/* Heart particle burst */
.vp-heart-burst { position: absolute; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.vp-heart-particle {
  position: absolute; pointer-events: none;
  animation: vp-heart-fly 0.9s ease forwards;
}
@keyframes vp-heart-fly {
  0% { opacity: 1; transform: translate(0,0) scale(0) rotate(0deg); }
  15% { opacity: 1; transform: translate(0,0) scale(var(--scale)) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(var(--rot)); }
}

/* Skip ripple indicators */
.vp-skip-ripple {
  position: absolute; top: 0; bottom: 0; width: 40%; z-index: 9;
  pointer-events: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: white; font-size: 13px; font-weight: 700; opacity: 0;
}
.vp-skip-ripple-left { left: 0; border-radius: 0 50% 50% 0; }
.vp-skip-ripple-right { right: 0; border-radius: 50% 0 0 50%; }
.vp-skip-ripple-bg {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  border-radius: inherit;
}
.vp-skip-ripple.show { animation: vp-ripple-flash 0.7s ease forwards; }
.vp-skip-ripple.show .vp-skip-ripple-bg { animation: vp-ripple-bg 0.7s ease forwards; }
@keyframes vp-ripple-flash {
  0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes vp-ripple-bg {
  0% { transform: scale(0.7); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; }
}

/* Top bar */
.vp-top-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 12;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vp-overlay.controls-visible .vp-top-bar { opacity: 1; transform: translateY(0); }
.vp-close-btn {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.vp-close-btn:hover { background: rgba(255,255,255,0.18); }
.vp-top-info { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.vp-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12px; color: white; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.vp-user-meta { display: flex; flex-direction: column; }
.vp-username { font-size: 13px; font-weight: 700; color: white; line-height: 1.2; }
.vp-handle { font-size: 11px; color: rgba(255,255,255,0.45); }
.vp-game-pill {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.8);
  background: rgba(139,92,246,0.25); border: 1px solid rgba(139,92,246,0.3);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}
.vp-top-spacer { flex: 1; }
.vp-more-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  -webkit-tap-highlight-color: transparent; opacity: 0.7; transition: opacity 0.15s;
}
.vp-more-btn:hover { opacity: 1; }

/* Side engagement rail (TikTok-style) */
.vp-rail {
  position: absolute; right: 8px; bottom: 120px; z-index: 12;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.vp-rail-avatar {
  cursor: pointer; margin-bottom: 6px;
}
.vp-rail-avatar-img {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; color: white;
  border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.vp-rail-avatar-img:hover { transform: scale(1.08); }
.vp-rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: white; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform 0.15s;
}
.vp-rail-btn span {
  font-size: 11px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.vp-rail-btn:active { transform: scale(0.9); }
.vp-rail-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.vp-rail-icon:hover { background: rgba(255,255,255,0.15); }
.vp-rail-btn svg {
  stroke: white; fill: none; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.vp-rail-btn.active { color: #ef4444; }
.vp-rail-btn.active svg { stroke: #ef4444; fill: #ef4444; }
.vp-rail-btn.active .vp-rail-icon { background: rgba(239,68,68,0.15); }
.vp-btn-pop { animation: vp-btn-pop 0.3s ease; }
@keyframes vp-btn-pop {
  0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); }
}

/* Bottom info area */
.vp-bottom {
  position: absolute; bottom: 50px; left: 14px; right: 70px; z-index: 12;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.vp-desc-area { margin-bottom: 8px; }
.vp-desc-text {
  font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.5;
  max-height: 40px; overflow: hidden; word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  transition: max-height 0.3s ease;
}
.vp-desc-text.expanded { max-height: 300px; }
.vp-desc-more {
  background: none; border: none; color: rgba(255,255,255,0.5); font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 0; margin-top: 2px;
}
.vp-views-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500;
}

/* YouTube-style controls bar (bottom) */
.vp-controls {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 14;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 1; transition: opacity 0.3s ease;
}
.vp-progress-bar {
  position: relative; height: 3px; background: rgba(255,255,255,0.15);
  cursor: pointer; transition: height 0.15s ease;
  margin: 0 0 0;
}
.vp-progress-bar:hover,
.vp-progress-bar.seeking { height: 6px; }
.vp-progress-buffer {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: rgba(255,255,255,0.2); border-radius: 0;
}
.vp-progress-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139,92,246,0.4);
}
.vp-progress-thumb {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) scale(0);
  width: 14px; height: 14px; border-radius: 50%; background: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.3); transition: transform 0.15s ease;
}
.vp-progress-bar:hover .vp-progress-thumb,
.vp-progress-bar.seeking .vp-progress-thumb { transform: translate(-50%, -50%) scale(1); }
.vp-progress-hover-time {
  position: absolute; bottom: 100%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: white; font-size: 12px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; pointer-events: none;
  opacity: 0; transition: opacity 0.15s; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.vp-progress-hover-time.show { opacity: 1; }

.vp-controls-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px 8px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vp-overlay.controls-visible .vp-controls-row { opacity: 1; transform: translateY(0); }
.vp-ctrl-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  -webkit-tap-highlight-color: transparent; opacity: 0.9;
  transition: opacity 0.12s, transform 0.12s;
}
.vp-ctrl-btn:hover { opacity: 1; transform: scale(1.1); }
.vp-time-display {
  font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.vp-ctrl-spacer { flex: 1; }

/* Comments panel */
.vp-comments-panel {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(12,12,24,0.97); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px 20px 0 0; max-height: 60vh; display: flex; flex-direction: column;
  transform: translateY(0); transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.vp-comments-panel.hidden { transform: translateY(100%); pointer-events: none; }
.vp-comments-drag-handle {
  width: 36px; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.15);
  margin: 10px auto 4px; flex-shrink: 0;
}
.vp-comments-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px; font-weight: 700; color: white;
}
.vp-comments-close {
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; transition: background 0.15s;
}
.vp-comments-close:hover { background: rgba(255,255,255,0.15); }
.vp-comments-body {
  flex: 1; overflow-y: auto; padding: 10px 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

/* ===== ADMIN PANEL ===== */
.nav-item-admin { border-top: 1px solid rgba(255,255,255,0.04); margin-top: 6px; padding-top: 6px; }
.nav-item-admin svg { fill: none; stroke: currentColor; stroke-width: 2; }
.nav-item-admin.active, .nav-item-admin:hover { color: #f59e0b !important; }

.adm-tabs {
  display: flex; gap: 4px; padding: 0 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 16px;
}
.adm-tab {
  padding: 8px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
  background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.adm-tab:hover { background: rgba(255,255,255,0.04); color: white; }
.adm-tab.active { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.25); color: #a78bfa; }

/* Stats grid */
.adm-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-stat-card {
  background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
  padding: 18px; position: relative; overflow: hidden;
}
.adm-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 14px 14px 0 0;
}
.adm-stat-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.adm-stat-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.adm-stat-green::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.adm-stat-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.adm-stat-icon { margin-bottom: 10px; color: var(--text-muted); }
.adm-stat-val { font-size: 28px; font-weight: 800; color: white; line-height: 1; }
.adm-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.adm-stat-sub { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 6px; }

/* Cards */
.adm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .adm-row { grid-template-columns: 1fr; } }
.adm-card {
  background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 18px; margin-bottom: 16px;
}
.adm-card-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 14px; }

/* Plan bars */
.adm-plan-bars { display: flex; flex-direction: column; gap: 12px; }
.adm-plan-row { display: flex; align-items: center; gap: 10px; }
.adm-plan-label { font-size: 12px; font-weight: 600; min-width: 56px; color: var(--text-muted); }
.adm-plan-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.adm-plan-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.adm-plan-count { font-size: 12px; font-weight: 700; color: white; min-width: 30px; text-align: right; }

/* Misc stats */
.adm-misc-stats { display: flex; flex-direction: column; gap: 10px; }
.adm-misc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.adm-misc-row strong { color: white; }

/* Growth chart */
.adm-growth-chart { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding: 10px 0; }
.adm-growth-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.adm-growth-bar { width: 100%; background: linear-gradient(to top, #8b5cf6, #a78bfa); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.3s ease; }
.adm-growth-label { font-size: 9px; color: var(--text-muted); }

/* Top list */
.adm-top-list { display: flex; flex-direction: column; gap: 8px; }
.adm-top-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer;
  border-radius: 10px; transition: background 0.15s;
}
.adm-top-item:hover { background: rgba(255,255,255,0.04); }
.adm-top-rank { font-size: 14px; font-weight: 800; color: var(--text-muted); min-width: 20px; }
.adm-top-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12px; color: white; flex-shrink: 0;
}
.adm-top-name { font-size: 13px; font-weight: 700; color: white; flex: 1; }
.adm-top-count { font-size: 12px; color: var(--text-muted); }

/* Users table */
.adm-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-search-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 8px 14px;
}
.adm-search {
  flex: 1; background: none; border: none; color: white; font-size: 13px;
  outline: none; font-family: inherit;
}
.adm-search::placeholder { color: var(--text-muted); }
.adm-count { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.adm-users-table { border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; }
.adm-table-head {
  display: flex; align-items: center; padding: 10px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.adm-th { flex: 1; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.adm-table-row {
  display: flex; align-items: center; padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.1s;
}
.adm-table-row:last-child { border-bottom: none; }
.adm-table-row:hover { background: rgba(255,255,255,0.02); }
.adm-td { flex: 1; font-size: 13px; }
.adm-user-av {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12px; color: white; flex-shrink: 0;
}
.adm-select {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; color: white; font-size: 11px; padding: 5px 8px;
  cursor: pointer; outline: none; font-family: inherit;
}
.adm-select option { background: #1a1a2e; color: white; }
.adm-status { font-size: 11px; font-weight: 600; }
.adm-online { color: #22c55e; }
.adm-offline { color: var(--text-muted); }

.adm-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: white; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; font-family: inherit; display: inline-flex;
  align-items: center; gap: 4px;
}
.adm-btn:hover { background: rgba(255,255,255,0.08); }
.adm-btn-warn { border-color: rgba(245,158,11,0.2); color: #fbbf24; }
.adm-btn-warn:hover { background: rgba(245,158,11,0.1); }
.adm-btn-danger { border-color: rgba(239,68,68,0.2); color: #f87171; }
.adm-btn-danger:hover { background: rgba(239,68,68,0.1); }

.adm-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.adm-page-info { font-size: 12px; color: var(--text-muted); }

/* Content list */
.adm-content-list { display: flex; flex-direction: column; gap: 12px; }
.adm-content-item {
  padding: 14px; border: 1px solid rgba(255,255,255,0.04); border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.adm-content-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: white; }
.adm-content-body { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; word-break: break-word; }
.adm-content-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* Badge reference grid */
.adm-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.adm-badge-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; transition: background 0.15s;
}
.adm-badge-card:hover { background: rgba(255,255,255,0.06); }
.adm-badge-preview { flex-shrink: 0; }
.adm-badge-name { font-size: 13px; font-weight: 700; color: white; }
.adm-badge-key { font-size: 10px; color: var(--text-muted); font-family: monospace; }
.adm-badge-color { font-size: 10px; font-weight: 600; }

/* Mobile admin nav + more menu */
.mobile-more-admin svg { fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-nav-admin.active { color: #f59e0b !important; }
.mobile-nav-admin svg { width: 22px; height: 22px; }

/* Admin panel mobile responsiveness */
@media (max-width: 768px) {
  .adm-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 6px; padding-bottom: 12px; }
  .adm-tab { white-space: nowrap; padding: 7px 14px; font-size: 12px; flex-shrink: 0; }
  .adm-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adm-stat-card { padding: 14px; }
  .adm-stat-val { font-size: 22px; }
  .adm-stat-label { font-size: 11px; }
  .adm-row { grid-template-columns: 1fr; gap: 10px; }
  .adm-card { padding: 14px; }

  /* Users table -> card layout on mobile */
  .adm-table-head { display: none; }
  .adm-table-row {
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .adm-td { flex: unset !important; }
  .adm-td:first-child { margin-bottom: 4px; }
  .adm-table-row .adm-td:nth-child(2),
  .adm-table-row .adm-td:nth-child(3) { display: inline-flex; align-items: center; gap: 6px; }
  .adm-table-row .adm-td:nth-child(2)::before { content: 'Plan: '; font-size: 11px; color: var(--text-muted); font-weight: 600; }
  .adm-table-row .adm-td:nth-child(3)::before { content: 'Badge: '; font-size: 11px; color: var(--text-muted); font-weight: 600; }
  .adm-table-row .adm-td:last-child { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.04); }

  .adm-toolbar { flex-direction: column; gap: 8px; }
  .adm-count { align-self: flex-end; }

  .adm-growth-chart { overflow-x: auto; min-width: 0; }
  .adm-growth-bar-wrap { min-width: 28px; }
  .adm-growth-label { font-size: 8px; }

  .adm-badges-grid { grid-template-columns: 1fr 1fr; }
  .adm-badge-card { padding: 10px; gap: 8px; }

  .adm-content-item { padding: 12px; }
}

@media (max-width: 400px) {
  .adm-stats-grid { grid-template-columns: 1fr; }
  .adm-badges-grid { grid-template-columns: 1fr; }
  .adm-stat-card { padding: 12px; }
}

/* ===== SHARE PROFILE SHEET ===== */
.sp-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.sp-overlay.visible { opacity: 1; }
.sp-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.sp-sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: #12121a; border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,0.06); border-bottom: none;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  max-height: 90vh; overflow-y: auto;
}
.sp-overlay.visible .sp-sheet { transform: translateY(0); }
.sp-drag-handle {
  width: 36px; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,0.12); margin: 10px auto 0;
}
.sp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 8px;
}
.sp-title { font-size: 16px; font-weight: 700; color: white; }
.sp-close {
  background: rgba(255,255,255,0.06); border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.15s;
}
.sp-close:hover { background: rgba(255,255,255,0.12); }

/* Profile card preview */
.sp-card {
  margin: 8px 18px 16px; border-radius: 16px; overflow: hidden;
  background: #1a1a28; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.sp-card-banner {
  height: 72px; position: relative; overflow: hidden;
}
.sp-card-pattern {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 8px,
    rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 16px
  );
}
.sp-card-body {
  padding: 0 20px 18px; text-align: center; margin-top: -28px;
}
.sp-card-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: white;
  border: 3px solid #1a1a28; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sp-card-name {
  font-size: 16px; font-weight: 800; color: white; line-height: 1.2;
}
.sp-card-handle {
  font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 2px;
}
.sp-card-stats {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.sp-card-stats strong { color: white; font-weight: 700; }
.sp-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.sp-card-url {
  margin-top: 10px; font-size: 11px; color: rgba(139,92,246,0.7);
  font-family: monospace; font-weight: 600;
  background: rgba(139,92,246,0.06); border-radius: 8px; padding: 5px 12px;
  display: inline-block;
}

/* Share action buttons */
.sp-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 18px 18px;
}
.sp-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px 12px;
  color: rgba(255,255,255,0.7); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  font-size: 12px; font-weight: 600; font-family: inherit;
}
.sp-action-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
.sp-action-btn:active { transform: scale(0.96); }
.sp-action-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.sp-action-btn:hover .sp-action-icon { background: rgba(255,255,255,0.1); }
.sp-x-icon { color: white; }
.sp-copied { border-color: rgba(34,197,94,0.3) !important; }
.sp-copied .sp-action-icon {
  background: rgba(34,197,94,0.15) !important;
  color: #22c55e !important;
}
.sp-copied span { color: #22c55e !important; }

/* QR code display */
.sp-qr-display {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 18px 16px;
  animation: sp-qr-in 0.3s ease;
}
@keyframes sp-qr-in {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
.sp-qr-label {
  font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 600;
}

/* Desktop centering */
@media (min-width: 480px) {
  .sp-sheet {
    border-radius: 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10vh;
    max-height: 80vh;
  }
  .sp-overlay { align-items: center; }
  .sp-overlay.visible .sp-sheet {
    transform: translateY(0);
    animation: sp-sheet-desktop 0.35s cubic-bezier(0.32,0.72,0,1);
  }
  @keyframes sp-sheet-desktop {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
}

/* ===== HASHTAGS & MENTIONS ===== */
.post-hashtag { color: #6c63ff; cursor: pointer; font-weight: 500; }
.post-hashtag:hover { text-decoration: underline; }
.post-mention { color: #a78bfa; cursor: pointer; font-weight: 500; }
.post-mention:hover { text-decoration: underline; }
.hashtag-trending-pill { display: inline-block; background: rgba(108,99,255,.08); border: 1px solid rgba(108,99,255,.12); border-radius: 7px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: #a78bfa; cursor: pointer; margin: 3px; transition: all .15s; }
.hashtag-trending-pill:hover { background: rgba(108,99,255,.15); border-color: rgba(108,99,255,.25); }

/* ===== NOW PLAYING BADGE ===== */
.now-playing-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #22c55e; font-weight: 600; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.1); border-radius: 5px; padding: 2px 8px; }
.now-playing-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: nowPlayingPulse 2s ease-in-out infinite; }
@keyframes nowPlayingPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== PROFILE BANNER ===== */
.profile-banner { width: 100%; height: 140px; object-fit: cover; border-radius: 12px 12px 0 0; display: block; }
.profile-banner-placeholder { width: 100%; height: 140px; border-radius: 12px 12px 0 0; }
.profile-banner-upload-btn { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); color: white; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }

/* ===== INPUT FIELD (shared) ===== */
.input-field { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: inherit; outline: none; width: 100%; box-sizing: border-box; transition: border-color .15s, background .15s; font-family: inherit; }
.input-field:focus { border-color: rgba(139,92,246,.35); background: rgba(255,255,255,.05); }

/* ===== COMPOSE ACTION BTN (legacy, kept for compatibility) ===== */

/* ===== MODAL CLOSE BUTTON ===== */
.modal-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; }

/* ================================================================
   GOLD VERIFIED BADGE (PRO)
   ================================================================ */
.verified-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  color: #000 !important;
  box-shadow: 0 0 8px rgba(245,158,11,0.4);
}
.verified-gold.verified-lg {
  box-shadow: 0 0 14px rgba(245,158,11,0.5);
}

/* ================================================================
   HOME SEARCH BAR
   ================================================================ */
.home-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}
.home-search-bar:hover {
  border-color: rgba(139,92,246,0.2);
  background: rgba(255,255,255,0.04);
}
.home-search-bar svg { color: rgba(255,255,255,0.3); flex-shrink: 0; }
.home-search-bar span { color: rgba(255,255,255,0.3); font-size: 14px; }

/* ================================================================
   AVATAR CROPPER
   ================================================================ */
.avatar-crop-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 420px;
  max-width: 95vw;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.avatar-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.avatar-crop-header h3 { font-size: 16px; font-weight: 700; }
.avatar-crop-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.avatar-crop-container {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-crop-container:active { cursor: grabbing; }
.avatar-crop-container canvas {
  width: 100%;
  height: 300px;
  cursor: grab;
  border-radius: var(--radius-sm);
  user-select: none;
}
.avatar-crop-container canvas:active { cursor: grabbing; }
.avatar-crop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar-crop-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  outline: none;
}
.avatar-crop-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.avatar-crop-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   CLIPS PAGE
   ================================================================ */
.clips-game-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.clips-game-filter .game-select { flex: 1; }
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px 20px;
}
.clip-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.clip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: var(--accent);
}
.clip-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0a0a18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.clip-card-thumb video { width: 100%; height: 100%; object-fit: cover; }
.clip-card-placeholder { font-size: 40px; opacity: .3; }
.clip-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s;
}
.clip-card:hover .clip-card-play { opacity: 1; }
.clip-card-game {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.clip-card-info {
  display: flex;
  gap: 10px;
  padding: 12px;
}
.clip-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.clip-card-meta { flex: 1; min-width: 0; }
.clip-card-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.clip-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.clip-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Clip Upload Zone */
.clip-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.clip-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(139,92,246,0.05);
}

/* ================================================================
   SEARCH RESULTS — Games, Players, Posts
   ================================================================ */
.search-section-title {
  font-size: 14px;
  font-weight: 700;
  padding: 16px 20px 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Game cards in search */
.search-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 20px 16px;
}
.search-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.search-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.search-game-cover {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.search-game-cover-placeholder {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.search-game-card-info { padding: 10px 12px; }
.search-game-card-name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.search-game-card-meta { font-size: 11px; color: var(--text-muted); }

/* Player cards in search */
.search-players-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px 16px;
}
.search-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.search-player-card:hover { background: rgba(255,255,255,0.03); }
.search-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.search-player-info { flex: 1; min-width: 0; }
.search-player-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.search-player-handle { font-size: 12px; color: var(--text-muted); }
.search-player-bio { font-size: 12px; color: var(--text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Reconnecting Banner */
#reconnecting-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: reconnect-pulse 2s ease-in-out infinite;
}
@keyframes reconnect-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ================================================================
   ANIMATED AVATAR FRAME — plus/pro subscribers
   ================================================================ */
@keyframes avatar-frame-spin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.avatar-frame-animated {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from var(--angle), #8b5cf6, #3b82f6, #06b6d4, #22c55e, #f59e0b, #ef4444, #ec4899, #8b5cf6);
  animation: avatar-frame-spin 3s linear infinite;
}
.avatar-frame-animated.frame-pro {
  padding: 3px;
  background: conic-gradient(from var(--angle), #f59e0b, #ef4444, #ec4899, #8b5cf6, #3b82f6, #f59e0b);
  animation: avatar-frame-spin 2.5s linear infinite;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.avatar-frame-animated > .post-avatar,
.avatar-frame-animated > .comment-avatar,
.avatar-frame-animated > .lfg-avatar,
.avatar-frame-animated > .profile-avatar-lg,
.avatar-frame-animated > .conv-avatar,
.avatar-frame-animated > .story-avatar,
.avatar-frame-animated > .search-player-avatar {
  border: 3px solid var(--bg-primary);
  overflow: hidden;
}

/* Plan badge styles (override) */
.plan-badge-pro-glow {
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

/* Accent color lock overlay for free users */
.accent-swatch-locked {
  position: relative;
  filter: grayscale(0.7);
  opacity: 0.5;
  cursor: not-allowed !important;
}
.accent-swatch-locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

/* Priority LFG star icon */
.lfg-priority-star {
  color: #f59e0b;
  font-size: 14px;
  margin-left: 4px;
  animation: star-glow 2s ease-in-out infinite;
}
@keyframes star-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ================================================================
   PROFILE ANALYTICS DASHBOARD (Pro)
   ================================================================ */
.analytics-dashboard { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

/* Overview Cards Grid */
.analytics-grid { display: grid; gap: 12px; padding: 0; }
.analytics-grid-6 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.analytics-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.analytics-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.analytics-card-accent { border-top: 3px solid var(--accent-primary); }
.analytics-card-icon { font-size: 20px; margin-bottom: 4px; }
.analytics-card-value {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.analytics-card-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.analytics-card svg { margin-top: 8px; }

/* Key Metrics Row */
.analytics-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.analytics-metric {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.analytics-metric-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.analytics-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Trends Row */
.analytics-trends-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .analytics-trends-row { grid-template-columns: 1fr; } }
.analytics-trend-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.analytics-trend-header {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.analytics-trend-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.analytics-trend-stats strong { color: var(--accent-primary); }

/* Section Cards */
.analytics-section-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.analytics-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.analytics-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: -8px 0 10px;
}

/* Chart Tab Switcher */
.analytics-chart-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.analytics-chart-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.analytics-chart-tab.active {
  background: var(--accent-primary);
  color: #fff;
}
.analytics-chart-tab:hover:not(.active) { color: var(--text-primary); }

/* Two Column Layout */
.analytics-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .analytics-two-col { grid-template-columns: 1fr; } }

/* Reaction Breakdown Bars */
.analytics-reaction-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.analytics-reaction-emoji { font-size: 18px; width: 24px; text-align: center; }
.analytics-reaction-name { font-size: 11px; font-weight: 700; width: 36px; color: var(--text-muted); }
.analytics-reaction-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}
.analytics-reaction-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.analytics-reaction-pct { font-size: 12px; color: var(--text-muted); min-width: 70px; text-align: right; }

/* Hourly Heatmap */
.analytics-heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.analytics-heatmap-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  transition: transform 0.15s;
}
.analytics-heatmap-cell:hover { transform: scale(1.15); z-index: 1; }
.analytics-heatmap-cell span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Game Breakdown Table */
.analytics-game-table { display: flex; flex-direction: column; gap: 4px; }
.analytics-game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  transition: background 0.15s;
}
.analytics-game-row:hover { background: rgba(139,92,246,0.1); }
.analytics-game-name { flex: 1; font-weight: 600; font-size: 13px; }
.analytics-game-stat {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 70px;
  text-align: right;
}

/* Top Posts List */
.analytics-top-posts-list { display: flex; flex-direction: column; gap: 6px; }
.analytics-top-post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.analytics-top-post-row:hover { background: rgba(139,92,246,0.1); transform: translateX(4px); }
.analytics-top-post-rank {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-primary);
  min-width: 36px;
  text-align: center;
}
.analytics-top-post-content { flex: 1; min-width: 0; }
.analytics-top-post-body {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.analytics-top-post-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.analytics-top-post-game {
  background: var(--accent-primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}
.analytics-top-post-eng {
  text-align: center;
  min-width: 50px;
}
.analytics-top-post-eng {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}
.analytics-top-post-eng small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION
   ================================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8,8,17,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 4px 0 0;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 0 4px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.mobile-nav-item.active {
  color: #a78bfa;
}
/* Floating compose button in nav */
.mobile-post-btn {
  padding: 0 !important;
}
.mobile-fab {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 4px 16px rgba(139,92,246,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mobile-fab:active {
  transform: scale(0.93);
}
.mobile-fab svg {
  stroke: white;
  stroke-width: 2.5;
}

/* ================================================================
   MOBILE MORE MENU
   ================================================================ */
.mobile-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mobile-more-overlay.hidden {
  display: none !important;
}
.mobile-more-sheet {
  background: #0e0e20;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.mobile-more-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 10px auto 0;
}
.mobile-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 8px 8px;
}
.mobile-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 14px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-more-item:hover,
.mobile-more-item:active {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}
.mobile-more-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-more-item span {
  font-size: 11px;
  font-weight: 500;
}
.mobile-more-plans {
  color: var(--accent-gold);
}
.mobile-more-plans:hover,
.mobile-more-plans:active {
  background: rgba(245,158,11,0.06);
  color: var(--accent-gold);
}
.mobile-more-logout {
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}

/* ================================================================
   MOBILE RESPONSIVE OVERHAUL
   ================================================================ */
@media (max-width: 560px) {
  /* Show mobile nav, add bottom padding for content */
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .home-search-bar {
    display: none;
  }
  #app {
    max-width: 100vw;
    overflow-x: hidden;
  }
  #main-content {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    border-left: none;
    border-right: none;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
  }

  /* Section header */
  .section-header {
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .section-header h2 {
    font-size: 17px;
  }

  /* Tabs - horizontal scroll */
  .header-tabs,
  .explore-tabs,
  .notif-filter-row,
  .lb-time-filter,
  .games-filter-row,
  .lfg-filter-row,
  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-tabs::-webkit-scrollbar,
  .explore-tabs::-webkit-scrollbar,
  .notif-filter-row::-webkit-scrollbar,
  .lb-time-filter::-webkit-scrollbar,
  .games-filter-row::-webkit-scrollbar,
  .lfg-filter-row::-webkit-scrollbar,
  .profile-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn,
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .profile-tab {
    white-space: nowrap;
    flex-shrink: 0;
    flex: none;
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Stories - compact */
  .stories-container {
    padding: 8px 10px;
  }
  .stories-scroll {
    gap: 10px;
  }
  .story-ring {
    width: 52px;
    height: 52px;
  }
  .story-item {
    width: 52px;
    gap: 3px;
  }
  .story-item span {
    max-width: 52px;
    font-size: 9px;
  }

  /* Compose box - more compact */
  .compose-box {
    padding: 10px 12px;
    gap: 8px;
  }
  .compose-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .compose-right textarea {
    font-size: 13px;
    min-height: 28px;
  }
  .compose-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .compose-actions-row {
    flex-direction: column;
    gap: 8px;
  }
  .compose-toolbar-pill {
    width: 100%;
    justify-content: center;
  }
  .toolbar-icon-btn {
    width: 36px;
    height: 36px;
  }

  /* Posts - compact */
  .post-card {
    padding: 12px;
  }
  .post-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .post-header {
    gap: 8px;
    margin-bottom: 8px;
  }
  .post-user-row {
    gap: 4px;
  }
  .post-username {
    font-size: 13px;
  }
  .post-tag {
    font-size: 12px;
  }
  .post-time {
    font-size: 11px;
  }
  .post-body {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 8px;
  }
  .post-actions {
    margin-left: -6px;
    gap: 0;
  }
  .post-action-btn {
    padding: 6px 6px;
    font-size: 11px;
    gap: 4px;
  }
  .post-action-btn svg {
    width: 15px;
    height: 15px;
  }
  .post-delete-btn {
    opacity: 1;
  }

  /* Badges - smaller on mobile */
  .rank-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
  .post-type-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
  .post-game-tag {
    font-size: 10px;
    padding: 1px 6px;
  }
  .post-platform-badge {
    display: none;
  }
  .plan-badge {
    font-size: 8px;
    padding: 1px 5px;
  }

  /* Explore */
  .search-bar-big {
    max-width: none;
    padding: 8px 12px;
  }
  .trending-section {
    padding: 0 12px;
  }
  .trending-game-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 8px;
  }
  .trending-rank {
    font-size: 16px;
    width: 24px;
  }
  .trending-name {
    font-size: 14px;
  }

  /* Games grid */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .game-cover {
    height: 80px;
    font-size: 32px;
  }
  .game-title {
    font-size: 12px;
  }
  .game-info {
    padding: 8px 10px;
  }

  /* Messages layout - stack vertically */
  .messages-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 64px);
  }
  .messages-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    max-height: none;
  }
  .messages-sidebar.msg-sidebar-hidden {
    display: none;
  }
  .messages-chat {
    flex: 1;
    min-height: 0;
  }
  .messages-chat.msg-chat-hidden {
    display: none;
  }
  .chat-header {
    padding: 8px 12px;
  }
  .chat-messages {
    padding: 10px 12px;
    min-height: 280px;
  }
  .chat-input-row {
    padding: 8px 12px;
  }
  .chat-msg {
    max-width: 88%;
  }

  /* Messages back button (mobile) */
  .msg-back-btn {
    display: flex;
  }

  /* Notifications */
  .notif-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .notif-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 8px;
  }
  .notif-text {
    font-size: 13px;
  }

  /* Leaderboard */
  .lb-row {
    padding: 10px;
    gap: 8px;
  }
  .lb-rank {
    font-size: 14px;
    width: 24px;
  }
  .lb-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .lb-stats {
    gap: 6px;
  }
  .lb-stat-val {
    font-size: 12px;
  }
  .lb-stat-lbl {
    font-size: 8px;
  }

  /* Profile - properly responsive */
  .profile-banner {
    height: 120px;
    font-size: 44px;
  }
  .profile-banner-icon {
    font-size: 40px;
    right: 12px;
  }
  .profile-header-info {
    padding: 0 12px 8px;
  }
  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 20px;
    border-width: 3px;
  }
  .profile-avatar-lg {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 20px;
  }
  .profile-avatar-row {
    margin-top: -36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .profile-actions-row {
    width: 100%;
    gap: 6px;
  }
  .profile-actions-row .btn-primary,
  .profile-actions-row .btn-secondary {
    flex: 1;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    padding: 8px 12px;
  }
  .profile-edit-btn {
    width: 100%;
    justify-content: center;
  }
  .profile-name {
    font-size: 18px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .profile-handle {
    font-size: 12px;
  }
  .profile-bio {
    font-size: 13px;
    padding: 8px 10px;
  }
  .profile-stats-row {
    gap: 0;
    justify-content: space-around;
    width: 100%;
  }
  .profile-stat {
    padding: 8px 10px;
    flex: 1;
  }
  .stat-val {
    font-size: 16px;
  }
  .stat-label {
    font-size: 10px;
  }
  .profile-game-tags {
    gap: 4px;
  }
  .profile-game-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
  .btn-primary, .btn-secondary {
    font-size: 12px;
    padding: 8px 14px;
  }
  .btn-primary.btn-sm, .btn-secondary.btn-sm {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Achievements grid */
  .achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    padding: 10px;
  }

  /* LFG */
  .lfg-container {
    padding: 10px 12px;
  }
  .lfg-card {
    padding: 12px;
  }
  .lfg-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Tournaments */
  #tournaments-container {
    padding: 10px 12px;
  }
  .tournament-banner {
    height: 70px;
    font-size: 32px;
  }
  .tournament-info {
    padding: 10px 12px;
  }
  .tournament-name {
    font-size: 13px;
  }
  .tournament-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Modals - bottom sheet style */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
  }
  .compose-modal {
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
  }
  .compose-modal-body {
    padding: 12px 14px 8px;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  .compose-textarea {
    font-size: 15px;
    min-height: 80px;
  }
  .compose-modal-footer {
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: #111122;
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 2;
  }
  .compose-footer-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .compose-tags-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .compose-tag-select {
    font-size: 11px;
    padding: 5px 10px;
    flex: 1;
    min-width: 0;
  }

  /* Auth modal - centered */
  .auth-overlay {
    padding: 12px;
    align-items: center;
  }
  .auth-box {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
  }
  .auth-form {
    padding: 14px 16px 18px;
    gap: 10px;
  }
  .auth-logo {
    padding: 18px 16px 6px;
  }
  .auth-logo-text {
    font-size: 20px;
  }
  .auth-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Clans */
  .clan-card {
    padding: 12px;
  }

  /* Clips */
  .clip-card {
    padding: 12px;
  }

  /* Settings */
  .settings-container {
    padding: 0;
  }

  /* Plans grid */
  .plans-grid {
    padding: 0 10px 20px;
    gap: 12px;
  }

  /* Analytics */
  .analytics-heatmap {
    grid-template-columns: repeat(6, 1fr);
  }

  /* People section */
  .people-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .people-card {
    padding: 12px;
    gap: 10px;
  }
  .people-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 16px;
  }

  /* Bookmarks */
  #bookmarks-content {
    padding: 0;
  }

  /* Post image */
  .post-image {
    max-height: 240px;
    border-radius: 10px;
  }
  .post-image-container {
    border-radius: 10px;
  }

  /* Clip/Achievement cards - compact */
  .post-clip-preview {
    padding: 10px 12px;
    gap: 10px;
  }
  .clip-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .post-achievement {
    padding: 10px 12px;
    gap: 10px;
  }
  .achievement-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  /* Comment section - compact */
  .comment-section {
    padding: 10px 10px 0;
  }
  .comments-list {
    gap: 12px;
    max-height: 350px;
  }
  .comment-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 10px;
  }
  .comment-text {
    font-size: 13px;
  }
  .comment-input-row {
    gap: 8px;
    padding: 10px 0;
  }
  .comment-input-wrap {
    padding: 7px 10px;
    border-radius: 8px;
  }
  .comment-input {
    font-size: 12px;
  }
  .comment-submit-btn {
    width: 26px;
    height: 26px;
  }
  .comment-thread-replies {
    margin-left: 12px;
    padding-left: 8px;
  }

  /* Quoted post - compact */
  .quoted-post-card {
    padding: 10px;
  }

  /* Edit profile modal */
  .edit-profile-modal {
    max-width: 100%;
  }

  /* Lightbox */
  .img-lightbox-inner {
    max-width: 98vw;
  }

  /* Search bar in section header */
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-search-bar {
    padding: 7px 12px;
    font-size: 13px;
  }

  /* Reconnecting banner */
  #reconnecting-banner {
    top: 0;
    bottom: auto;
    font-size: 12px;
  }

  /* Widget - hide on mobile (already hidden via sidebar) */
  .widget {
    padding: 10px;
  }

  /* Share dropdown */
  .share-dropdown {
    min-width: 150px;
    font-size: 12px;
  }
  .share-option {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* AI bubble */
  .ai-bubble {
    margin: 6px 10px 4px;
    padding: 10px 12px;
  }
  .ai-chip {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Now playing badge */
  .now-playing-badge {
    font-size: 9px;
  }

  /* Reply feed */
  .reply-feed-item {
    padding: 14px 12px;
  }
  .reply-feed-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 12px;
  }
  .reply-feed-bubble {
    padding: 10px 12px;
  }

  /* Prevent iOS input zoom - inputs must be 16px+ */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  textarea,
  select,
  .comment-input,
  .compose-textarea,
  .chat-input,
  .home-search-bar input {
    font-size: 16px !important;
  }

  /* Global overflow containment */
  .feed-container,
  .section-content,
  .profile-section,
  .explore-content,
  .settings-container,
  .messages-layout,
  .notifications-list,
  .games-grid,
  .lfg-container,
  #tournaments-container,
  .people-grid,
  .achievements-grid,
  #bookmarks-content {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Ensure all text can wrap */
  .post-body,
  .comment-text,
  .profile-bio,
  .chat-bubble-text,
  .notif-text {
    overflow-wrap: anywhere;
  }

  /* Upgrade prompt - fit mobile */
  .upgrade-prompt-inner {
    min-width: 0;
    max-width: calc(100vw - 32px);
  }
}

/* Tablet tweaks (860px - no sidebar text but bottom nav not needed) */
@media (max-width: 860px) and (min-width: 561px) {
  .messages-sidebar {
    width: 200px;
  }
  .profile-banner {
    height: 160px;
  }
  .post-card {
    padding: 14px 16px;
  }
  .compose-toolbar-pill {
    gap: 1px;
  }
}

/* Hide mobile back button on desktop */
.msg-back-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}
.msg-back-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.msg-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
