.mg-pf-overlay{
  position:fixed;
  inset:0;
  z-index:12000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,8,12,.88);
  backdrop-filter:blur(14px);
}

.mg-pf-overlay.on{
  display:flex;
}

.mg-pf-modal{
  width:min(720px,100%);
  max-height:92vh;
  overflow:auto;
  border:1px solid rgba(211,174,107,.24);
  border-radius:26px;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(191,150,82,.08),
      transparent 32%
    ),
    #07151d;
  box-shadow:0 40px 130px rgba(0,0,0,.62);
}

.mg-pf-head{
  padding:28px 28px 20px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.mg-pf-kicker{
  color:#cfa86b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
}

.mg-pf-head h2{
  margin:9px 0 8px;
  color:#f3eee5;
  font-size:24px;
  line-height:1.35;
}

.mg-pf-head p{
  margin:0;
  color:#91a4ae;
  font-size:13px;
  line-height:1.75;
}

.mg-pf-body{
  padding:23px 28px 29px;
}

.mg-pf-field{
  margin-bottom:21px;
}

.mg-pf-field > label{
  display:block;
  margin-bottom:9px;
  color:#d9e0e2;
  font-size:12px;
  font-weight:700;
}

.mg-pf-note{
  display:block;
  margin-top:7px;
  color:#708791;
  font-size:10px;
  line-height:1.55;
}

.mg-pf-select,
.mg-pf-input,
.mg-pf-textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.1);
  border-radius:13px;
  outline:none;
  background:#091c25;
  color:#eef1ef;
  padding:12px 13px;
  font:inherit;
}

.mg-pf-textarea{
  min-height:110px;
  resize:vertical;
  line-height:1.65;
}

.mg-pf-options{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:8px;
}

.mg-pf-chip{
  position:relative;
}

.mg-pf-chip input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.mg-pf-chip span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:8px 10px;
  text-align:center;
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
  background:#091b24;
  color:#9fb0b7;
  font-size:11px;
  cursor:pointer;
  transition:.16s ease;
}

.mg-pf-chip input:checked + span{
  border-color:rgba(211,174,107,.46);
  background:rgba(211,174,107,.10);
  color:#efce95;
}

.mg-pf-divider{
  height:1px;
  margin:23px 0;
  background:rgba(255,255,255,.06);
}

.mg-pf-summary{
  padding:14px;
  margin-bottom:17px;
  border:1px solid rgba(211,174,107,.13);
  border-radius:13px;
  background:rgba(211,174,107,.035);
  color:#92a6ae;
  font-size:11px;
  line-height:1.7;
}

.mg-pf-summary strong{
  color:#dfbd80;
}

.mg-pf-actions{
  display:flex;
  gap:9px;
}

.mg-pf-actions button{
  min-height:48px;
  border-radius:13px;
  cursor:pointer;
  font-weight:800;
}

.mg-pf-cancel{
  width:115px;
  border:1px solid rgba(255,255,255,.1);
  background:#0a1d26;
  color:#9fb0b7;
}

.mg-pf-submit{
  flex:1;
  border:1px solid rgba(211,174,107,.40);
  background:
    linear-gradient(
      135deg,
      #c8a164,
      #e5c487
    );
  color:#08151c;
}

.mg-pf-count{
  text-align:right;
  margin-top:6px;
  color:#6f858e;
  font-size:9px;
}

.mg-pf-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  z-index:13000;
  transform:translateX(-50%);
  max-width:calc(100% - 30px);
  padding:12px 17px;
  border:1px solid rgba(211,174,107,.28);
  border-radius:12px;
  background:#081a23;
  box-shadow:0 15px 50px rgba(0,0,0,.4);
  color:#e8dcc5;
  font-size:11px;
  text-align:center;
}

@media(max-width:620px){
  .mg-pf-head,
  .mg-pf-body{
    padding-left:19px;
    padding-right:19px;
  }

  .mg-pf-options{
    grid-template-columns:1fr;
  }

  .mg-pf-actions{
    flex-direction:column-reverse;
  }

  .mg-pf-cancel{
    width:100%;
  }
}
