/* =========================================================
   RENAME CHAT POPUP
========================================================= */

.popup-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 999999;
}

.popup-overlay.active {
  display: flex;
}

/* ========================================================= */

.popup-box {
  width: 420px;
  max-width: 92%;

  background: var(--surface);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  padding: 28px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);

  animation: popupShow 0.25s ease;
}

/* ========================================================= */

.popup-box h2 {
  color: var(--text-primary);

  font-size: 22px;

  margin-bottom: 18px;
}

/* ========================================================= */

#popupInput {
  width: 100%;

  height: 48px;

  padding: 0 16px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: #1a2438;

  color: var(--text-primary);

  font-size: 15px;

  margin-bottom: 22px;

  transition: 0.25s;
}

#popupInput:focus {
  border-color: #00d9ff;

  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.18);
}

/* ========================================================= */

.popup-buttons {
  display: flex;

  justify-content: flex-end;

  gap: 12px;
}

/* ========================================================= */

#popupCancel {
  height: 42px;

  padding: 0 20px;

  border-radius: 12px;

  background: #2a354d;

  color: var(--text-primary);

  transition: 0.25s;
}

#popupCancel:hover {
  background: #344563;
}

/* ========================================================= */

#popupOk {
  height: 42px;

  padding: 0 22px;

  border-radius: 12px;

  background: #0ea5ff;

  color: var(--text-primary);

  transition: 0.25s;
}

#popupOk:hover {
  background: #1f8cff;
}

/* ========================================================= */

@keyframes popupShow {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
