.rop-exit-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(3px);
  z-index:99990;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.rop-exit-overlay.show{
  display:flex;
  animation:ropExitFade .25s ease;
}

@keyframes ropExitFade{
  from{opacity:0}
  to{opacity:1}
}

.rop-exit-modal{
  background:#fff;
  width:100%;
  max-width:440px;
  border-radius:18px;
  padding:28px 26px 24px;
  box-shadow:0 24px 64px rgba(15,23,42,.35);
  font-family:'Inter',sans-serif;
  position:relative;
  animation:ropExitPop .3s ease;
  max-height:90vh;
  overflow-y:auto;
}

@keyframes ropExitPop{
  from{transform:translateY(14px) scale(.97);opacity:0}
  to{transform:none;opacity:1}
}

.rop-exit-close{
  position:absolute;
  top:12px;
  right:14px;
  background:#f1f5f9;
  border:0;
  width:32px;
  height:32px;
  border-radius:50%;
  cursor:pointer;
  font-size:15px;
  color:#475569;
  line-height:1;
}

.rop-exit-close:hover{background:#e2e8f0}

.rop-exit-modal h3{
  margin:0 0 6px;
  font-size:1.25rem;
  color:#0f172a;
}

.rop-exit-modal p{
  margin:0 0 16px;
  font-size:.92rem;
  color:#475569;
  line-height:1.5;
}

.rop-exit-choices{
  display:flex;
  gap:10px;
}

.rop-exit-btn{
  flex:1;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#0f172a;
  font-weight:600;
  font-size:.92rem;
  cursor:pointer;
  transition:all .15s ease;
}

.rop-exit-btn:hover{background:#eef2f7}

.rop-exit-btn.primary{
  background:#9f1239;
  border-color:#9f1239;
  color:#fff;
}

.rop-exit-btn.primary:hover{background:#881337}

.rop-exit-form{display:none}
.rop-exit-form.show{display:block}

.rop-exit-form label{
  display:block;
  font-size:.78rem;
  font-weight:600;
  color:#334155;
  margin:10px 0 4px;
}

.rop-exit-form input,
.rop-exit-form select,
.rop-exit-form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  font-size:.9rem;
  font-family:inherit;
  box-sizing:border-box;
  background:#fff;
  color:#0f172a;
}

.rop-exit-form textarea{resize:vertical;min-height:64px}

.rop-exit-form .rop-exit-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.rop-exit-submit{
  width:100%;
  margin-top:16px;
  padding:13px;
  background:#9f1239;
  color:#fff;
  border:0;
  border-radius:10px;
  font-weight:700;
  font-size:.95rem;
  cursor:pointer;
}

.rop-exit-submit:hover{background:#881337}
.rop-exit-submit:disabled{opacity:.6;cursor:wait}

.rop-exit-status{
  margin-top:10px;
  font-size:.85rem;
  text-align:center;
}

.rop-exit-status.ok{color:#15803d}
.rop-exit-status.err{color:#b91c1c}

.rop-exit-success{display:none;text-align:center;padding:8px 4px 4px}
.rop-exit-success.show{display:block;animation:ropExitPop .3s ease}

.rop-exit-check{
  width:58px;
  height:58px;
  margin:4px auto 14px;
  border-radius:50%;
  background:#dcfce7;
  color:#15803d;
  font-size:30px;
  font-weight:800;
  line-height:58px;
}

.rop-exit-success h3{margin:0 0 8px}
.rop-exit-success p{margin:0 0 18px}
.rop-exit-success .rop-exit-btn{width:100%}

@media (max-width:480px){
  .rop-exit-form .rop-exit-row{grid-template-columns:1fr}
}
