.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height: var(--footer-height, 48px);
  max-width: var(--footer-max-width, 1400px);
  margin: 0 auto;
  padding: 0 16px;
}

.footer-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--footer-btn-bg, var(--muted));
  color: var(--footer-btn-text, var(--text));
  border: 1px solid var(--footer-btn-border, transparent);
  padding: 6px 12px;
  text-decoration: none;
}

.footer-pill:hover{
  filter: brightness(1.05);
}

.footer-divider{
  color: var(--footer-text-color, var(--text));
  opacity: 0.6;
  padding: 0 4px;
}

.footer-text-item,
.footer-image-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.footer-text-item.footer-sub,
.footer-image-item.footer-sub {
  opacity: 0.8;
  font-size: 12px;
}

.footer-image-item img {
  display: block;
}

.footer-pill.footer-sub{
  opacity: 0.8;
  font-size: 12px;
  padding: 4px 8px;
}

/* Hover XP popover on footer "My profile" */
.footer-profile{ position: relative; }

.footer-xp-pop{
  position:absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 260px;
  padding: 10px var(--space-3, 12px);
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(24,24,27,.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,.35));
  display:none;
  z-index: var(--z-popover, 50);
}

.footer-profile:hover .footer-xp-pop,
.footer-profile:focus .footer-xp-pop{
  display:block;
}

.footer-xp-top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:8px;
}

.footer-xp-level{ font-weight: 900; font-size: 12px; }

.footer-xp-meta{
  color: var(--muted);
  font-size: 12px;
  white-space:nowrap;
}

.footer-xp-bar{
  display:block;
  height: 10px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}

.footer-xp-fill{
  display:block;
  height: 100%;
  width: 0%;
  background: rgba(145,70,255,.70);
  box-shadow: 0 0 0 1px rgba(145,70,255,.25) inset;
}

/* Claim hover popover (same "popup" look) */
.footer-claim{ position: relative; }

.footer-claim-pop{
  position:absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 280px;
  padding: 10px var(--space-3, 12px);
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(24,24,27,.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,.35));
  display:none;
  z-index: var(--z-popover, 50);
  text-align:left;
  pointer-events:none; /* hover stays on button */
}

.footer-claim:hover .footer-claim-pop,
.footer-claim:focus .footer-claim-pop{
  display:block;
}

.footer-claim-top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:6px;
}

.footer-claim-title{
  font-weight: 900;
  font-size: 12px;
}

.footer-claim-meta{
  color: var(--muted);
  font-size: 12px;
  white-space:nowrap;
}

.footer-claim-lines{ display:block; }

.claim-line{
  display:block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin: 2px 0;
}
.claim-line strong{
  color: var(--text);
  font-weight: 900;
}

/* Collapse Events panel */
.grid.events-collapsed .events-card {
  display: none;
}

/* Collapse Chat panel (for symmetry, if not already present) */
.grid.chat-collapsed .chat-card {
  display: none;
}

.grid.chat-collapsed .chat-card { display: none; }
.grid.events-collapsed .events-card { display: none; }

