/* ═══════════════════════════════════════════════════════════════
   RG Forum Sidebar + Header - Production Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── hide XenForo native header/nav ─── */
.p-header, .p-nav, .p-nav-opposite, .p-sectionLinks { display: none; }

/* ─── CSS variables ─── */
:root {
  --rg-sidebar-w: 260px;
  --rg-header-h: 56px;
  --rg-bg-dark: #0e0e1a;
  --rg-bg-sidebar: rgba(8,8,16,0.92);
  --rg-bg-header: rgba(25,30,36,0.85);
  --rg-border: rgba(255,255,255,0.07);
  --rg-purple: #7c3aed;
  --rg-purple-light: #a78bfa;
  --rg-text: #f1f5f9;
  --rg-text-muted: rgba(255,255,255,0.70);
  --rg-text-dim: rgba(124,58,237,0.30);
  --rg-hover: rgba(139,92,246,0.1);
  --rg-active: rgba(139,92,246,0.12);
  --rg-green: #22c55e;
  --rg-red: #ef4444;
}

/* ─── HEADER ─── */
.rg-header {
  position: fixed;
  top: 0;
  left: var(--rg-sidebar-w);
  right: 0;
  height: var(--rg-header-h);
  background: var(--rg-bg-header);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid var(--rg-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.rg-header-desktop {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  gap: 16px;
}

.rg-header-mobile {
  display: none;
}

.rg-header-search {
  flex: 1;
  max-width: 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.rg-header-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--rg-text-dim);
  pointer-events: none;
}

.rg-header-search-icon svg {
  width: 16px;
  height: 16px;
}

.rg-header-search-input {
  width: 100%;
  background: rgba(30,35,42,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 14px 8px 38px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.rg-header-search-input:focus {
  border-color: rgba(139,92,246,0.4);
  background: rgba(30,35,42,0.8);
}

.rg-header-search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.rg-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.rg-header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease, color 0.15s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.rg-header-icon-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(139,92,246,0.25);
  color: #fff;
  transform: scale(1.05);
}
.rg-header-icon-btn:active {
  background: rgba(255,255,255,0.14);
  transform: scale(0.95);
}
.rg-header-icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rg-header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 9px;
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
  animation: rg-badge-pulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  animation: bellBadgePulse 2s ease-in-out infinite;
}

@keyframes bellBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

@keyframes bellRing {
  0% { transform: rotate(0); }
  15% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}

/* ─── User pill + dropdown ─── */
.rg-header-user-wrap {
  position: relative;
}

.rg-header-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: rgba(30,35,42,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.rg-header-user-pill:hover {
  background: rgba(30,35,42,0.8);
  border-color: rgba(139,92,246,0.3);
}

.rg-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rg-purple), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.rg-header-signin-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--rg-purple);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.rg-header-signin-pill:hover {
  background: #6d28d9;
  color: #fff;
}

.rg-header-signin-icon {
  width: 16px;
  height: 16px;
}

.rg-header-signin-icon svg {
  width: 16px;
  height: 16px;
}

/* Dropdown menu */
.rg-header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #1a1025;
  border: 1px solid var(--rg-border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.rg-header-dropdown.rg-dropdown-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rg-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--rg-text-muted);
  font-size: 13px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.rg-dropdown-item:hover {
  background: var(--rg-hover);
  color: var(--rg-text);
}

.rg-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rg-dropdown-icon svg {
  width: 16px;
  height: 16px;
}

.rg-dropdown-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  background: var(--rg-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.rg-dropdown-divider {
  height: 1px;
  background: var(--rg-border);
  margin: 4px 8px;
}

.rg-dropdown-logout:hover {
  color: var(--rg-red);
}

/* ─── SIDEBAR ─── */
.rg-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rg-sidebar-w);
  height: 100vh;
  background: var(--rg-bg-sidebar);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--rg-border);
  z-index: 1001;
  overflow: hidden;
}

.rg-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}

/* Logo */
.rg-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--rg-border);
  flex-shrink: 0;
}

.rg-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rg-logo-icon svg {
  width: 36px;
  height: 36px;
}

.rg-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.rg-logo-rival {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.rg-logo-gaming {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--rg-purple-light);
  background: linear-gradient(90deg, var(--rg-purple-light), rgba(255,255,255,0.6), var(--rg-purple-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rg-shimmer 3s linear infinite;
}

/* User section */
.rg-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rg-border);
  flex-shrink: 0;
}

.rg-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rg-purple), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.rg-sidebar-avatar-guest {
  background: linear-gradient(135deg, #374151, #4b5563);
}

.rg-sidebar-avatar-letter {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.rg-sidebar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rg-bg-sidebar);
}

.rg-status-online {
  background: var(--rg-green);
}

.rg-sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rg-sidebar-username {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rg-sidebar-role {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
}

.rg-role-admin {
  background: rgba(139,92,246,0.2);
  color: var(--rg-purple-light);
}

.rg-role-member {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}

.rg-role-guest {
  background: rgba(100,116,139,0.25);
  color: rgba(255,255,255,0.6);
}

.rg-sidebar-signin a {
  color: var(--rg-purple-light);
  text-decoration: none;
  font-size: 11px;
  margin-left: 4px;
}

.rg-sidebar-signin a:hover {
  text-decoration: none;
  color: #a78bfa;
}

/* Nav groups */
.rg-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.rg-nav-group {
  padding: 0 12px;
  margin-bottom: 4px;
}

.rg-nav-group-label {
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 1.2px;
  padding: 10px 8px 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
}
.rg-nav-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #a78bfa;
  opacity: 0.35;
}

.rg-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--rg-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
  position: relative;
}

.rg-nav-item:hover {
  background: var(--rg-hover);
  color: var(--rg-text);
}

.rg-nav-item:hover .rg-nav-icon {
  transform: scale(1.12);
}

.rg-nav-active {
  background: rgba(139,92,246, 0.12);
  color: var(--rg-text);
  border-left-color: var(--rg-purple);
}

.rg-nav-active .rg-nav-icon {
  color: var(--rg-purple);
  filter: drop-shadow(0 0 6px rgba(139,92,246,0.5));
}

.rg-nav-active .rg-nav-icon svg {
  stroke: var(--rg-purple);
}

.rg-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease, filter 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-nav-icon svg {
  width: 16px;
  height: 16px;
  transition: stroke 0.15s ease;
}

/* Bottom section */
.rg-sidebar-bottom {
  border-top: 1px solid var(--rg-border);
  padding: 8px 12px;
  flex-shrink: 0;
}

/* ─── Content shift ─── */
.rg-content-shifted {
  margin-left: var(--rg-sidebar-w);
}

/* Also shift the overall page structure */
.p-body {
  margin-left: var(--rg-sidebar-w);
  padding-top: calc(var(--rg-header-h) + 8px);
}

/* ─── Mobile overlay sidebar ─── */
.rg-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.rg-mobile-overlay.rg-overlay-active {
  opacity: 1;
  visibility: visible;
}

.rg-mobile-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--rg-bg-sidebar);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.rg-overlay-active .rg-mobile-sidebar {
  transform: translateX(0);
}

.rg-mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rg-border);
}

.rg-mobile-sidebar-header .rg-sidebar-logo {
  padding: 0;
  border-bottom: none;
}

.rg-mobile-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--rg-text-muted);
  cursor: pointer;
  border-radius: 6px;
}

.rg-mobile-close:hover {
  background: var(--rg-hover);
  color: var(--rg-text);
}

.rg-mobile-close svg {
  width: 20px;
  height: 20px;
}

/* ─── Mobile search overlay ─── */
.rg-mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rg-header-h);
  background: var(--rg-bg-header);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1500;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.rg-mobile-search-overlay.rg-search-active {
  transform: translateY(0);
}

.rg-mobile-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  position: relative;
}

.rg-mobile-search-bar .rg-header-search-icon {
  position: absolute;
  left: 12px;
}

.rg-mobile-search-bar .rg-header-search-input {
  flex: 1;
  padding-left: 36px;
}

.rg-mobile-search-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--rg-text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.rg-mobile-search-close svg {
  width: 18px;
  height: 18px;
}

/* ─── Mobile header bar ─── */
.rg-mobile-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--rg-text-muted);
  cursor: pointer;
  border-radius: 8px;
}

.rg-mobile-hamburger:hover {
  background: var(--rg-hover);
}

.rg-mobile-hamburger svg {
  width: 22px;
  height: 22px;
}

.rg-mobile-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.rg-logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-logo-mark svg {
  width: 32px;
  height: 32px;
}

.rg-header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .rg-sidebar {
    display: none;
  }

  .rg-header {
    left: 0;
  }

  .rg-header-desktop {
    display: none;
  }

  .rg-header-mobile {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    gap: 8px;
  }

  .p-body,
  .rg-content-shifted {
    margin-left: 0;
    padding-top: var(--rg-header-h);
  }
}

/* ─── Dark theme enforcement (forum content) ─── */
body {
  background: var(--rg-bg-dark);
}

/* ─── Logo shimmer animation ─── */
@keyframes rg-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.rg-logo-rival {
  color: #f1f5f9;
  letter-spacing: 0.07em;
}


/* ═══════════════════════════════════════════════════════════════
   XenForo Content Area - Dark Theme Overrides
   Match rivalgaming.com React app colors exactly
   ═══════════════════════════════════════════════════════════════ */

/* ── Page backgrounds ────────────────────────────────────── */
.p-body-inner,
.p-body-content,
.p-body-sideNav,
.p-body-sidebar,
.p-body-pageContent {
  background: transparent;
}

/* ── Block containers ────────────────────────────────────── */
html body .block,
html body .block--messages {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}

html body .block--category {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 16px;
}

html body .block-container {
  background: transparent;
  border: none;
}

html body .block-body {
  background: transparent;
}

/* ── Category headers (Rival Gaming, RG Trainer, etc) ──── */
html body .block-header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #f1f5f9;
  font-size: 14px;
  padding: 12px 16px;
}

html body .block-header a {
  color: #7c3aed;
}

html body .block-header a:hover {
  color: #a78bfa;
}

html body .block-desc {
  color: #22c55e;
  font-size: 12px;
}

/* ── Widget headers (Trending, Staff online, etc) ────────── */
html body .block-minorHeader {
  background: transparent;
  color: rgba(124,58,237,0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Node titles (Announcements, General Chat, etc) ──────── */
html body .node-title a {
  color: #a78bfa;
  font-weight: 600;
}

html body .node-title a:hover {
  color: #c4b5fd;
}

html body .node-description {
  color: rgba(255,255,255,0.40);
}

html body .node-stats {
  color: rgba(255,255,255,0.35);
}

html body .node-statLabel {
  color: rgba(255,255,255,0.30);
}

html body .node-meta {
  color: rgba(255,255,255,0.35);
}

.node-extra-row {
  color: rgba(255,255,255,0.55);
}

.node-extra-row a {
  color: rgba(255,255,255,0.65);
}

.node-extra-row a:hover {
  color: #a78bfa;
}

.node-extra-icon .avatar {
  border-radius: 50%;
}

html body .node-icon i,
.node-icon .fa {
  color: #7c3aed;
}

/* ── Thread/struct items ─────────────────────────────────── */
html body .structItem-title a {
  color: #f1f5f9;
}

html body .structItem-title a:hover {
  color: #a78bfa;
}

html body .structItem-minor,
.structItem-minor a {
  color: rgba(255,255,255,0.45);
}

html body .structItem-minor a:hover {
  color: #a78bfa;
}

html body .structItem--thread {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

html body .structItem-cell--meta {
  color: rgba(255,255,255,0.35);
}

/* ── Content links ───────────────────────────────────────── */
html body .p-body a {
  color: #a78bfa;
}

html body .p-body a:hover {
  color: #c4b5fd;
}

/* ── Title ───────────────────────────────────────────────── */
html body .p-title-value {
  color: #7c3aed;
  font-weight: 700;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
html body .p-breadcrumbs a {
  color: rgba(255,255,255,0.45);
}

html body .p-breadcrumbs a:hover {
  color: #a78bfa;
}

.p-breadcrumbs .p-breadcrumb:last-child a {
  color: rgba(255,255,255,0.65);
}

/* ── Buttons ─────────────────────────────────────────────── */
html body .button--primary,
.button.button--primary {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
}

html body .button--primary:hover,
.button.button--primary:hover {
  background: #6d28d9;
  color: #fff;
}

html body .button,
html body a.button {
  background: rgba(30,35,42,0.6);
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
}

html body .button:hover,
html body a.button:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.15);
  color: #f1f5f9;
}

/* ── Sidebar widget blocks (right sidebar) ───────────────── */
html body .p-body-sidebar .block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 12px;
}

html body .p-body-sidebar .block-body {
  padding: 8px 12px;
}

html body .p-body-sidebar .block-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 4px;
}

.p-body-sidebar .block-row:last-child {
  border-bottom: none;
}

/* ── Staff/member items in sidebar ───────────────────────── */
.block-row--separated {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Block footer ────────────────────────────────────────── */
html body .block-footer {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.35);
  padding: 8px 16px;
}

html body .block-footer a {
  color: rgba(255,255,255,0.55);
}

html body .block-footer a:hover {
  color: #a78bfa;
}

/* ── Message/post blocks ─────────────────────────────────── */
html body .message-cell--main {
  background: transparent;
}

html body .message-attribution {
  color: rgba(255,255,255,0.35);
}

html body .message-attribution a {
  color: rgba(255,255,255,0.50);
}

html body .message-body {
  color: #f1f5f9;
}

.message-userArrow {
  border-right-color: rgba(255,255,255,0.03);
}

/* ── Input fields ────────────────────────────────────────── */
html body .input,
html body input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f1f5f9;
  border-radius: 8px;
}

html body .input:focus,
html body input:focus,
textarea:focus,
select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.2);
}

/* ── Page description / footer ───────────────────────────── */
html body .p-description {
  color: rgba(255,255,255,0.30);
}

html body .p-footer {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.30);
}

html body .p-footer a {
  color: rgba(255,255,255,0.45);
}

/* ── Login page ──────────────────────────────────────────── */
html body .formRow-label {
  color: #f1f5f9;
}

html body .formRow-explain {
  color: rgba(255,255,255,0.40);
}

/* ── Pagination ──────────────────────────────────────────── */
html body .pageNav-page a {
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}

html body .pageNav-page.pageNav-page--current a {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

/* ── Stats pairs in sidebar ──────────────────────────────── */
html body .pairs dt {
  color: rgba(255,255,255,0.40);
}

html body .pairs dd {
  color: #f1f5f9;
}

/* ── Tag links ───────────────────────────────────────────── */
html body .tagItem {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a78bfa;
  border-radius: 6px;
}

html body .tagItem:hover {
  background: rgba(124,58,237,0.2);
  color: #c4b5fd;
}

/* ── Content scrollbar ───────────────────────────────────── */
.p-body ::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.p-body ::-webkit-scrollbar-track {
  background: transparent;
}
.p-body ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
}
.p-body ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* ── Unread indicator dots ───────────────────────────────── */
.node--unread .node-icon {
  color: #7c3aed;
}

/* ─── Bell ring animation (matches React dashboard) ─── */
.rg-bell-ring svg {
  animation: bellRing 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  transform-origin: top center;
}

/* ─── Chevron in user pill (matches React dashboard) ─── */
.rg-header-chevron {
  display: flex;
  align-items: center;
  opacity: 0.4;
  flex-shrink: 0;
}
.rg-header-chevron svg {
  width: 12px;
  height: 12px;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Remove underline from all sidebar and header links */
.rg-sidebar a,
.rg-header a,
.rg-sidebar-logo,
.rg-sidebar-logo:hover,
.rg-sidebar-logo:visited {
  text-decoration: none;
}

/* Mobile avatar in header */
.rg-mobile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.rg-mobile-avatar-btn {
  padding: 4px;
}

/* Sidebar Logout Button */
.rg-sidebar-user { position: relative; }
.rg-sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 8px;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.rg-sidebar-logout-btn:hover {
  color: #ff4757;
  background: rgba(255,71,87,0.1);
}
.rg-sidebar-logout-btn svg {
  width: 18px;
  height: 18px;
}
