/* === Centre-screen notifications & in-site modals === */
.ntf-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
/* the toast must never block the page — only the card itself is clickable */
.ntf-overlay.show { opacity: 1; }
.ntf-overlay .ntf-card { pointer-events: auto; }
.ntf-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(460px, 100%);
  padding: 20px 22px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
  transform: translateY(10px) scale(.97);
  transition: transform .24s cubic-bezier(.2, .8, .25, 1);
}
.ntf-overlay.show .ntf-card { transform: none; }
.ntf-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ntf-ico svg { width: 21px; height: 21px; }
.ntf-card.info .ntf-ico { background: var(--info-soft); color: var(--info); }
.ntf-card.success .ntf-ico { background: var(--success-soft); color: #047857; }
.ntf-card.error .ntf-ico { background: #fee2e2; color: #b91c1c; }
.ntf-card.warn .ntf-ico { background: var(--warning-soft); color: #b45309; }
.ntf-body { flex: 1; min-width: 0; }
.ntf-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.ntf-msg { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.ntf-hint { font-size: 12px; color: var(--text-dim); margin-top: 7px; }
.ntf-action {
  margin-top: 10px; padding: 7px 13px; border-radius: 8px;
  background: var(--primary-bg); color: var(--primary);
  border: 1px solid #ddd6fe; font-size: 12.5px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ntf-action:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124,58,237,.18);
}
.ntf-x {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  font-size: 18px; color: var(--text-dim); line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ntf-x:hover { background: var(--bg-2); color: var(--text); }

/* ---------- modal form ---------- */
.mdl-overlay { opacity: 0; transition: opacity .18s ease; }
.mdl-overlay.show { opacity: 1; }
.mdl-card { transform: translateY(12px) scale(.98); transition: transform .2s cubic-bezier(.2,.8,.25,1); }
.mdl-overlay.show .mdl-card { transform: none; }
.mdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.mdl-field { display: flex; flex-direction: column; gap: 6px; }
.mdl-field.wide { grid-column: 1 / -1; }
.mdl-field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.mdl-field input, .mdl-field select, .mdl-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1.5px solid var(--border); font-family: inherit; font-size: 13px; color: var(--text);
  background: #fff;
}
.mdl-field textarea { resize: vertical; min-height: 64px; }
.mdl-field input:focus, .mdl-field select:focus, .mdl-field textarea:focus {
  outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(124, 59, 237, .12);
}
.mdl-hint { font-size: 11px; color: var(--text-dim); }
.mdl-error {
  min-height: 0; margin: 10px 0 0; font-size: 12.5px; font-weight: 700;
  color: var(--danger); opacity: 0; transition: opacity .16s ease;
}
.mdl-error.show { opacity: 1; }
.btn-primary.danger { background: var(--danger); }
.btn-primary.danger:hover { background: #b91c1c; }
@media (max-width: 560px) { .mdl-grid { grid-template-columns: 1fr; } }

/* ---------- app popup (browser window) ---------- */
.app-launcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.launch-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.launch-head { display: flex; align-items: center; gap: 12px; }
.launch-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.launch-ico svg { width: 22px; height: 22px; }
.launch-name { font-size: 15px; font-weight: 800; color: var(--text); }
.launch-url {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px;
  color: var(--text-muted); word-break: break-all;
}
.launch-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.launch-cred {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; background: var(--bg-2); border-radius: 9px;
  font-size: 12.5px; color: var(--text);
}
.launch-cred b { font-weight: 700; }
.launch-cred code {
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px;
  background: #fff; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border);
}
.launch-cred-edit { align-items: center; }
.launch-cred-edit b { min-width: 78px; }
.launch-cred-input {
  flex: 1; min-width: 130px;
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px;
  background: #fff; padding: 6px 9px; border-radius: 7px; border: 1.5px solid var(--border);
  color: var(--text);
}
.launch-cred-input:focus {
  outline: none; border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.launch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.launch-actions .btn-purple { flex: 1; justify-content: center; }
.launch-save-row { display: flex; gap: 8px; flex-wrap: wrap; }
.launch-save-row .btn-ghost { flex: 1; justify-content: center; }


/* ============ multi-console grid (Payments admin) ============ */
.console-grid { display: grid; gap: 18px; }
.console-grid > .panel { margin: 0; }
.launch-tagline {
  margin: -2px 0 0; font-size: 12px; color: var(--primary);
  background: var(--primary-bg); border: 1px solid #e9e2fd;
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-weight: 600; letter-spacing: .1px;
}
.launch-actions .btn-ghost { white-space: nowrap; }

/* the Bangladeshi Taka sign used in place of an icon */
.taka-sign {
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  display: inline-block;
}
.stat-ico .taka-sign { font-size: 21px; }
.launch-ico .taka-sign { font-size: 20px; }
