.portal-modal{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
  box-sizing: border-box;
}

.portal-modal.is-open{ display: flex; }

.portal-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.portal-modal__box{
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 18px 18px 14px;
  z-index: 1;
  outline: none;
}

.portal-modal__header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.portal-modal__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.portal-modal__title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}

.portal-modal__close{
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.portal-modal__close:hover{ background: #f1f5f9; }

.portal-modal__text{
  margin: 0 0 14px 0;
  color: #334155;
  font-weight: 600;
  line-height: 1.35;
}

.portal-modal__actions{
  display: flex;
  justify-content: flex-end;
}

.portal-btn-modal{
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.portal-btn-modal--primary{
  background: linear-gradient(90deg, #0b5cab, #0ea5e9);
  border-color: transparent;
  color: #fff;
}

body.modal-open{ overflow: hidden; }
