
/* === Right overlay panel (slides over chat) === */

.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #050712;
  color: #f5f5ff;
  box-shadow: -14px 0 40px rgba(0,0,0,0.65);
  border-left: 1px solid rgba(255,255,255,0.10);
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.right-panel.open {
  transform: translateX(0);
}

.right-panel-header {
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.right-panel-title {
  font-size: 14px;
  font-weight: 600;
}

.right-panel-close {
  background: transparent;
  border: none;
  color: #f5f5ff;
  font-size: 18px;
  cursor: pointer;
}

.right-panel-body {
  flex: 1;
  padding: 10px 10px 14px;
  overflow-y: auto;
}

/* Simple panel sections */
.panel-section {
  margin-bottom: 12px;
}

.panel-section h4 {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.9;
}

/* Backdrop on mobile for dimming chat when panel open */
@media (max-width: 900px) {
  .right-panel-backdrop {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
  }
  .right-panel-backdrop.visible {
    display: block;
  }
}
