/* ---- Modal ---- */
.amx-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.amx-modal {
  width: min(560px, 92vw);
  max-height: 90vh;
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr auto;
}
.amx-modal-head {
  padding: 14px 16px; font-weight: 600; font-size: 18px;
  background: #f7f7f9; display: flex; align-items: center; justify-content: space-between;
}
.amx-modal-close { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.amx-modal-body { padding: 16px; display: grid; gap: 12px; }
.amx-modal-body img { width: 100%; border-radius: 10px; object-fit: cover; }
.amx-modal-actions { padding: 12px 16px; display: flex; gap: 10px; justify-content: flex-end; background: #fafafb; }
.amx-btn {
  border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
.amx-btn.primary { background: #2b6ef7; color: #fff; }
.amx-btn.secondary { background: #e9ecf3; color: #16233a; }

/* ---- Toast ---- */
.amx-toast-container {
  position: fixed; z-index: 10001;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.amx-pos-tr { top: 16px; right: 16px; align-items: flex-end; }
.amx-pos-tl { top: 16px; left: 16px; align-items: flex-start; }
.amx-pos-br { bottom: 16px; right: 16px; align-items: flex-end; }
.amx-pos-bl { bottom: 16px; left: 16px; align-items: flex-start; }

.amx-toast {
  pointer-events: auto;
  min-width: 260px; max-width: 360px;
  background: #1f2937; color: #fff;
  border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  display: grid; gap: 6px;
}
.amx-toast strong { font-weight: 700; }
.amx-toast-actions { display: flex; gap: 8px; margin-top: 6px; }
.amx-toast .amx-btn { padding: 8px 10px; border-radius: 8px; }
.amx-toast .amx-btn.link { background: transparent; color: #cfe1ff; text-decoration: underline; }
.amx-toast .amx-btn.dismiss { background: #374151; color: #fff; }
